MT2523 API Reference  LinkIt SDK v4
Define

Overview

Macros

#define BT_AVRCP_CONNECT_CNF   (BT_MODULE_AVRCP | 0x0000)
 The event report to 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 event indicates the notification 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 after calling bt_avrcp_request_continuing_response() has 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_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_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 a 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_VOLUME_CHANGED   0x0D
 The absolute volume has changed. More...
 
#define BT_AVRCP_PDU_ID_LIST_APP_SETTING_ATTRIBUTES   0X11
 The PDU ID of the VENDOR DEPENDENT command. 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_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...
 

Typedefs

typedef uint8_t bt_avrcp_operation_id_t
 The operation ID type. More...
 
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 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_pdu_id_t
 The type of the PDU ID. More...
 

Macro Definition Documentation

#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)

The event report to 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_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_EVENT_BATT_STATUS_CHANGED   0x06

The battery status has changed.

#define BT_AVRCP_EVENT_NOTIFICATION_IND   (BT_MODULE_AVRCP | 0x0008)

The event notification indication event indicates the notification 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 a 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_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_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_PDU_ID_ABORT_CONTINUING_RSP   0X41
#define BT_AVRCP_PDU_ID_GET_APP_SETTING_VALUE   0X13
#define BT_AVRCP_PDU_ID_GET_ELEMENT_ATTRIBUTES   0x20
#define BT_AVRCP_PDU_ID_LIST_APP_SETTING_ATTRIBUTES   0X11

The PDU ID of the VENDOR DEPENDENT command.

The PDU ID for bt_avrcp_list_app_setting_attributes().

#define BT_AVRCP_PDU_ID_REGISTER_NOTIFICATION   0X31
#define BT_AVRCP_PDU_ID_REQUEST_CONTINUING_RSP   0X40
#define BT_AVRCP_PDU_ID_SET_ABSOLUTE_VOLUME   0x50
#define BT_AVRCP_PDU_ID_SET_APP_SETTING_VALUE   0X14
#define BT_AVRCP_REQUEST_CONTINUING_CNF   (BT_MODULE_AVRCP | 0x0009)

The request continuing confirmation event is only triggered after calling bt_avrcp_request_continuing_response() has failed.

The structure for this event is defined as bt_avrcp_metadata_error_response_t.

#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_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_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 Documentation

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.

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.