BALTECH Docs |
C API for BALTECH SDK
|
This command group enables to access the I2C interface. More...
#include "../typedefs.h"
Go to the source code of this file.
Macros | |
#define | BRP_I2c_ErrI2CRead BRP_ERR_STATUS(0x0800, 0x01) |
Error reading from I2C interface. More... | |
#define | BRP_I2c_ErrI2CWrite BRP_ERR_STATUS(0x0800, 0x02) |
Error writing to I2C interface. More... | |
Functions | |
brp_errcode | brp_I2c_SetSpeed (brp_protocol protocol, bool FastMode) |
Set speed of I2C interface. More... | |
brp_errcode | brp_I2c_Read (brp_protocol protocol, unsigned Address, unsigned ReadLen, brp_buf *ReadData, size_t *ReadData_len, brp_mempool *mempool) |
Read data from I2C interface. More... | |
brp_errcode | brp_I2c_Write (brp_protocol protocol, unsigned Address, brp_buf WriteData, size_t WriteData_len) |
Write data to I2C interface. More... | |
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) |
Write data and directly after that read from I2C interface. More... | |
This command group enables to access the I2C interface.
Definition in file i2c.h.