Infineon Logo AIROC BTSDK v4.9 - 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...

Typedefs

typedef void I2C_SLAVE_CALLBACK_HANDLER (uint32_t evtFlag, uint8_t *rx_PktPointer, uint16_t rx_PktLength)
 

Enumerations

enum  { I2CM_SPEED_100KHZ = 240, I2CM_SPEED_400KHZ = 60, I2CM_SPEED_800KHZ = 30, I2CM_SPEED_1000KHZ = 24 }
 Speed Options. More...
 
enum  { I2CM_SUCCESS, I2CM_OP_FAILED }
 Transaction Status Return Values. More...
 
enum  { I2C_TRAN_EVENT_MASK_RX_DONE = 1, I2C_TRAN_EVENT_MASK_TX_DONE = 2, I2C_TRAN_EVENT_MASK_RX_STOP = 4 }
 

Functions

void wiced_hal_i2c_init (void)
 Initializes the I2C driver and its private values. More...
 
void wiced_hal_i2c_set_speed (UINT8 speed)
 Sets the I2C bus speed. More...
 
UINT8 wiced_hal_i2c_get_speed (void)
 Gets the current I2C bus speed. More...
 
UINT8 wiced_hal_i2c_read (UINT8 *data, UINT16 length, UINT8 slave)
 Reads data into given buffer from the I2C HW addressing a particualr slave address. More...
 
UINT8 wiced_hal_i2c_write (UINT8 *data, UINT16 length, UINT8 slave)
 Writes the given data to the I2C HW addressing a particualr slave address. More...
 
void wiced_hal_i2c_select_pads (UINT8 scl_pin, UINT8 sda_pin)
 Configures I2C pins. More...
 
UINT8 wiced_hal_i2c_combined_read (UINT8 *rx_data, UINT8 rx_data_len, UINT8 *tx_data, UINT16 tx_data_len, UINT8 slave)
 Executes two transactions back-to-back with a repeated start condition between the first and the second. More...
 
void wiced_hal_i2c_slave_set_device_address (UINT8 address)
 
void wiced_hal_i2c_slave_select_pads (UINT32 scl_pin, UINT32 sda_pin)
 
void wiced_hal_i2c_slave_init (void)
 
void wiced_hal_i2c_slave_register_cb (I2C_SLAVE_CALLBACK_HANDLER *cb)
 
void wiced_hal_i2c_slave_synchronous_write (UINT8 *buffer, UINT32 length)
 

Detailed Description

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