hfp_hf: add hfp_hf_register_custom_at_command

This commit is contained in:
Matthias Ringwald 2023-05-26 16:39:57 +02:00
parent 7404dce327
commit 077c2d9275
2 changed files with 10 additions and 0 deletions

View File

@ -2264,6 +2264,10 @@ void hfp_hf_create_sdp_record(uint8_t * service, uint32_t service_record_handle,
de_add_number(service, DE_UINT, DE_SIZE_16, sdp_features); de_add_number(service, DE_UINT, DE_SIZE_16, sdp_features);
} }
void hfp_hf_register_custom_at_command(hfp_custom_at_command_t * custom_at_command){
hfp_register_custom_hf_command(custom_at_command);
}
void hfp_hf_register_packet_handler(btstack_packet_handler_t callback){ void hfp_hf_register_packet_handler(btstack_packet_handler_t callback){
btstack_assert(callback != NULL); btstack_assert(callback != NULL);

View File

@ -559,6 +559,12 @@ int hfp_hf_in_band_ringtone_active(hci_con_handle_t acl_handle);
*/ */
uint8_t hfp_hf_send_at_command(hci_con_handle_t acl_handle, const char * at_command); uint8_t hfp_hf_send_at_command(hci_con_handle_t acl_handle, const char * at_command);
/**
* @brief Register custom AT command.
* @param hfp_custom_at_command (with '+' prefix)
*/
void hfp_hf_register_custom_at_command(hfp_custom_at_command_t * custom_at_command);
/** /**
* @brief De-Init HFP HF * @brief De-Init HFP HF
*/ */