mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
gatt-service/mics_server: rename events
# Conflicts: # src/le-audio/gatt-service/microphone_control_service_server.c # src/le-audio/gatt-service/microphone_control_service_server.h
This commit is contained in:
parent
14daac42e7
commit
fd90878f20
@ -75,8 +75,8 @@ static void microphone_control_service_server_emit_mute(gatt_microphone_control_
|
||||
uint8_t pos = 0;
|
||||
event[pos++] = HCI_EVENT_GATTSERVICE_META;
|
||||
event[pos++] = sizeof(event) - 2;
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE;
|
||||
little_endian_store_16(event, pos, mc_mute_state_client_configuration_connection);
|
||||
event[pos++] = GATTSERVICE_SUBEVENT_MICS_SERVER_MUTE;
|
||||
little_endian_store_16(event, pos, mics_server_con_handle);
|
||||
pos += 2;
|
||||
event[pos++] = (uint8_t)mute_state;
|
||||
(*mics_callback)(HCI_EVENT_PACKET, 0, event, sizeof(event));
|
||||
|
@ -68,7 +68,8 @@ extern "C" {
|
||||
void microphone_control_service_server_init(gatt_microphone_control_mute_t mute_state, uint8_t aics_info_num, aics_info_t * aics_info);
|
||||
|
||||
/**
|
||||
* @brief Register callback to receive updates of mute value from remote side via MICS_MUTE event
|
||||
* @brief Register packet_handle to receive updates of mute value from remote side via event:
|
||||
* - GATTSERVICE_SUBEVENT_MICS_SERVER_MUTE
|
||||
* @param callback
|
||||
*/
|
||||
void microphone_control_service_server_register_packet_handler(btstack_packet_handler_t callback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user