#include "fsl_codec_i2c.h"
Go to the source code of this file.
Functions | |
status_t | CODEC_I2C_Deinit (void *handle) |
Codec i2c de-initilization. More... | |
status_t | CODEC_I2C_Init (void *handle, uint32_t i2cInstance, uint32_t i2cBaudrate, uint32_t i2cSourceClockHz) |
Codec i2c bus initilization. More... | |
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. More... | |
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. More... | |
status_t CODEC_I2C_Deinit | ( | void * | handle | ) |
Codec i2c de-initilization.
brief Codec i2c de-initilization.
param handle i2c master handle. return kStatus_HAL_I2cSuccess is success, else deinitial failed.
Definition at line 48 of file fsl_codec_i2c.c.
status_t CODEC_I2C_Init | ( | void * | handle, |
uint32_t | i2cInstance, | ||
uint32_t | i2cBaudrate, | ||
uint32_t | i2cSourceClockHz | ||
) |
Codec i2c bus initilization.
brief Codec i2c bus initilization.
param handle i2c master handle. param i2CInstance instance number of the i2c bus, such as 0 is corresponding to I2C0. param i2cBaudrate i2c baudrate. param i2cSourceClockHz i2c source clock frequency. return kStatus_HAL_I2cSuccess is success, else initial failed.
Definition at line 30 of file fsl_codec_i2c.c.
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.
brief codec i2c receive function.
param handle i2c master handle. param deviceAddress codec device address. param subAddress register address. param subaddressSize register address width. param rxBuff rx buffer pointer. param rxBuffSize rx buffer size. return kStatus_HAL_I2cSuccess is success, else receive failed.
Definition at line 95 of file fsl_codec_i2c.c.
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.
brief codec i2c send function.
param handle i2c master handle. param deviceAddress codec device address. param subAddress register address. param subaddressSize register address width. param txBuff tx buffer pointer. param txBuffSize tx buffer size. return kStatus_HAL_I2cSuccess is success, else send failed.
Definition at line 64 of file fsl_codec_i2c.c.