Go to the documentation of this file.
65 uint8_t deviceAddress,
67 uint8_t subaddressSize,
77 masterXfer.
data = txBuff;
96 uint8_t deviceAddress,
98 uint8_t subaddressSize,
108 masterXfer.
data = rxBuff;
status_t CODEC_I2C_Init(void *handle, uint32_t i2cInstance, uint32_t i2cBaudrate, uint32_t i2cSourceClockHz)
Codec i2c bus initilization.
hal_i2c_direction_t direction
HAL I2C master user configuration.
status_t CODEC_I2C_Send(void *handle, uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint8_t *txBuff, uint8_t txBuffSize)
codec i2c send function.
status_t CODEC_I2C_Deinit(void *handle)
Codec i2c de-initilization.
hal_i2c_status_t HAL_I2cMasterInit(hal_i2c_master_handle_t handle, const hal_i2c_master_config_t *config)
Initializes the HAL I2C master peripheral.
hal_i2c_status_t HAL_I2cMasterTransferBlocking(hal_i2c_master_handle_t handle, hal_i2c_master_transfer_t *xfer)
Performs a master polling transfer on the HAL I2C bus.
@ kHAL_I2cTransferDefaultFlag
hal_i2c_status_t HAL_I2cMasterDeinit(hal_i2c_master_handle_t handle)
De-initializes the HAL I2C master peripheral. Call this API to gate the HAL I2C clock....
status_t CODEC_I2C_Receive(void *handle, uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint8_t *rxBuff, uint8_t rxBuffSize)
codec i2c receive function.
void * hal_i2c_master_handle_t
HAL I2C master handle.
int32_t status_t
Type used for all status and error return values.
HAL I2C master transfer structure.