gatt-service/bass_server: improve docu

This commit is contained in:
Milanka Ringwald 2023-01-24 11:51:25 +01:00 committed by Matthias Ringwald
parent b14d59d74d
commit b973a76fa0
2 changed files with 13 additions and 7 deletions

View File

@ -600,9 +600,9 @@ void broadcast_audio_scan_service_server_init(const uint8_t sources_num, bass_se
att_server_register_service_handler(&broadcast_audio_scan_service);
}
void broadcast_audio_scan_service_server_register_packet_handler(btstack_packet_handler_t callback){
btstack_assert(callback != NULL);
bass_event_callback = callback;
void broadcast_audio_scan_service_server_register_packet_handler(btstack_packet_handler_t packet_handler){
btstack_assert(packet_handler != NULL);
bass_event_callback = packet_handler;
}
static void bass_service_can_send_now(void * context){

View File

@ -98,10 +98,16 @@ typedef struct {
void broadcast_audio_scan_service_server_init(uint8_t const sources_num, bass_server_source_t * sources, uint8_t const clients_num, bass_remote_client_t * clients);
/**
* @brief Register callback.
* @param callback
* @brief Register packet handler to receive events:
* - GATTSERVICE_SUBEVENT_BASS_REMOTE_SCAN_STOPPED
* - GATTSERVICE_SUBEVENT_BASS_REMOTE_SCAN_STARTED
* - GATTSERVICE_SUBEVENT_BASS_BROADCAST_CODE
* - GATTSERVICE_SUBEVENT_BASS_SOURCE_ADDED
* - GATTSERVICE_SUBEVENT_BASS_SOURCE_MODIFIED
* - GATTSERVICE_SUBEVENT_BASS_SOURCE_DELETED
* @param packet_handler
*/
void broadcast_audio_scan_service_server_register_packet_handler(btstack_packet_handler_t callback);
void broadcast_audio_scan_service_server_register_packet_handler(btstack_packet_handler_t packet_handler);
/**
* @brief Set PA state of source.
@ -111,7 +117,7 @@ void broadcast_audio_scan_service_server_register_packet_handler(btstack_packet_
void broadcast_audio_scan_service_server_set_pa_sync_state(uint8_t source_index, le_audio_pa_sync_state_t sync_state);
/**
* @brief Register callback.
* @brief Add source.
* @param source_data
* @param source_index
*/