hfp_ag.h (7f8f119190fb5c4dbcc499490b8408ac3b4e4539) | hfp_ag.h (aa10b9cbee75a92ba10686b7ba42c869ecdf5325) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 50 unchanged lines hidden (view full) --- 59} hfp_phone_number_t; 60 61/** 62 * @brief Create HFP Audio Gateway (AG) SDP service record. 63 * @param service 64 * @param rfcomm_channel_nr 65 * @param name 66 * @param ability_to_reject_call | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 50 unchanged lines hidden (view full) --- 59} hfp_phone_number_t; 60 61/** 62 * @brief Create HFP Audio Gateway (AG) SDP service record. 63 * @param service 64 * @param rfcomm_channel_nr 65 * @param name 66 * @param ability_to_reject_call |
67 * @param suported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 68 * @param wide_band_speech supported | 67 * @param supported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 68 * @param codecs_nr 69 * @param codecs |
69 */ | 70 */ |
70void hfp_ag_create_sdp_record(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, const char * name, uint8_t ability_to_reject_call, uint16_t supported_features, int wide_band_speech); | 71void hfp_ag_create_sdp_record_with_codecs(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, 72 const char * name, uint8_t ability_to_reject_call, uint16_t supported_features, 73 uint8_t codecs_nr, const uint8_t * codecs); |
71 72/** 73 * @brief Set up HFP Audio Gateway (AG) device without additional supported features. 74 * @param rfcomm_channel_nr 75 */ 76void hfp_ag_init(uint8_t rfcomm_channel_nr); 77 78/** 79 * @brief Set codecs. 80 * @param codecs_nr 81 * @param codecs 82 */ | 74 75/** 76 * @brief Set up HFP Audio Gateway (AG) device without additional supported features. 77 * @param rfcomm_channel_nr 78 */ 79void hfp_ag_init(uint8_t rfcomm_channel_nr); 80 81/** 82 * @brief Set codecs. 83 * @param codecs_nr 84 * @param codecs 85 */ |
83void hfp_ag_init_codecs(int codecs_nr, const uint8_t * codecs); | 86void hfp_ag_init_codecs(uint8_t codecs_nr, const uint8_t * codecs); |
84 85/** 86 * @brief Set supported features. 87 * @param supported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 88 */ 89void hfp_ag_init_supported_features(uint32_t supported_features); 90 91/** --- 409 unchanged lines hidden (view full) --- 501 */ 502uint8_t hfp_ag_send_command_result_code(hci_con_handle_t acl_handle, bool ok); 503 504/** 505 * @brief De-Init HFP AG 506 */ 507void hfp_ag_deinit(void); 508 | 87 88/** 89 * @brief Set supported features. 90 * @param supported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 91 */ 92void hfp_ag_init_supported_features(uint32_t supported_features); 93 94/** --- 409 unchanged lines hidden (view full) --- 504 */ 505uint8_t hfp_ag_send_command_result_code(hci_con_handle_t acl_handle, bool ok); 506 507/** 508 * @brief De-Init HFP AG 509 */ 510void hfp_ag_deinit(void); 511 |
512/** 513 * @brief Create HFP Audio Gateway (AG) SDP service record. 514 * @deprecated Use hfp_ag_create_sdp_record_with_codecs instead 515 * @param service 516 * @param rfcomm_channel_nr 517 * @param name 518 * @param ability_to_reject_call 519 * @param suported_features 32-bit bitmap, see HFP_AGSF_* values in hfp.h 520 * @param wide_band_speech supported 521 */ 522void hfp_ag_create_sdp_record(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, const char * name, uint8_t ability_to_reject_call, uint16_t supported_features, int wide_band_speech); 523 |
|
509/* API_END */ 510 511// testing 512hfp_ag_indicator_t * hfp_ag_get_ag_indicators(hfp_connection_t * hfp_connection); 513 514// @return true to process even as normal, false to cause HFP AG to ignore event 515void hfp_ag_register_custom_call_sm_handler(bool (*handler)(hfp_ag_call_event_t event)); 516 517#if defined __cplusplus 518} 519#endif 520 521#endif | 524/* API_END */ 525 526// testing 527hfp_ag_indicator_t * hfp_ag_get_ag_indicators(hfp_connection_t * hfp_connection); 528 529// @return true to process even as normal, false to cause HFP AG to ignore event 530void hfp_ag_register_custom_call_sm_handler(bool (*handler)(hfp_ag_call_event_t event)); 531 532#if defined __cplusplus 533} 534#endif 535 536#endif |