|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
类型定义 | |
| typedef void(* | avrcp_ct_conn_state_changed_callback) (const bd_addr_t *bd_addr, profile_connect_state_t state) |
| avrcp ct 连接状态更新回调函数。 | |
| typedef void(* | avrcp_ct_press_button_response_callback) (const bd_addr_t *bd_addr, int key_operation) |
| 收到来自TG的press button响应时回调函数。 | |
| typedef void(* | avrcp_ct_release_button_response_callback) (const bd_addr_t *bd_addr, int key_operation) |
| 收到来自TG的release button响应时回调函数。 | |
| typedef void(* | avrcp_ct_supported_companies_callback) (const bd_addr_t *bd_addr, avrcp_ct_support_company_para_t *company) |
| 收到来自TG的支持的company列表时回调函数。 | |
| typedef void(* | avrcp_ct_supported_event_callback) (const bd_addr_t *bd_addr, avrcp_ct_support_event_para_t *event) |
| 收到来自TG的支持的event列表时回调函数。 | |
| typedef void(* | avrcp_ct_get_element_attribute_callback) (const bd_addr_t *bd_addr, avrcp_ct_element_attr_para_cb_t *attr_cb_para) |
| 收到来自TG返回的GetElementAttributes响应时回调函数。 | |
| typedef void(* | avrcp_ct_get_play_status_callback) (const bd_addr_t *bd_addr, avrcp_ct_play_status_cb_t *status) |
| 收到来自TG返回的GetPlayStatus响应时回调函数。 | |
| typedef void(* | avrcp_ct_notification_callback) (const bd_addr_t *bd_addr, avrcp_notify_event_t event_id, avrcp_ct_notification_value_cb_t *notification) |
| 收到来自TG返回的Notification时回调函数。 | |
函数 | |
| int | avrcp_ct_get_device_connect_state (const bd_addr_t *bd_addr) |
| 通过设备地址查询设备avrcp连接状态。 | |
| int | avrcp_ct_connect (const bd_addr_t *bd_addr) |
| 与对端设备建立avrcp连接。 | |
| int | avrcp_ct_disconnect (const bd_addr_t *bd_addr) |
| 断开与TG的连接。 | |
| int | avrcp_ct_press_button (const bd_addr_t *bd_addr, int key_operation) |
| 通知TG端CT已经按下button。 | |
| int | avrcp_ct_release_button (const bd_addr_t *bd_addr, int key_operation) |
| 通知TG端CT已经释放button。 | |
| int | avrcp_ct_get_supported_companies (const bd_addr_t *bd_addr) |
| 获取TG端支持的公司列表。 | |
| int | avrcp_ct_get_supported_events (const bd_addr_t *bd_addr) |
| 获取TG端支持的事件列表。 | |
| int | avrcp_ct_get_element_attributes (const bd_addr_t *bd_addr, const avrcp_ct_get_element_attr_para_t *param) |
| 获取TG端支持的属性列表,比如歌曲标题,专辑、艺术风格,年份和作曲家等。 | |
| int | avrcp_ct_get_play_status (const bd_addr_t *bd_addr) |
| 获取TG端媒体的播放状态信息。 | |
| int | avrcp_ct_register_notification (const bd_addr_t *bd_addr, unsigned char event_id, unsigned int interval) |
| 将TG端支持的事件注册成功后,如果该事件改变会自动通知到CT端。 | |
| int | avrcp_ct_set_absolute_volume (const bd_addr_t *bd_addr, unsigned char volume) |
| 设置TG端的绝对音量。 | |
| int | avrcp_ct_register_callbacks (avrcp_ct_callbacks_t *func) |
| 注册Avrcp CT回调函数。 | |
| typedef void(* avrcp_ct_conn_state_changed_callback) (const bd_addr_t *bd_addr, profile_connect_state_t state) |
avrcp ct 连接状态更新回调函数。
| typedef void(* avrcp_ct_get_element_attribute_callback) (const bd_addr_t *bd_addr, avrcp_ct_element_attr_para_cb_t *attr_cb_para) |
收到来自TG返回的GetElementAttributes响应时回调函数。
| typedef void(* avrcp_ct_get_play_status_callback) (const bd_addr_t *bd_addr, avrcp_ct_play_status_cb_t *status) |
收到来自TG返回的GetPlayStatus响应时回调函数。
| typedef void(* avrcp_ct_notification_callback) (const bd_addr_t *bd_addr, avrcp_notify_event_t event_id, avrcp_ct_notification_value_cb_t *notification) |
收到来自TG返回的Notification时回调函数。
| typedef void(* avrcp_ct_press_button_response_callback) (const bd_addr_t *bd_addr, int key_operation) |
收到来自TG的press button响应时回调函数。
| typedef void(* avrcp_ct_release_button_response_callback) (const bd_addr_t *bd_addr, int key_operation) |
收到来自TG的release button响应时回调函数。
| typedef void(* avrcp_ct_supported_companies_callback) (const bd_addr_t *bd_addr, avrcp_ct_support_company_para_t *company) |
收到来自TG的支持的company列表时回调函数。
| typedef void(* avrcp_ct_supported_event_callback) (const bd_addr_t *bd_addr, avrcp_ct_support_event_para_t *event) |
收到来自TG的支持的event列表时回调函数。
AVRCP电量状态,在结构 avrcp_ct_notification_value_cb_t 中使用。 与 AVRCP_NOTIFY_EVENT_BATT_STATUS_CHANGED 对应。
AVRCP元素属性ID,在 avrcp_ct_get_element_attr_para_t
AVRCP系统状态,在结构 avrcp_ct_notification_value_cb_t 中使用。 与 AVRCP_NOTIFY_EVENT_SYSTEM_STATUS_CHANGED 对应。
| 枚举值 | |
|---|---|
| AVRCP_CT_SYSTEM_STATUS_POWER_ON | AVRCP开机事件 |
| AVRCP_CT_SYSTEM_STATUS_POWER_OFF | AVRCP关机事件 |
| AVRCP_CT_SYSTEM_STATUS_UNPLUGGED | AVRCP未充电状态 |
AVRCP的按键操作,取值的定义来自于规范:1394 Trade Association。
| enum avrcp_notify_event_t |
定义notification事件对应的"EventIDs", 在接口 avrcp_ct_register_notification 中使用,参考Audio/Video Remote Control 1.6.2 Section 28 Appendix
| enum avrcp_play_status_t |
| int avrcp_ct_connect | ( | const bd_addr_t * | bd_addr | ) |
与对端设备建立avrcp连接。
| int avrcp_ct_disconnect | ( | const bd_addr_t * | bd_addr | ) |
断开与TG的连接。
| int avrcp_ct_get_device_connect_state | ( | const bd_addr_t * | bd_addr | ) |
通过设备地址查询设备avrcp连接状态。
| int avrcp_ct_get_element_attributes | ( | const bd_addr_t * | bd_addr, |
| const avrcp_ct_get_element_attr_para_t * | param | ||
| ) |
获取TG端支持的属性列表,比如歌曲标题,专辑、艺术风格,年份和作曲家等。
| int avrcp_ct_get_play_status | ( | const bd_addr_t * | bd_addr | ) |
获取TG端媒体的播放状态信息。
| int avrcp_ct_get_supported_companies | ( | const bd_addr_t * | bd_addr | ) |
获取TG端支持的公司列表。
| int avrcp_ct_get_supported_events | ( | const bd_addr_t * | bd_addr | ) |
获取TG端支持的事件列表。
| int avrcp_ct_press_button | ( | const bd_addr_t * | bd_addr, |
| int | key_operation | ||
| ) |
通知TG端CT已经按下button。
| int avrcp_ct_register_callbacks | ( | avrcp_ct_callbacks_t * | func | ) |
注册Avrcp CT回调函数。
| int avrcp_ct_register_notification | ( | const bd_addr_t * | bd_addr, |
| unsigned char | event_id, | ||
| unsigned int | interval | ||
| ) |
将TG端支持的事件注册成功后,如果该事件改变会自动通知到CT端。
| int avrcp_ct_release_button | ( | const bd_addr_t * | bd_addr, |
| int | key_operation | ||
| ) |
通知TG端CT已经释放button。
| int avrcp_ct_set_absolute_volume | ( | const bd_addr_t * | bd_addr, |
| unsigned char | volume | ||
| ) |
设置TG端的绝对音量。