mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-31 00:32:52 +00:00
gatt-service/bass_server: improve docu
This commit is contained in:
parent
b14d59d74d
commit
b973a76fa0
@ -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){
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user