C API for BALTECH SDK
i2c.h File Reference
#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_I2c_ErrI2CRead   BRP_ERR_STATUS(0x0800, 0x01)
 
#define BRP_I2c_ErrI2CWrite   BRP_ERR_STATUS(0x0800, 0x02)
 

Functions

brp_errcode brp_I2c_SetSpeed (brp_protocol protocol, bool FastMode)
 
brp_errcode brp_I2c_Read (brp_protocol protocol, unsigned Address, unsigned ReadLen, brp_buf *ReadData, size_t *ReadData_len, brp_mempool *mempool)
 
brp_errcode brp_I2c_Write (brp_protocol protocol, unsigned Address, brp_buf WriteData, size_t WriteData_len)
 
brp_errcode brp_I2c_TxRx (brp_protocol protocol, unsigned Address, brp_buf CmdData, size_t CmdData_len, unsigned ReadLen, brp_buf *ReadData, size_t *ReadData_len, brp_mempool *mempool)
 

Detailed Description

This command group enables to access the I2C interface.

Definition in file i2c.h.