es7210_config_codec() function
Configure codec-related parameters of ES7210.
Arguments
handle
ES7210 device handle
codec_conf
codec-related parameters of ES7210
Return value
- ESP_OK Codec config success. - ESP_ERR_INVALID_ARG Invalid device handle or argument. - ESP_ERR_NO_MEM Memory allocation failed. - ESP_FAIL Sending command error, slave hasn't ACK the transfer. - ESP_ERR_INVALID_STATE I2C driver not installed or not in master mode. - ESP_ERR_TIMEOUT Operation timeout because the bus is busy.