es7210_config_volume() function
Configure volume of ES7210.
Arguments
handle
ES7210 device handle
volume_db
Volume to be set, in dB, with a range from -95dB to +32dB.
Return value
- ESP_OK Volume 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.