A2DP API. More...
#include <stdint.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/bt_a2dp_codecs.h>
#include <bluetooth/bt_common.h>
Go to the source code of this file.
Classes | |
struct | bt_a2dp_ops_s |
Bluetooth A2DP application callbacks. More... | |
struct | bt_a2dp_state_s |
Bluetooth A2DP context. More... | |
Functions | |
bool | bt_a2dp_is_supported (void) |
Get A2DP support or not support. More... | |
int | bt_a2dp_connect (struct bt_acl_state_s *bt_acl_state) |
Bluetooth A2DP connect Connect to peer device with A2DP. More... | |
int | bt_a2dp_disconnect (struct bt_acl_state_s *bt_acl_state) |
Bluetooth A2DP disconnect Disconnect to peer device with A2DP. More... | |
int | bt_a2dp_set_codec_capability (BT_AUDIO_CODEC_INFO *codec_capabilities, uint8_t num) |
Bluetooth A2DP set codec capability Set capability of audio codecs. More... | |
int | bt_a2dp_register_callback (struct bt_a2dp_ops_s *bt_a2dp_ops) |
Register A2DP event packet callback. More... | |
A2DP API.
This API is for using A2DP and includes Function and Callback
bool bt_a2dp_is_supported | ( | void | ) |
Get A2DP support or not support.
Suppot | or Not support |
int bt_a2dp_connect | ( | struct bt_acl_state_s * | bt_acl_state | ) |
Bluetooth A2DP connect Connect to peer device with A2DP.
[in] | bt_acl_state | Bluetooth context bt_acl_state_s |
error | code |
int bt_a2dp_disconnect | ( | struct bt_acl_state_s * | bt_acl_state | ) |
Bluetooth A2DP disconnect Disconnect to peer device with A2DP.
[in] | bt_acl_state | Bluetooth context bt_acl_state_s |
error | code |
int bt_a2dp_set_codec_capability | ( | BT_AUDIO_CODEC_INFO * | codec_capabilities, |
uint8_t | num | ||
) |
Bluetooth A2DP set codec capability Set capability of audio codecs.
[in] | codec_capabilities | BT_A2DP_CODEC_TYPE Codec type list(SBC/AAC) BT_AUDIO_CODEC_INFO |
[in] | num | Length of codec capability |
error | code |
int bt_a2dp_register_callback | ( | struct bt_a2dp_ops_s * | bt_a2dp_ops | ) |
Register A2DP event packet callback.
[in] | bt_a2dp_ops | Callback function for event handler bt_a2dp_ops_s |
error | code |