Infineon Logo AIROC BTSDK v4.2 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_hal_i2c.h File Reference

List of parameters and defined functions needed to access the Inter-Integrated Circuit (I2C, IIC) driver. More...

Enumerations

enum  { I2CM_SPEED_100KHZ = 16, I2CM_SPEED_400KHZ = 64, I2CM_SPEED_800KHZ = 128, I2CM_SPEED_1000KHZ = 160 }
 Speed Options. More...
 
enum  { I2CM_SUCCESS, I2CM_OP_FAILED, I2CM_BUSY }
 Transaction Status Return Values. More...
 

Functions

void wiced_hal_i2c_init (void)
 Initializes the I2C driver and its private values. More...
 
void wiced_hal_i2c_set_speed (uint8_t speed)
 Sets the I2C bus speed. More...
 
uint8_t wiced_hal_i2c_get_speed (void)
 Gets the current I2C bus speed. More...
 
uint8_t wiced_hal_i2c_read (uint8_t *data, uint16_t length, uint8_t slave)
 Reads data into given buffer from the I2C HW addressing a particualr slave address. More...
 
uint8_t wiced_hal_i2c_write (uint8_t *data, uint16_t length, uint8_t slave)
 Writes the given data to the I2C HW addressing a particualr slave address. More...
 
uint8_t wiced_hal_i2c_combined_read (uint8_t *rx_data, uint8_t rx_data_len, uint8_t *tx_data, uint16_t tx_data_len, uint8_t slave)
 Executes two transactions back-to-back with a repeated start condition between the first and the second. More...
 

Detailed Description

List of parameters and defined functions needed to access the Inter-Integrated Circuit (I2C, IIC) driver.