MT2523 API Reference
LinkIt SDK v4
|
Macros | |
#define | BT_AVRCP_CONNECT_CNF (BT_MODULE_AVRCP | 0x0000) |
Event reported to the user. More... | |
#define | BT_AVRCP_CONNECT_IND (BT_MODULE_AVRCP | 0x0001) |
The connection indication event indicates whether the local device will be connected with the remote device. More... | |
#define | BT_AVRCP_DISCONNECT_IND (BT_MODULE_AVRCP | 0x0002) |
The disconnect indication event indicates the connection disconnected between the local device and the remote device. More... | |
#define | BT_AVRCP_PASS_THROUGH_CNF (BT_MODULE_AVRCP | 0x0003) |
The pass through confirmation event after calling bt_avrcp_send_pass_through_command(). More... | |
#define | BT_AVRCP_LIST_APP_SETTING_ATTRIBUTES_CNF (BT_MODULE_AVRCP | 0x0004) |
The list application setting attributes confirmation event after calling bt_avrcp_list_app_setting_attributes(). More... | |
#define | BT_AVRCP_GET_APP_SETTING_VALUE_CNF (BT_MODULE_AVRCP | 0x0005) |
The get application setting attributes confirmation event after calling bt_avrcp_get_app_setting_value(). More... | |
#define | BT_AVRCP_SET_APP_SETTING_VALUE_CNF (BT_MODULE_AVRCP | 0x0006) |
The set application setting attributes confirmation event after calling bt_avrcp_set_app_setting_value(). More... | |
#define | BT_AVRCP_GET_ELEMENT_ATTRIBUTES_CNF (BT_MODULE_AVRCP | 0x0007) |
The get element attributes confirmation event after calling bt_avrcp_get_element_attributes(). More... | |
#define | BT_AVRCP_EVENT_NOTIFICATION_IND (BT_MODULE_AVRCP | 0x0008) |
The event notification indication to register an event after calling bt_avrcp_register_notification(). More... | |
#define | BT_AVRCP_REQUEST_CONTINUING_CNF (BT_MODULE_AVRCP | 0x0009) |
The request continuing confirmation event is only triggered if calling bt_avrcp_request_continuing_response() failed. More... | |
#define | BT_AVRCP_ABORT_CONTINUING_CNF (BT_MODULE_AVRCP | 0x000a) |
The abort continuing confirmation event after calling bt_avrcp_abort_continuing_response(). More... | |
#define | BT_AVRCP_SET_ABSOLUTE_VOLUME_CNF (BT_MODULE_AVRCP | 0x000b) |
The set absolute volume confirmation event after calling bt_avrcp_set_absolute_volume(). More... | |
#define | BT_AVRCP_PASS_THROUGH_COMMAND_IND (BT_MODULE_AVRCP | 0x0010) |
The pass-through command indication event indicates pass through command is received from CT. More... | |
#define | BT_AVRCP_SET_ABSOLUTE_VOLUME_COMMAND_IND (BT_MODULE_AVRCP | 0x0011) |
The event indicates set absolute volume command is received from CT. More... | |
#define | BT_AVRCP_REGISTER_NOTIFICATION_IND (BT_MODULE_AVRCP | 0x0012) |
The event indicates register notification command is received from CT. More... | |
#define | BT_AVRCP_GET_PLAY_STATUS_NOTIFICATION_IND (BT_MODULE_AVRCP | 0x0013) |
The event indicates get play status notification command is received from CT. More... | |
#define | BT_AVRCP_ELEMENT_METADATA_IND (BT_MODULE_AVRCP | 0x0014) |
The event indicates element metadata indication command is received from CT. More... | |
#define | BT_AVRCP_GET_CAPABILITY_IND (BT_MODULE_AVRCP | 0x0015) |
The event indicates get capability command indication is received from CT. More... | |
#define | BT_AVRCP_ELEMENT_METADATA_CONT_IND (BT_MODULE_AVRCP | 0x0016) |
The event indicates element metadata continuation indication command is received from CT. More... | |
#define | BT_AVRCP_CONTINUATION_ABORT_IND (BT_MODULE_AVRCP | 0x0017) |
Abort the continuation is received from CT. More... | |
#define | BT_STATUS_AVRCP_INVALID_PARAMETER (BT_MODULE_AVRCP | 0x01) |
Invalid input parameter. More... | |
#define | BT_STATUS_AVRCP_FAILED (BT_MODULE_AVRCP | 0x02) |
Command execution failed with an unknown reason. More... | |
#define | BT_STATUS_AVRCP_BUSY (BT_MODULE_AVRCP | 0x03) |
The last command did not receive a response. More... | |
#define | BT_STATUS_AVRCP_LINK_ALREADY_EXISTED (BT_MODULE_AVRCP | 0x04) |
Attempt to connect to an already connected device. More... | |
#define | BT_STATUS_AVRCP_SDP_QUERY_FAILED (BT_MODULE_AVRCP | 0x05) |
The SDP query has failed. More... | |
#define | BT_STATUS_AVRCP_NOT_IMPLEMENTED (BT_MODULE_AVRCP | 0x28) |
The command is not implemented by a remote device. More... | |
#define | BT_STATUS_AVRCP_REJECTED (BT_MODULE_AVRCP | 0x29) |
The command is rejected by a remote device. More... | |
#define | BT_STATUS_AVRCP_INTERIM (BT_MODULE_AVRCP | 0x2F) |
An interim response. More... | |
#define | BT_STATUS_AVRCP_REJECT_INVALID_COMMAND (BT_MODULE_AVRCP | 0x30) |
The remote device rejected an unknown command. More... | |
#define | BT_STATUS_AVRCP_REJECT_INVALID_PARAMETER (BT_MODULE_AVRCP | 0x31) |
The remote device rejected the command as the given parameters are invalid. More... | |
#define | BT_STATUS_AVRCP_REJECT_PARAMTER_NOT_FOUND (BT_MODULE_AVRCP | 0x32) |
The remote device rejected the command as the specified parameter was not found. More... | |
#define | BT_STATUS_AVRCP_REJECT_INTERNAL_ERROR (BT_MODULE_AVRCP | 0x33) |
The remote device rejected the command due to an internal error. More... | |
#define | BT_AVRCP_OPERATION_ID_SELECT 0x00 |
The operation ID of the AVRCP pass through command. More... | |
#define | BT_AVRCP_OPERATION_ID_UP 0x01 |
Up. More... | |
#define | BT_AVRCP_OPERATION_ID_DOWN 0x02 |
Down. More... | |
#define | BT_AVRCP_OPERATION_ID_LEFT 0x03 |
Left. More... | |
#define | BT_AVRCP_OPERATION_ID_RIGHT 0x04 |
Right. More... | |
#define | BT_AVRCP_OPERATION_ID_RIGHT_UP 0x05 |
Right up. More... | |
#define | BT_AVRCP_OPERATION_ID_RIGHT_DOWN 0x06 |
Right down. More... | |
#define | BT_AVRCP_OPERATION_ID_LEFT_UP 0x07 |
Left up. More... | |
#define | BT_AVRCP_OPERATION_ID_LEFT_DOWN 0x08 |
Left down. More... | |
#define | BT_AVRCP_OPERATION_ID_ROOT_MENU 0x09 |
Root menu. More... | |
#define | BT_AVRCP_OPERATION_ID_SETUP_MENU 0x0A |
Setup menu. More... | |
#define | BT_AVRCP_OPERATION_ID_CONTENTS_MENU 0x0B |
Contents menu. More... | |
#define | BT_AVRCP_OPERATION_ID_FAVORITE_MENU 0x0C |
Favorite menu. More... | |
#define | BT_AVRCP_OPERATION_ID_EXIT 0x0D |
Exit. More... | |
#define | BT_AVRCP_OPERATION_ID_0 0x20 |
Number 0. More... | |
#define | BT_AVRCP_OPERATION_ID_1 0x21 |
Number 1. More... | |
#define | BT_AVRCP_OPERATION_ID_2 0x22 |
Number 2. More... | |
#define | BT_AVRCP_OPERATION_ID_3 0x23 |
Number 3. More... | |
#define | BT_AVRCP_OPERATION_ID_4 0x24 |
Number 4. More... | |
#define | BT_AVRCP_OPERATION_ID_5 0x25 |
Number 5. More... | |
#define | BT_AVRCP_OPERATION_ID_6 0x26 |
Number 6. More... | |
#define | BT_AVRCP_OPERATION_ID_7 0x27 |
Number 7. More... | |
#define | BT_AVRCP_OPERATION_ID_8 0x28 |
Number 8. More... | |
#define | BT_AVRCP_OPERATION_ID_9 0x29 |
Number 9. More... | |
#define | BT_AVRCP_OPERATION_ID_DOT 0x2A |
Dot. More... | |
#define | BT_AVRCP_OPERATION_ID_ENTER 0x2B |
Enter. More... | |
#define | BT_AVRCP_OPERATION_ID_CLEAR 0x2C |
Clear. More... | |
#define | BT_AVRCP_OPERATION_ID_CHANNEL_UP 0x30 |
Channel up. More... | |
#define | BT_AVRCP_OPERATION_ID_CHANNEL_DOWN 0x31 |
Channel down. More... | |
#define | BT_AVRCP_OPERATION_ID_PREVIOUS_CHANNEL 0x32 |
Previous channel. More... | |
#define | BT_AVRCP_OPERATION_ID_SOUND_SELECT 0x33 |
Sound select. More... | |
#define | BT_AVRCP_OPERATION_ID_INPUT_SELECT 0x34 |
Input select. More... | |
#define | BT_AVRCP_OPERATION_ID_DISPLAY_INFO 0x35 |
Display information. More... | |
#define | BT_AVRCP_OPERATION_ID_HELP 0x36 |
Help. More... | |
#define | BT_AVRCP_OPERATION_ID_PAGE_UP 0x37 |
Page up. More... | |
#define | BT_AVRCP_OPERATION_ID_PAGE_DOWN 0x38 |
Page down. More... | |
#define | BT_AVRCP_OPERATION_ID_POWER 0x40 |
Power. More... | |
#define | BT_AVRCP_OPERATION_ID_VOLUME_UP 0x41 |
Volume up. More... | |
#define | BT_AVRCP_OPERATION_ID_VOLUME_DOWN 0x42 |
Volume down. More... | |
#define | BT_AVRCP_OPERATION_ID_MUTE 0x43 |
Mute. More... | |
#define | BT_AVRCP_OPERATION_ID_PLAY 0x44 |
Play. More... | |
#define | BT_AVRCP_OPERATION_ID_STOP 0x45 |
Stop. More... | |
#define | BT_AVRCP_OPERATION_ID_PAUSE 0x46 |
Pause. More... | |
#define | BT_AVRCP_OPERATION_ID_RECORD 0x47 |
Record. More... | |
#define | BT_AVRCP_OPERATION_ID_REWIND 0x48 |
Rewind. More... | |
#define | BT_AVRCP_OPERATION_ID_FAST_FORWARD 0x49 |
Fast forward. More... | |
#define | BT_AVRCP_OPERATION_ID_EJECT 0x4A |
Eject. More... | |
#define | BT_AVRCP_OPERATION_ID_FORWARD 0x4B |
Forward. More... | |
#define | BT_AVRCP_OPERATION_ID_BACKWARD 0x4C |
Backward. More... | |
#define | BT_AVRCP_OPERATION_ID_ANGLE 0x50 |
Angle. More... | |
#define | BT_AVRCP_OPERATION_ID_SUBPICTURE 0x51 |
Sub picture. More... | |
#define | BT_AVRCP_OPERATION_ID_F1 0x71 |
F1. More... | |
#define | BT_AVRCP_OPERATION_ID_F2 0x72 |
F2. More... | |
#define | BT_AVRCP_OPERATION_ID_F3 0x73 |
F3. More... | |
#define | BT_AVRCP_OPERATION_ID_F4 0x74 |
F4. More... | |
#define | BT_AVRCP_OPERATION_ID_F5 0x75 |
F5. More... | |
#define | BT_AVRCP_OPERATION_ID_RESERVED 0x7F |
Reserved. More... | |
#define | BT_AVRCP_FALSE 0 |
#define | BT_AVRCP_TRUE 1 |
#define | BT_AVRCP_ROLE_CT 0 |
The role of avrcp connection. More... | |
#define | BT_AVRCP_ROLE_TG 1 |
Target role. More... | |
#define | BT_AVRCP_ROLE_CT_AND_TG 2 |
#define | BT_AVRCP_ROLE_UNDEF 255 |
#define | BT_AVRCP_MAX_CHANNEL 2 /* One Target and one Controller. */ |
#define | BT_AVRCP_OPERATION_STATE_PUSH 0 |
The key state of the pass through command. More... | |
#define | BT_AVRCP_OPERATION_STATE_RELEASED 1 |
The released state. More... | |
#define | BT_AVRCP_METADATA_PACKET_TYPE_NON_FRAGMENT 0x00 |
The packet type indicating the fragmented state of the packet. More... | |
#define | BT_AVRCP_METADATA_PACKET_TYPE_START 0x01 |
The starting packet of the fragmented packets. More... | |
#define | BT_AVRCP_METADATA_PACKET_TYPE_CONTINUE 0x02 |
The packet is in the middle of the fragmented packets. More... | |
#define | BT_AVRCP_METADATA_PACKET_TYPE_END 0x03 |
The final packet of the fragmented packets. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_TITLE 0x01 |
The media attribute IDs. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_ARTIST_NAME 0x02 |
Display the name of the artist. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_ALBUM_NAME 0x03 |
Display the name of the album. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_MEDIA_NUMBER 0x04 |
Display the number of the media, such as the track number of the CD. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_TOTAL_MEDIA_NUMBER 0x05 |
Display the total number of the media, such as the total number of tracks on the CD. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_GENRE 0x06 |
Display the music genre of the media. More... | |
#define | BT_AVRCP_MEDIA_ATTRIBUTE_PLAYING_TIME 0x07 |
Display the playing duration in milliseconds. More... | |
#define | BT_AVRCP_EVENT_PLAYBACK_STATUS_CHANGED 0x01 |
The event of register notification. More... | |
#define | BT_AVRCP_EVENT_TRACK_CHANGED 0x02 |
The current track is changed. More... | |
#define | BT_AVRCP_EVENT_TRACK_REACHED_END 0x03 |
End of track reached. More... | |
#define | BT_AVRCP_EVENT_TRACK_REACHED_START 0x04 |
Start of a track. More... | |
#define | BT_AVRCP_EVENT_PLAYBACK_POS_CHANGED 0x05 |
The playback position has changed. More... | |
#define | BT_AVRCP_EVENT_BATT_STATUS_CHANGED 0x06 |
The battery status has changed. More... | |
#define | BT_AVRCP_EVENT_SYSTEM_STATUS_CHANGED 0x07 |
The system status has changed. More... | |
#define | BT_AVRCP_EVENT_PLAYER_APP_SETTING_CHANGED 0x08 |
The player application settings are changed. More... | |
#define | BT_AVRCP_EVENT_NOW_PLAYING_CONTENT_CHANGED 0x09 |
#define | BT_AVRCP_EVENT_AVAILABLE_PLAYERS_CHANGED 0x0a |
Available Players Changed Notification: event enables the CT to be informed if a new player is available to address, for instance start or install. More... | |
#define | BT_AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED 0x0b |
Addressed Player Changed Notification: The response format for this event is the Player ID of the currently addressed player. More... | |
#define | BT_AVRCP_EVENT_UIDS_CHANGED 0x0c |
#define | BT_AVRCP_EVENT_VOLUME_CHANGED 0x0D |
The absolute volume has changed. More... | |
#define | BT_AVRCP_STATUS_SYSTEM_POWER_ON 0x00 |
The System status for a registered event BT_AVRCP_EVENT_SYSTEM_STATUS_CHANGED. More... | |
#define | BT_AVRCP_STATUS_SYSTEM_POWER_OFF 0x01 |
The player is off. More... | |
#define | BT_AVRCP_STATUS_SYSTEM_UNPLUGGED 0x02 |
The player is not connected to Bluetooth. More... | |
#define | BT_AVRCP_STATUS_BATT_NORMAL 0x00 |
Batterystatus for a registered event BT_AVRCP_EVENT_BATT_STATUS_CHANGED. More... | |
#define | BT_AVRCP_STATUS_BATT_WARNING 0x01 |
The battery level is low, operation will terminate soon. More... | |
#define | BT_AVRCP_STATUS_BATT_CRITICAL 0x02 |
Critical battery level, the operation will terminate soon. More... | |
#define | BT_AVRCP_STATUS_BATT_EXTERNAL 0x03 |
Plugged into an external power supply. More... | |
#define | BT_AVRCP_STATUS_BATT_FULL_CHARGE 0x04 |
The device is completely charged from an external power supply. More... | |
#define | BT_AVRCP_STATUS_PLAY_STOPPED 0x00 |
Playstatus for a registered event BT_AVRCP_EVENT_PLAYBACK_STATUS_CHANGED. More... | |
#define | BT_AVRCP_STATUS_PLAY_PLAYING 0x01 |
The song is playing. More... | |
#define | BT_AVRCP_STATUS_PLAY_PAUSED 0x02 |
The song is paused. More... | |
#define | BT_AVRCP_STATUS_PLAY_FWD_SEEK 0x03 |
Forward seek. More... | |
#define | BT_AVRCP_STATUS_PLAY_REV_SEEK 0x04 |
Reverse seek. More... | |
#define | BT_AVRCP_STATUS_PLAY_ERROR 0xFF |
An error occurred. More... | |
#define | BT_AVRCP_PDU_ID_GET_CAPABILITIES 0X10 |
The PDU ID of the VENDOR DEPENDENT command. More... | |
#define | BT_AVRCP_PDU_ID_LIST_APP_SETTING_ATTRIBUTES 0X11 |
The PDU ID for bt_avrcp_list_app_setting_attributes(). More... | |
#define | BT_AVRCP_PDU_ID_GET_APP_SETTING_VALUE 0X13 |
The PDU ID for bt_avrcp_get_app_setting_value(). More... | |
#define | BT_AVRCP_PDU_ID_SET_APP_SETTING_VALUE 0X14 |
The PDU ID for bt_avrcp_set_app_setting_value(). More... | |
#define | BT_AVRCP_PDU_ID_GET_ELEMENT_ATTRIBUTES 0x20 |
The PDU ID for bt_avrcp_get_element_attributes(). More... | |
#define | BT_AVRCP_PDU_ID_GET_PLAY_STATUS 0x30 |
The PDU ID for bt_avrcp_media_send_play_status_response(). More... | |
#define | BT_AVRCP_PDU_ID_REGISTER_NOTIFICATION 0X31 |
The PDU ID for bt_avrcp_register_notification(). More... | |
#define | BT_AVRCP_PDU_ID_REQUEST_CONTINUING_RSP 0X40 |
The PDU ID for bt_avrcp_request_continuing_response(). More... | |
#define | BT_AVRCP_PDU_ID_ABORT_CONTINUING_RSP 0X41 |
The PDU ID for bt_avrcp_abort_continuing_response(). More... | |
#define | BT_AVRCP_PDU_ID_SET_ABSOLUTE_VOLUME 0x50 |
The PDU ID for bt_avrcp_set_absolute_volume(). More... | |
#define | BT_AVRCP_RESPONSE_NOT_IMPLEMENTED 0x08 |
Response code for AVRCP command. More... | |
#define | BT_AVRCP_RESPONSE_ACCEPTED 0x09 |
Response code for AVRCP command. More... | |
#define | BT_AVRCP_RESPONSE_REJECTED 0x0A |
Response code for AVRCP command. More... | |
#define | BT_AVRCP_RESPONSE_CHANGED 0x0D |
Response code for AVRCP command. More... | |
#define | BT_AVRCP_RESPONSE_INTERIM 0x0F |
Response code for AVRCP command. More... | |
#define | BT_AVRCP_EVENT_MEDIA_PLAY_STOPPED 0x00 |
#define | BT_AVRCP_EVENT_MEDIA_PLAYING 0x01 |
#define | BT_AVRCP_EVENT_MEDIA_PAUSED 0x02 |
#define | BT_AVRCP_EVENT_MEDIA_FWD_SEEK 0x03 |
#define | BT_AVRCP_EVENT_MEDIA_REV_SEEK 0x04 |
#define | BT_AVRCP_EVENT_MEDIA_ERROR 0xFF |
#define | BT_AVRCP_CAPABILITY_COMPANY_ID 0x2 |
#define | BT_AVRCP_CAPABILITY_EVENTS_SUPPORTED 0x3 /*Indicates the capability request from CT. */ |
#define | BT_AVRCP_ELEMENT_ATTRIBUTE_MAX_DATA_SIZE 450 |
#define | BT_AVRCP_MAX_MEDIA_ATTRIBUTE_LEN 64 |
Typedefs | |
typedef uint8_t | bt_avrcp_operation_id_t |
The operation ID type. More... | |
typedef uint8_t | bt_avrcp_role |
typedef uint8_t | bt_avrcp_operation_state_t |
The key state type of the operation. More... | |
typedef uint16_t | bt_avrcp_metadata_packet_type_t |
The packet type to indicate the packet fragmentation state. More... | |
typedef bt_avrcp_continuation_data_req_type | data_type |
typedef uint32_t | bt_avrcp_media_attribute_t |
The type of media attributes IDs. More... | |
typedef uint8_t | bt_avrcp_event_t |
The event type of register notification. More... | |
typedef uint8_t | bt_avrcp_status_t |
The event type of register notification. More... | |
typedef uint8_t | bt_avrcp_pdu_id_t |
The type of the PDU ID. More... | |
typedef uint8_t | bt_avrcp_response_t |
typedef uint8_t | bt_avrcp_media_play_status_event_t |
The event type of register notification. More... | |
typedef uint8_t | bt_avrcp_capability_types_t |
Enumerations | |
enum | bt_avrcp_continuation_data_req_type { BT_AVRCP_FIRST_OR_ONLY_IND_REQ = 0, BT_AVRCP_CONTINUATION_IND_REQ, BT_AVRCP_CONTINUATION_ABORT_IND_REQ, BT_AVRCP_PACKET_TYPE_IND_TOTAL } |
#define BT_AVRCP_ABORT_CONTINUING_CNF (BT_MODULE_AVRCP | 0x000a) |
The abort continuing confirmation event after calling bt_avrcp_abort_continuing_response().
The structure for this event is defined as bt_avrcp_abort_continuing_response_t.
#define BT_AVRCP_CONNECT_CNF (BT_MODULE_AVRCP | 0x0000) |
Event reported to the user.
The connection confirmation event is triggered after the connection is established between the local and remote devices. The structure for this event is defined as bt_avrcp_connect_cnf_t.
#define BT_AVRCP_CONNECT_IND (BT_MODULE_AVRCP | 0x0001) |
The connection indication event indicates whether the local device will be connected with the remote device.
The structure for this event is defined as bt_avrcp_connect_ind_t.
#define BT_AVRCP_CONTINUATION_ABORT_IND (BT_MODULE_AVRCP | 0x0017) |
Abort the continuation is received from CT.
#define BT_AVRCP_DISCONNECT_IND (BT_MODULE_AVRCP | 0x0002) |
The disconnect indication event indicates the connection disconnected between the local device and the remote device.
Not allowed to start a new connection in the same call tree because the AVRCP needs more time to free the resources. The structure for this event is defined as bt_avrcp_disconnect_ind_t.
#define BT_AVRCP_ELEMENT_METADATA_CONT_IND (BT_MODULE_AVRCP | 0x0016) |
The event indicates element metadata continuation indication command is received from CT.
#define BT_AVRCP_ELEMENT_METADATA_IND (BT_MODULE_AVRCP | 0x0014) |
The event indicates element metadata indication command is received from CT.
#define BT_AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED 0x0b |
Addressed Player Changed Notification: The response format for this event is the Player ID of the currently addressed player.
#define BT_AVRCP_EVENT_AVAILABLE_PLAYERS_CHANGED 0x0a |
Available Players Changed Notification: event enables the CT to be informed if a new player is available to address, for instance start or install.
#define BT_AVRCP_EVENT_BATT_STATUS_CHANGED 0x06 |
The battery status has changed.
#define BT_AVRCP_EVENT_NOTIFICATION_IND (BT_MODULE_AVRCP | 0x0008) |
The event notification indication to register an event after calling bt_avrcp_register_notification().
The structure for this event is defined as bt_avrcp_event_notification_t.
#define BT_AVRCP_EVENT_PLAYBACK_POS_CHANGED 0x05 |
The playback position has changed.
#define BT_AVRCP_EVENT_PLAYBACK_STATUS_CHANGED 0x01 |
The event of register notification.
The playback status of the current track has changed.
#define BT_AVRCP_EVENT_PLAYER_APP_SETTING_CHANGED 0x08 |
The player application settings are changed.
#define BT_AVRCP_EVENT_SYSTEM_STATUS_CHANGED 0x07 |
The system status has changed.
#define BT_AVRCP_EVENT_TRACK_CHANGED 0x02 |
The current track is changed.
#define BT_AVRCP_EVENT_TRACK_REACHED_END 0x03 |
End of track reached.
#define BT_AVRCP_EVENT_TRACK_REACHED_START 0x04 |
Start of a track.
#define BT_AVRCP_EVENT_VOLUME_CHANGED 0x0D |
The absolute volume has changed.
#define BT_AVRCP_GET_APP_SETTING_VALUE_CNF (BT_MODULE_AVRCP | 0x0005) |
The get application setting attributes confirmation event after calling bt_avrcp_get_app_setting_value().
The structure for this event is defined as bt_avrcp_get_app_setting_value_response_t.
#define BT_AVRCP_GET_CAPABILITY_IND (BT_MODULE_AVRCP | 0x0015) |
The event indicates get capability command indication is received from CT.
#define BT_AVRCP_GET_ELEMENT_ATTRIBUTES_CNF (BT_MODULE_AVRCP | 0x0007) |
The get element attributes confirmation event after calling bt_avrcp_get_element_attributes().
The structure for this event is defined as bt_avrcp_get_element_attributes_response_t.
#define BT_AVRCP_GET_PLAY_STATUS_NOTIFICATION_IND (BT_MODULE_AVRCP | 0x0013) |
The event indicates get play status notification command is received from CT.
#define BT_AVRCP_LIST_APP_SETTING_ATTRIBUTES_CNF (BT_MODULE_AVRCP | 0x0004) |
The list application setting attributes confirmation event after calling bt_avrcp_list_app_setting_attributes().
The structure for this event is defined as bt_avrcp_list_attruibutes_response_t.
#define BT_AVRCP_MEDIA_ATTRIBUTE_ALBUM_NAME 0x03 |
Display the name of the album.
#define BT_AVRCP_MEDIA_ATTRIBUTE_ARTIST_NAME 0x02 |
Display the name of the artist.
#define BT_AVRCP_MEDIA_ATTRIBUTE_GENRE 0x06 |
Display the music genre of the media.
#define BT_AVRCP_MEDIA_ATTRIBUTE_MEDIA_NUMBER 0x04 |
Display the number of the media, such as the track number of the CD.
#define BT_AVRCP_MEDIA_ATTRIBUTE_PLAYING_TIME 0x07 |
Display the playing duration in milliseconds.
#define BT_AVRCP_MEDIA_ATTRIBUTE_TITLE 0x01 |
The media attribute IDs.
Display the title of the media.
#define BT_AVRCP_MEDIA_ATTRIBUTE_TOTAL_MEDIA_NUMBER 0x05 |
Display the total number of the media, such as the total number of tracks on the CD.
#define BT_AVRCP_METADATA_PACKET_TYPE_CONTINUE 0x02 |
The packet is in the middle of the fragmented packets.
#define BT_AVRCP_METADATA_PACKET_TYPE_END 0x03 |
The final packet of the fragmented packets.
#define BT_AVRCP_METADATA_PACKET_TYPE_NON_FRAGMENT 0x00 |
The packet type indicating the fragmented state of the packet.
The packet is not fragmented.
#define BT_AVRCP_METADATA_PACKET_TYPE_START 0x01 |
The starting packet of the fragmented packets.
#define BT_AVRCP_OPERATION_ID_0 0x20 |
Number 0.
#define BT_AVRCP_OPERATION_ID_1 0x21 |
Number 1.
#define BT_AVRCP_OPERATION_ID_2 0x22 |
Number 2.
#define BT_AVRCP_OPERATION_ID_3 0x23 |
Number 3.
#define BT_AVRCP_OPERATION_ID_4 0x24 |
Number 4.
#define BT_AVRCP_OPERATION_ID_5 0x25 |
Number 5.
#define BT_AVRCP_OPERATION_ID_6 0x26 |
Number 6.
#define BT_AVRCP_OPERATION_ID_7 0x27 |
Number 7.
#define BT_AVRCP_OPERATION_ID_8 0x28 |
Number 8.
#define BT_AVRCP_OPERATION_ID_9 0x29 |
Number 9.
#define BT_AVRCP_OPERATION_ID_ANGLE 0x50 |
Angle.
#define BT_AVRCP_OPERATION_ID_BACKWARD 0x4C |
Backward.
#define BT_AVRCP_OPERATION_ID_CHANNEL_DOWN 0x31 |
Channel down.
#define BT_AVRCP_OPERATION_ID_CHANNEL_UP 0x30 |
Channel up.
#define BT_AVRCP_OPERATION_ID_CLEAR 0x2C |
Clear.
#define BT_AVRCP_OPERATION_ID_CONTENTS_MENU 0x0B |
Contents menu.
#define BT_AVRCP_OPERATION_ID_DISPLAY_INFO 0x35 |
Display information.
#define BT_AVRCP_OPERATION_ID_DOT 0x2A |
Dot.
#define BT_AVRCP_OPERATION_ID_DOWN 0x02 |
Down.
#define BT_AVRCP_OPERATION_ID_EJECT 0x4A |
Eject.
#define BT_AVRCP_OPERATION_ID_ENTER 0x2B |
Enter.
#define BT_AVRCP_OPERATION_ID_EXIT 0x0D |
Exit.
#define BT_AVRCP_OPERATION_ID_F1 0x71 |
F1.
#define BT_AVRCP_OPERATION_ID_F2 0x72 |
F2.
#define BT_AVRCP_OPERATION_ID_F3 0x73 |
F3.
#define BT_AVRCP_OPERATION_ID_F4 0x74 |
F4.
#define BT_AVRCP_OPERATION_ID_F5 0x75 |
F5.
#define BT_AVRCP_OPERATION_ID_FAST_FORWARD 0x49 |
Fast forward.
#define BT_AVRCP_OPERATION_ID_FAVORITE_MENU 0x0C |
Favorite menu.
#define BT_AVRCP_OPERATION_ID_FORWARD 0x4B |
Forward.
#define BT_AVRCP_OPERATION_ID_HELP 0x36 |
Help.
#define BT_AVRCP_OPERATION_ID_INPUT_SELECT 0x34 |
Input select.
#define BT_AVRCP_OPERATION_ID_LEFT 0x03 |
Left.
#define BT_AVRCP_OPERATION_ID_LEFT_DOWN 0x08 |
Left down.
#define BT_AVRCP_OPERATION_ID_LEFT_UP 0x07 |
Left up.
#define BT_AVRCP_OPERATION_ID_MUTE 0x43 |
Mute.
#define BT_AVRCP_OPERATION_ID_PAGE_DOWN 0x38 |
Page down.
#define BT_AVRCP_OPERATION_ID_PAGE_UP 0x37 |
Page up.
#define BT_AVRCP_OPERATION_ID_PAUSE 0x46 |
Pause.
#define BT_AVRCP_OPERATION_ID_PLAY 0x44 |
Play.
#define BT_AVRCP_OPERATION_ID_POWER 0x40 |
Power.
#define BT_AVRCP_OPERATION_ID_PREVIOUS_CHANNEL 0x32 |
Previous channel.
#define BT_AVRCP_OPERATION_ID_RECORD 0x47 |
Record.
#define BT_AVRCP_OPERATION_ID_RESERVED 0x7F |
Reserved.
#define BT_AVRCP_OPERATION_ID_REWIND 0x48 |
Rewind.
#define BT_AVRCP_OPERATION_ID_RIGHT 0x04 |
Right.
#define BT_AVRCP_OPERATION_ID_RIGHT_DOWN 0x06 |
Right down.
#define BT_AVRCP_OPERATION_ID_RIGHT_UP 0x05 |
Right up.
#define BT_AVRCP_OPERATION_ID_ROOT_MENU 0x09 |
Root menu.
#define BT_AVRCP_OPERATION_ID_SELECT 0x00 |
The operation ID of the AVRCP pass through command.
Select.
#define BT_AVRCP_OPERATION_ID_SETUP_MENU 0x0A |
Setup menu.
#define BT_AVRCP_OPERATION_ID_SOUND_SELECT 0x33 |
Sound select.
#define BT_AVRCP_OPERATION_ID_STOP 0x45 |
Stop.
#define BT_AVRCP_OPERATION_ID_SUBPICTURE 0x51 |
Sub picture.
#define BT_AVRCP_OPERATION_ID_UP 0x01 |
Up.
#define BT_AVRCP_OPERATION_ID_VOLUME_DOWN 0x42 |
Volume down.
#define BT_AVRCP_OPERATION_ID_VOLUME_UP 0x41 |
Volume up.
#define BT_AVRCP_OPERATION_STATE_PUSH 0 |
The key state of the pass through command.
The push state.
#define BT_AVRCP_OPERATION_STATE_RELEASED 1 |
The released state.
#define BT_AVRCP_PASS_THROUGH_CNF (BT_MODULE_AVRCP | 0x0003) |
The pass through confirmation event after calling bt_avrcp_send_pass_through_command().
The structure for this event is defined as bt_avrcp_pass_through_cnf_t.
#define BT_AVRCP_PASS_THROUGH_COMMAND_IND (BT_MODULE_AVRCP | 0x0010) |
The pass-through command indication event indicates pass through command is received from CT.
#define BT_AVRCP_PDU_ID_ABORT_CONTINUING_RSP 0X41 |
The PDU ID for bt_avrcp_abort_continuing_response().
#define BT_AVRCP_PDU_ID_GET_APP_SETTING_VALUE 0X13 |
The PDU ID for bt_avrcp_get_app_setting_value().
#define BT_AVRCP_PDU_ID_GET_CAPABILITIES 0X10 |
The PDU ID of the VENDOR DEPENDENT command.
The PDU ID to get TG capabilities and provide it to CT.
#define BT_AVRCP_PDU_ID_GET_ELEMENT_ATTRIBUTES 0x20 |
The PDU ID for bt_avrcp_get_element_attributes().
#define BT_AVRCP_PDU_ID_GET_PLAY_STATUS 0x30 |
The PDU ID for bt_avrcp_media_send_play_status_response().
#define BT_AVRCP_PDU_ID_LIST_APP_SETTING_ATTRIBUTES 0X11 |
The PDU ID for bt_avrcp_list_app_setting_attributes().
#define BT_AVRCP_PDU_ID_REGISTER_NOTIFICATION 0X31 |
The PDU ID for bt_avrcp_register_notification().
#define BT_AVRCP_PDU_ID_REQUEST_CONTINUING_RSP 0X40 |
The PDU ID for bt_avrcp_request_continuing_response().
#define BT_AVRCP_PDU_ID_SET_ABSOLUTE_VOLUME 0x50 |
The PDU ID for bt_avrcp_set_absolute_volume().
#define BT_AVRCP_PDU_ID_SET_APP_SETTING_VALUE 0X14 |
The PDU ID for bt_avrcp_set_app_setting_value().
#define BT_AVRCP_REGISTER_NOTIFICATION_IND (BT_MODULE_AVRCP | 0x0012) |
The event indicates register notification command is received from CT.
#define BT_AVRCP_REQUEST_CONTINUING_CNF (BT_MODULE_AVRCP | 0x0009) |
The request continuing confirmation event is only triggered if calling bt_avrcp_request_continuing_response() failed.
The structure for this event is defined as bt_avrcp_metadata_error_response_t.
#define BT_AVRCP_RESPONSE_ACCEPTED 0x09 |
Response code for AVRCP command.
TG accepts and executes the command.
#define BT_AVRCP_RESPONSE_CHANGED 0x0D |
Response code for AVRCP command.
TG sends the notification that the state of TG has changed.
#define BT_AVRCP_RESPONSE_INTERIM 0x0F |
Response code for AVRCP command.
TG has accepted the requested command but cannot return information within 100 milliseconds.
#define BT_AVRCP_RESPONSE_NOT_IMPLEMENTED 0x08 |
Response code for AVRCP command.
TG does not implement the command sent by CT.
#define BT_AVRCP_RESPONSE_REJECTED 0x0A |
Response code for AVRCP command.
TG implements the requested command but cannot respond because the current state doesn't allow it.
#define BT_AVRCP_ROLE_CT 0 |
The role of avrcp connection.
Controller role.
#define BT_AVRCP_ROLE_TG 1 |
Target role.
#define BT_AVRCP_SET_ABSOLUTE_VOLUME_CNF (BT_MODULE_AVRCP | 0x000b) |
The set absolute volume confirmation event after calling bt_avrcp_set_absolute_volume().
#define BT_AVRCP_SET_ABSOLUTE_VOLUME_COMMAND_IND (BT_MODULE_AVRCP | 0x0011) |
The event indicates set absolute volume command is received from CT.
#define BT_AVRCP_SET_APP_SETTING_VALUE_CNF (BT_MODULE_AVRCP | 0x0006) |
The set application setting attributes confirmation event after calling bt_avrcp_set_app_setting_value().
The structure for this event is defined as bt_avrcp_set_app_setting_value_response_t.
#define BT_AVRCP_STATUS_BATT_CRITICAL 0x02 |
Critical battery level, the operation will terminate soon.
#define BT_AVRCP_STATUS_BATT_EXTERNAL 0x03 |
Plugged into an external power supply.
#define BT_AVRCP_STATUS_BATT_FULL_CHARGE 0x04 |
The device is completely charged from an external power supply.
#define BT_AVRCP_STATUS_BATT_NORMAL 0x00 |
Batterystatus for a registered event BT_AVRCP_EVENT_BATT_STATUS_CHANGED.
Battery operation is in normal state.
#define BT_AVRCP_STATUS_BATT_WARNING 0x01 |
The battery level is low, operation will terminate soon.
#define BT_AVRCP_STATUS_PLAY_ERROR 0xFF |
An error occurred.
#define BT_AVRCP_STATUS_PLAY_FWD_SEEK 0x03 |
Forward seek.
#define BT_AVRCP_STATUS_PLAY_PAUSED 0x02 |
The song is paused.
#define BT_AVRCP_STATUS_PLAY_PLAYING 0x01 |
The song is playing.
#define BT_AVRCP_STATUS_PLAY_REV_SEEK 0x04 |
Reverse seek.
#define BT_AVRCP_STATUS_PLAY_STOPPED 0x00 |
Playstatus for a registered event BT_AVRCP_EVENT_PLAYBACK_STATUS_CHANGED.
The player has stopped.
#define BT_AVRCP_STATUS_SYSTEM_POWER_OFF 0x01 |
The player is off.
#define BT_AVRCP_STATUS_SYSTEM_POWER_ON 0x00 |
The System status for a registered event BT_AVRCP_EVENT_SYSTEM_STATUS_CHANGED.
The player is on.
#define BT_AVRCP_STATUS_SYSTEM_UNPLUGGED 0x02 |
The player is not connected to Bluetooth.
#define BT_STATUS_AVRCP_BUSY (BT_MODULE_AVRCP | 0x03) |
The last command did not receive a response.
#define BT_STATUS_AVRCP_FAILED (BT_MODULE_AVRCP | 0x02) |
Command execution failed with an unknown reason.
#define BT_STATUS_AVRCP_INTERIM (BT_MODULE_AVRCP | 0x2F) |
An interim response.
#define BT_STATUS_AVRCP_INVALID_PARAMETER (BT_MODULE_AVRCP | 0x01) |
Invalid input parameter.
#define BT_STATUS_AVRCP_LINK_ALREADY_EXISTED (BT_MODULE_AVRCP | 0x04) |
Attempt to connect to an already connected device.
#define BT_STATUS_AVRCP_NOT_IMPLEMENTED (BT_MODULE_AVRCP | 0x28) |
The command is not implemented by a remote device.
#define BT_STATUS_AVRCP_REJECT_INTERNAL_ERROR (BT_MODULE_AVRCP | 0x33) |
The remote device rejected the command due to an internal error.
#define BT_STATUS_AVRCP_REJECT_INVALID_COMMAND (BT_MODULE_AVRCP | 0x30) |
The remote device rejected an unknown command.
#define BT_STATUS_AVRCP_REJECT_INVALID_PARAMETER (BT_MODULE_AVRCP | 0x31) |
The remote device rejected the command as the given parameters are invalid.
#define BT_STATUS_AVRCP_REJECT_PARAMTER_NOT_FOUND (BT_MODULE_AVRCP | 0x32) |
The remote device rejected the command as the specified parameter was not found.
#define BT_STATUS_AVRCP_REJECTED (BT_MODULE_AVRCP | 0x29) |
The command is rejected by a remote device.
#define BT_STATUS_AVRCP_SDP_QUERY_FAILED (BT_MODULE_AVRCP | 0x05) |
The SDP query has failed.
typedef uint8_t bt_avrcp_event_t |
The event type of register notification.
typedef uint32_t bt_avrcp_media_attribute_t |
The type of media attributes IDs.
typedef uint8_t bt_avrcp_media_play_status_event_t |
The event type of register notification.
typedef uint16_t bt_avrcp_metadata_packet_type_t |
The packet type to indicate the packet fragmentation state.
typedef uint8_t bt_avrcp_operation_id_t |
The operation ID type.
typedef uint8_t bt_avrcp_operation_state_t |
The key state type of the operation.
typedef uint8_t bt_avrcp_pdu_id_t |
The type of the PDU ID.
typedef uint8_t bt_avrcp_status_t |
The event type of register notification.