hfp_hf.h (077c2d9275f9e68d1fe49eb14c2ac3e02df208cc) | hfp_hf.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 --- 40 unchanged lines hidden (view full) --- 49 50#if defined __cplusplus 51extern "C" { 52#endif 53 54/* API_START */ 55 56/** | 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 --- 40 unchanged lines hidden (view full) --- 49 50#if defined __cplusplus 51extern "C" { 52#endif 53 54/* API_START */ 55 56/** |
57 * @brief Create HFP Hands-Free (HF) SDP service record. | 57 * @brief Create HFP Hands-Free (HF) SDP service record. |
58 * @param service 59 * @param rfcomm_channel_nr 60 * @param name 61 * @param suported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h | 58 * @param service 59 * @param rfcomm_channel_nr 60 * @param name 61 * @param suported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h |
62 * @param wide_band_speech supported | 62 * @param codecs_nr number of codecs in codecs argument 63 * @param codecs |
63 */ | 64 */ |
64void hfp_hf_create_sdp_record(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, const char * name, uint16_t supported_features, int wide_band_speech); | 65void hfp_hf_create_sdp_record_with_codecs(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, 66 const char * name, uint16_t supported_features, uint8_t codecs_nr, const uint8_t * codecs); |
65 66/** 67 * @brief Set up HFP Hands-Free (HF) device without additional supported features. 68 * @param rfcomm_channel_nr 69 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 70 * - L2CAP_SERVICE_ALREADY_REGISTERED, 71 * - RFCOMM_SERVICE_ALREADY_REGISTERED or 72 * - BTSTACK_MEMORY_ALLOC_FAILED if allocation of any of RFCOMM or L2CAP services failed 73 */ 74uint8_t hfp_hf_init(uint8_t rfcomm_channel_nr); 75 76/** 77 * @brief Set codecs. | 67 68/** 69 * @brief Set up HFP Hands-Free (HF) device without additional supported features. 70 * @param rfcomm_channel_nr 71 * @return status ERROR_CODE_SUCCESS if successful, otherwise: 72 * - L2CAP_SERVICE_ALREADY_REGISTERED, 73 * - RFCOMM_SERVICE_ALREADY_REGISTERED or 74 * - BTSTACK_MEMORY_ALLOC_FAILED if allocation of any of RFCOMM or L2CAP services failed 75 */ 76uint8_t hfp_hf_init(uint8_t rfcomm_channel_nr); 77 78/** 79 * @brief Set codecs. |
78 * @param codecs_nr | 80 * @param codecs_nr number of codecs in codecs argument |
79 * @param codecs 80 */ | 81 * @param codecs 82 */ |
81void hfp_hf_init_codecs(int codecs_nr, const uint8_t * codecs); | 83void hfp_hf_init_codecs(uint8_t codecs_nr, const uint8_t * codecs); |
82 83/** 84 * @brief Set supported features. 85 * @param supported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h 86 */ 87void hfp_hf_init_supported_features(uint32_t supported_features); 88 89/** --- 475 unchanged lines hidden (view full) --- 565 */ 566void hfp_hf_register_custom_at_command(hfp_custom_at_command_t * custom_at_command); 567 568/** 569 * @brief De-Init HFP HF 570 */ 571void hfp_hf_deinit(void); 572 | 84 85/** 86 * @brief Set supported features. 87 * @param supported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h 88 */ 89void hfp_hf_init_supported_features(uint32_t supported_features); 90 91/** --- 475 unchanged lines hidden (view full) --- 567 */ 568void hfp_hf_register_custom_at_command(hfp_custom_at_command_t * custom_at_command); 569 570/** 571 * @brief De-Init HFP HF 572 */ 573void hfp_hf_deinit(void); 574 |
575/** 576 * @brief Create HFP Hands-Free (HF) SDP service record. 577 * @deprecated Use hfp_hf_create_sdp_record_with_codecs instead 578 * @param service 579 * @param rfcomm_channel_nr 580 * @param name 581 * @param suported_features 32-bit bitmap, see HFP_HFSF_* values in hfp.h 582 * @param wide_band_speech supported 583 */ 584void hfp_hf_create_sdp_record(uint8_t * service, uint32_t service_record_handle, int rfcomm_channel_nr, const char * name, uint16_t supported_features, int wide_band_speech); 585 |
|
573/* API_END */ 574 575#if defined __cplusplus 576} 577#endif 578 579#endif // BTSTACK_HFP_HF_H | 586/* API_END */ 587 588#if defined __cplusplus 589} 590#endif 591 592#endif // BTSTACK_HFP_HF_H |