|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
结构体 | |
| struct | a2dp_codec_info_t |
| A2dp src配置编码格式参数。 更多... | |
| struct | a2dp_src_callbacks_t |
| A2dp src回调接口定义。 更多... | |
宏定义 | |
| #define | A2DP_CODEC_PRIORITY_DISABLED (-1) |
| A2dp 编码格式优先级设置。 | |
| #define | A2DP_CODEC_PRIORITY_DEFAULT 0 |
| #define | A2DP_CODEC_PRIORITY_HIGHEST (1000 * 1000) |
| #define | A2DP_CODEC_SAMPLE_RATE_NONE 0x00 |
| A2dp 采样率。 | |
| #define | A2DP_CODEC_SAMPLE_RATE_44100 (0x01 << 0) |
| #define | A2DP_CODEC_SAMPLE_RATE_48000 (0x01 << 1) |
| #define | A2DP_CODEC_SAMPLE_RATE_88200 (0x01 << 2) |
| #define | A2DP_CODEC_SAMPLE_RATE_96000 (0x01 << 3) |
| #define | A2DP_CODEC_SAMPLE_RATE_176400 (0x01 << 4) |
| #define | A2DP_CODEC_SAMPLE_RATE_192000 (0x01 << 5) |
| #define | A2DP_CODEC_BITS_PER_SAMPLE_NONE 0x00 |
| A2dp 的采样比特位。 | |
| #define | A2DP_CODEC_BITS_PER_SAMPLE_16 (0x01 << 0) |
| #define | A2DP_CODEC_BITS_PER_SAMPLE_24 (0x01 << 1) |
| #define | A2DP_CODEC_BITS_PER_SAMPLE_32 (0x01 << 2) |
| #define | A2DP_CODEC_CHANNEL_MODE_NONE 0x00 |
| A2dp声道模式NONE。 | |
| #define | A2DP_CODEC_CHANNEL_MODE_MONO (0x01 << 0) |
| A2dp声道模式MONO。 | |
| #define | A2DP_CODEC_CHANNEL_MODE_STEREO (0x01 << 1) |
| A2dp声道模式STEREO。 | |
类型定义 | |
| typedef void(* | a2dp_src_connect_state_changed_callback) (bd_addr_t *bd_addr, int conn_state) |
| a2dp src连接状态改变回调函数。 | |
| typedef void(* | a2dp_src_playing_state_changed_callback) (bd_addr_t *bd_addr, int playing_state) |
| A2dp src播放状态改变回调函数。 | |
| typedef void(* | a2dp_src_configuration_changed_callback) (bd_addr_t *bd_addr, a2dp_codec_info_t *info) |
| A2dp 编码格式改变回调函数。 | |
枚举 | |
| enum | a2dp_codec_type_t { A2DP_CODEC_TYPE_SBC = 0x00 , A2DP_CODEC_TYPE_AAC , A2DP_CODEC_TYPE_APTX , A2DP_CODEC_TYPE_APTX_HD , A2DP_CODEC_TYPE_LDAC , A2DP_CODEC_TYPE_LHDC , A2DP_CODEC_TYPE_LC3 , A2DP_CODEC_TYPE_L2HC , A2DP_CODEC_TYPE_INVALID = 0xF4240 } |
| A2dp编码格式类型。 更多... | |
| enum | a2dp_optional_codec_support_state_t { A2DP_OPTIONAL_CODEC_NOT_SUPPORT = 0x00 , A2DP_OPTIONAL_CODEC_SUPPORT , A2DP_OPTIONAL_CODEC_SUPPORT_UNKNOWN } |
| A2dp配置编码格式支持状态。 更多... | |
函数 | |
| int | a2dp_src_get_device_connect_state (const bd_addr_t *bd_addr) |
| 通过设备地址查询设备连接状态。 | |
| int | a2dp_src_get_playing_state (const bd_addr_t *bd_addr) |
| 当对端设备已经连接时,通过设备地址查询对端蓝牙设备播放状态。 | |
| int | a2dp_src_connect (const bd_addr_t *bd_addr) |
| 与对端设备建立a2dp连接。 | |
| int | a2dp_src_disconnect (const bd_addr_t *bd_addr) |
| 与对端设备断开a2dp连接。 | |
| bd_addr_t | a2dp_src_get_active_device (void) |
| 查询对端活跃蓝牙设备的地址。 | |
| int | a2dp_src_start_playing (const bd_addr_t *bd_addr) |
| 设置蓝牙音乐的播放为start状态。 | |
| int | a2dp_src_suspend_playing (const bd_addr_t *bd_addr) |
| 设置蓝牙音乐的播放为suspend状态。 | |
| int | a2dp_src_stop_playing (const bd_addr_t *bd_addr) |
| 设置蓝牙音乐的播放为stop状态。 | |
| int | a2dp_src_register_callbacks (a2dp_src_callbacks_t *func) |
| 注册上层应用的回调。 | |
| int | a2dp_src_deregister_callbacks (a2dp_src_callbacks_t *func) |
| 去注册上层应用的回调。 | |
| #define A2DP_CODEC_BITS_PER_SAMPLE_16 (0x01 << 0) |
| #define A2DP_CODEC_BITS_PER_SAMPLE_24 (0x01 << 1) |
| #define A2DP_CODEC_BITS_PER_SAMPLE_32 (0x01 << 2) |
| #define A2DP_CODEC_BITS_PER_SAMPLE_NONE 0x00 |
A2dp 的采样比特位。
| #define A2DP_CODEC_CHANNEL_MODE_MONO (0x01 << 0) |
A2dp声道模式MONO。
| #define A2DP_CODEC_CHANNEL_MODE_NONE 0x00 |
A2dp声道模式NONE。
| #define A2DP_CODEC_CHANNEL_MODE_STEREO (0x01 << 1) |
A2dp声道模式STEREO。
| #define A2DP_CODEC_PRIORITY_DEFAULT 0 |
| #define A2DP_CODEC_PRIORITY_DISABLED (-1) |
A2dp 编码格式优先级设置。
| #define A2DP_CODEC_PRIORITY_HIGHEST (1000 * 1000) |
| #define A2DP_CODEC_SAMPLE_RATE_176400 (0x01 << 4) |
| #define A2DP_CODEC_SAMPLE_RATE_192000 (0x01 << 5) |
| #define A2DP_CODEC_SAMPLE_RATE_44100 (0x01 << 0) |
| #define A2DP_CODEC_SAMPLE_RATE_48000 (0x01 << 1) |
| #define A2DP_CODEC_SAMPLE_RATE_88200 (0x01 << 2) |
| #define A2DP_CODEC_SAMPLE_RATE_96000 (0x01 << 3) |
| #define A2DP_CODEC_SAMPLE_RATE_NONE 0x00 |
A2dp 采样率。
| typedef void(* a2dp_src_configuration_changed_callback) (bd_addr_t *bd_addr, a2dp_codec_info_t *info) |
A2dp 编码格式改变回调函数。
| typedef void(* a2dp_src_connect_state_changed_callback) (bd_addr_t *bd_addr, int conn_state) |
a2dp src连接状态改变回调函数。
| typedef void(* a2dp_src_playing_state_changed_callback) (bd_addr_t *bd_addr, int playing_state) |
A2dp src播放状态改变回调函数。
| enum a2dp_codec_type_t |
A2dp编码格式类型。
| int a2dp_src_connect | ( | const bd_addr_t * | bd_addr | ) |
与对端设备建立a2dp连接。
| int a2dp_src_deregister_callbacks | ( | a2dp_src_callbacks_t * | func | ) |
去注册上层应用的回调。
| int a2dp_src_disconnect | ( | const bd_addr_t * | bd_addr | ) |
与对端设备断开a2dp连接。
| bd_addr_t a2dp_src_get_active_device | ( | void | ) |
查询对端活跃蓝牙设备的地址。
| int a2dp_src_get_device_connect_state | ( | const bd_addr_t * | bd_addr | ) |
通过设备地址查询设备连接状态。
| int a2dp_src_get_playing_state | ( | const bd_addr_t * | bd_addr | ) |
当对端设备已经连接时,通过设备地址查询对端蓝牙设备播放状态。
| int a2dp_src_register_callbacks | ( | a2dp_src_callbacks_t * | func | ) |
注册上层应用的回调。
| int a2dp_src_start_playing | ( | const bd_addr_t * | bd_addr | ) |
设置蓝牙音乐的播放为start状态。
| int a2dp_src_stop_playing | ( | const bd_addr_t * | bd_addr | ) |
设置蓝牙音乐的播放为stop状态。
| int a2dp_src_suspend_playing | ( | const bd_addr_t * | bd_addr | ) |
设置蓝牙音乐的播放为suspend状态。