gatt-service/vcs: extend API to allow setting of the volume change step

This commit is contained in:
Milanka Ringwald 2022-01-28 09:14:53 +01:00
parent 1a170bd9c8
commit 2ea782cb4d
2 changed files with 8 additions and 0 deletions

View File

@ -432,6 +432,9 @@ void volume_control_service_server_set_volume_state(uint8_t volume_setting, vcs_
}
}
void volume_control_service_server_set_volume_change_step(uint8_t volume_change_step){
vcs_volume_change_step_size = volume_change_step;
}
uint8_t volume_control_service_server_set_audio_input_state_for_aics(uint8_t aics_index, aics_audio_input_state_t * audio_input_state){
if (aics_index >= aics_services_num){

View File

@ -98,6 +98,11 @@ void volume_control_service_server_init(uint8_t volume_setting, vcs_mute_t mute,
*/
void volume_control_service_server_set_volume_state(uint8_t volume_setting, vcs_mute_t mute);
/**
* @brief Set volume change step.
* @param volume_change_step
*/
void volume_control_service_server_set_volume_change_step(uint8_t volume_change_step);
/**
* @brief Set mute and gain mode, as well as gain setting of the AICS service identified by aics_index.