Audio/Video Remote Control (AVRC)

group wicedbt_avrc

This section describes the API’s to use Audio/Video Remote Control Profile commands which use underlying AVCT protocol.

This section describes the API’s to use Audio/Video Remote Control Profile.

The AVRC profile defines the procedures required to control audio/video functions of Bluetooth devices.

AVRC result codes.

AVRC_SUCCESS

Function successful.

AVRC_NO_RESOURCES

Not enough resources.

AVRC_BAD_HANDLE

Bad handle.

AVRC_PID_IN_USE

PID already in use.

AVRC_NOT_OPEN

Connection not open.

AVRC_MSG_TOO_BIG

the message length exceed the MTU of the browsing channel

AVRC_FAIL

generic failure

AVRC_BAD_PARAM

bad parameter

AVRC_BUSY

busy with another operation

AVRC Control Role

AVRC_CT_TARGET

AVRC target.

AVRC_CT_CONTROL

AVRC controller.

AVRC_CT_PASSIVE

AVRC role determined by peer device.

AVRC Connection Role

AVRC_CONN_INITIATOR

AVRC initiator.

AVRC_CONN_ACCEPTOR

AVRC acceptor.

AVRC CTRL events

AVRC_OPEN_IND_EVT

AVRC_OPEN_IND_EVT event is sent when the connection is successfully opened.

This eventis sent in response to an wiced_bt_avrc_open().

AVRC_CLOSE_IND_EVT

AVRC_CLOSE_IND_EVT event is sent when a connection is closed.

This event can result from a call to wiced_bt_avrc_close() or when the peer closes the connection. It is also sent when a connection attempted through wiced_bt_avrc_open() fails.

AVRC_CONG_IND_EVT

AVRC_CONG_IND_EVT event indicates that AVCTP is congested and cannot send any more messages.

AVRC_UNCONG_IND_EVT

AVRC_UNCONG_IND_EVT event indicates that AVCTP is uncongested and ready to send messages.

AVRC_BROWSE_OPEN_IND_EVT

AVRC_BROWSE_OPEN_IND_EVT event is sent when the browse channel is successfully opened.

This eventis sent in response to an wiced_bt_avrc_open() or wiced_bt_avrc_open_browse() .

AVRC_BROWSE_CLOSE_IND_EVT

AVRC_BROWSE_CLOSE_IND_EVT event is sent when a browse channel is closed.

This event can result from a call to wiced_bt_avrc_close(), wiced_bt_avrc_close_browse() or when the peer closes the connection. It is also sent when a connection attempted through wiced_bt_avrc_openBrowse() fails.

AVRC_BROWSE_CONG_IND_EVT

AVRC_BROWSE_CONG_IND_EVT event indicates that AVCTP browse channel is congested and cannot send any more messages.

AVRC_BROWSE_UNCONG_IND_EVT

AVRC_BROWSE_UNCONG_IND_EVT event indicates that AVCTP browse channel is uncongested and ready to send messages.

AVRC_CMD_TIMEOUT_EVT

AVRC_CMD_TIMEOUT_EVT event indicates timeout waiting for AVRC command response from the peer.

AVRC profile version

AVRC_REV_1_0

AVRC profile version 1.0.

AVRC_REV_1_3

AVRC profile version 1.3.

AVRC_REV_1_4

AVRC profile version 1.4.

AVRC_REV_1_5

AVRC profile version 1.5.

AVRC_REV_1_6

AVRC profile version 1.6.

AVRC message types

AVRC_CMD_CTRL

Instruct a target to perform an operation.

AVRC_CMD_STATUS

Check a device�s current status.

AVRC_CMD_SPEC_INQ

Check whether a target supports a particular control command; all operands are included.

AVRC_CMD_NOTIF

Used for receiving notification of a change in a device�s state.

AVRC_CMD_GEN_INQ

Check whether a target supports a particular control command; operands are not included.

AVRC_RSP_NOT_IMPL

response type codes

The target does not implement the command specified by the opcode and operand, or doesn�t implement the specified subunit

AVRC_RSP_ACCEPT

The target executed or is executing the command.

AVRC_RSP_REJ

The target implements the command specified by the opcode but cannot respond because the current state of the target doesn�t allow it.

AVRC_RSP_IN_TRANS

The target implements the status command but it is in a state of transition; the status command may be retried at a future time.

AVRC_RSP_IMPL_STBL

For specific inquiry or general inquiy commands, the target implements the command; for status commands, the target returns stable and includes the status results.

AVRC_RSP_CHANGED

The response frame contains a notification that the target device�s state has changed.

AVRC_RSP_INTERIM

For control commands, the target has accepted the request but cannot return information within 100 milliseconds; for notify commands, the target accepted the command, and will notify the controller of a change of target state at a future time.

AVRC subunit types

AVRC_SUB_MONITOR

Monitor.

AVRC_SUB_AUDIO

Audio.

AVRC_SUB_PRINTER

Printer.

AVRC_SUB_DISC

Disc.

AVRC_SUB_TAPE

Tape recorder/player.

AVRC_SUB_TUNER

Tuner.

AVRC_SUB_CA

CA.

AVRC_SUB_CAMERA

Camera.

AVRC_SUB_PANEL

Panel.

AVRC_SUB_BB

Bulletin Board.

AVRC_SUB_CAM_STOR

Camera Storage.

AVRC_SUB_VENDOR

Vendor unique.

AVRC_SUB_EXT

Subunit type extended to next byte.

AVRC_SUB_UNIT

Unit.

AVRC message opcodes (defined by 1394ta).

AVRC_OP_UNIT_INFO

Report unit information.

AVRC_OP_SUB_INFO

Report subunit information.

AVRC_OP_VENDOR

Vendor-dependent commands.

AVRC_OP_PASS_THRU

panel subunit opcode

AVRC_OP_BROWSE

opcodes 80-9F and E0-FF are not used by 1394ta.Sneak one for the browsing channel

Browsing

AVRC_OP_INVALID

Invalid.

Company IDs

AVRC_CO_BLUETOOTH_SIG

Bluetooth SIG.

AVRC_CO_WIDCOMM

Widcomm Inc.

AVRC_CO_BROADCOM

Cypress Semiconductor.

AVRC_CO_METADATA

AVRC metadata messages.

Operation ID list for Passthrough commands

AVRC_ID_SELECT

select

AVRC_ID_UP

up

AVRC_ID_DOWN

down

AVRC_ID_LEFT

left

AVRC_ID_RIGHT

right

AVRC_ID_RIGHT_UP

right-up

AVRC_ID_RIGHT_DOWN

right-down

AVRC_ID_LEFT_UP

left-up

AVRC_ID_LEFT_DOWN

left-down

AVRC_ID_ROOT_MENU

root menu

AVRC_ID_SETUP_MENU

setup menu

AVRC_ID_CONT_MENU

contents menu

AVRC_ID_FAV_MENU

favorite menu

AVRC_ID_EXIT

exit

AVRC_ID_0

0

AVRC_ID_1

1

AVRC_ID_2

2

AVRC_ID_3

3

AVRC_ID_4

4

AVRC_ID_5

5

AVRC_ID_6

6

AVRC_ID_7

7

AVRC_ID_8

8

AVRC_ID_9

9

AVRC_ID_DOT

dot

AVRC_ID_ENTER

enter

AVRC_ID_CLEAR

clear

AVRC_ID_CHAN_UP

channel up

AVRC_ID_CHAN_DOWN

channel down

AVRC_ID_PREV_CHAN

previous channel

AVRC_ID_SOUND_SEL

sound select

AVRC_ID_INPUT_SEL

input select

AVRC_ID_DISP_INFO

display information

AVRC_ID_HELP

help

AVRC_ID_PAGE_UP

page up

AVRC_ID_PAGE_DOWN

page down

AVRC_ID_POWER

power

AVRC_ID_VOL_UP

volume up

AVRC_ID_VOL_DOWN

volume down

AVRC_ID_MUTE

mute

AVRC_ID_PLAY

play

AVRC_ID_STOP

stop

AVRC_ID_PAUSE

pause

AVRC_ID_RECORD

record

AVRC_ID_REWIND

rewind

AVRC_ID_FAST_FOR

fast forward

AVRC_ID_EJECT

eject

AVRC_ID_FORWARD

forward

AVRC_ID_BACKWARD

backward

AVRC_ID_ANGLE

angle

AVRC_ID_SUBPICT

subpicture

AVRC_ID_F1

F1.

AVRC_ID_F2

F2.

AVRC_ID_F3

F3.

AVRC_ID_F4

F4.

AVRC_ID_F5

F5.

AVRC_ID_VENDOR

vendor unique

AVRC_KEYPRESSED_RELEASE

Keypressed_release.

Define the Metadata Packet types

AVRC_PKT_SINGLE

AVRCP packet type single.

AVRC_PKT_START

AVRCP packet type start.

AVRC_PKT_CONTINUE

AVRCP packet type continue.

AVRC_PKT_END

AVRCP packet type end.

AVRC_PKT_TYPE_MASK

AVRCP packet type mask.

Define the various AVRCP commands carried in the vendor dependant data

Define the PDUs carried in the vendor dependant data

AVRC_PDU_GET_CAPABILITIES

AVRCP pdu id for Get Capabilities.

AVRC_PDU_LIST_PLAYER_APP_ATTR

AVRCP pdu id for list player app attributes.

AVRC_PDU_LIST_PLAYER_APP_VALUES

AVRCP pdu id for list player app values.

AVRC_PDU_GET_CUR_PLAYER_APP_VALUE

AVRCP pdu id for get current player app value.

AVRC_PDU_SET_PLAYER_APP_VALUE

AVRCP pdu id for set player app value.

AVRC_PDU_GET_PLAYER_APP_ATTR_TEXT

AVRCP pdu id for get player app attribute text.

AVRC_PDU_GET_PLAYER_APP_VALUE_TEXT

AVRCP pdu id for get player app value text.

AVRC_PDU_INFORM_DISPLAY_CHARSET

AVRCP pdu id for inform display character set.

AVRC_PDU_INFORM_BATTERY_STAT_OF_CT

AVRCP pdu id for inform battery status of CT.

AVRC_PDU_GET_ELEMENT_ATTR

AVRCP pdu id for get element attributes.

AVRC_PDU_GET_PLAY_STATUS

AVRCP pdu id for get play status.

AVRC_PDU_REGISTER_NOTIFICATION

AVRCP pdu id for register notification.

AVRC_PDU_REQUEST_CONTINUATION_RSP

AVRCP pdu id for request continuation response.

AVRC_PDU_ABORT_CONTINUATION_RSP

AVRCP pdu id for abort continuation response.

AVRC_PDU_SET_ABSOLUTE_VOLUME

added in 1.4

AVRCP pdu id for set absolute volume

AVRC_PDU_SET_ADDRESSED_PLAYER

AVRCP pdu id for set addressed player.

AVRC_PDU_SET_BROWSED_PLAYER

AVRCP pdu id for set browsed player.

AVRC_PDU_GET_FOLDER_ITEMS

AVRCP pdu id for get folder items.

AVRC_PDU_CHANGE_PATH

AVRCP pdu id for change path.

AVRC_PDU_GET_ITEM_ATTRIBUTES

AVRCP pdu id for get item attributes.

AVRC_PDU_PLAY_ITEM

AVRCP pdu id for play item.

AVRC_PDU_GET_TOTAL_NUM_OF_ITEMS

AVRCP pdu id for get total number of items.

AVRCP pdu id for search.

AVRC_PDU_ADD_TO_NOW_PLAYING

AVRCP pdu id for add to now playing.

AVRC_PDU_GENERAL_REJECT

AVRCP pdu id for general reject.

AVRC_PDU_NEXT_GROUP

Define the vendor unique id carried in the pass through data.

AVRCP pdu id for next group

AVRC_PDU_PREV_GROUP

AVRCP pdu id for previous group.

AVRC status codes.

typedef uint8_t wiced_bt_avrc_sts_t

AVRC sts.

AVRC_STS_BAD_CMD

Invalid command, sent if TG received a PDU that it did not understand.

AVRC_STS_BAD_PARAM

Invalid parameter, sent if the TG received a PDU with a parameter ID that it did not understand.

Sent if there is only one parameter ID in the PDU.

AVRC_STS_NOT_FOUND

Specified parameter not found., sent if the parameter ID is understood, but content is wrong or corrupted.

AVRC_STS_INTERNAL_ERR

Internal Error, sent if there are error conditions not covered by a more specific error code.

AVRC_STS_NO_ERROR

Operation completed without error.

This is the status that should be returned if the operation was successful.

AVRC_STS_UID_CHANGED

UID Changed - The UIDs on the device have changed.

AVRC_STS_BAD_DIR

Invalid Direction - The Direction parameter is invalid - Change Path.

AVRC_STS_NOT_DIR

Not a Directory - The UID provided does not refer to a folder item Change Path.

AVRC_STS_NOT_EXIST

Does Not Exist - The UID provided does not refer to any item Change Path, PlayItem, AddToNowPlaying, GetItemAttributes.

AVRC_STS_BAD_SCOPE

Invalid Scope - The scope parameter is invalid GetFolderItems, PlayItem, AddToNowPlayer, GetItemAttributes,.

AVRC_STS_BAD_RANGE

Range Out of Bounds - The start of range provided is not valid GetFolderItems.

AVRC_STS_UID_IS_DIR

UID is a Directory - The UID provided refers to a directory, which cannot be handled by this media player PlayItem, AddToNowPlaying.

AVRC_STS_IN_USE

Media in Use - The media is not able to be used for this operation at this time PlayItem, AddToNowPlaying.

AVRC_STS_NOW_LIST_FULL

Now Playing List Full - No more items can be added to the Now Playing List AddToNowPlaying.

AVRC_STS_SEARCH_NOT_SUP

Search Not Supported - The Browsed Media Player does not support search Search.

AVRC_STS_SEARCH_BUSY

Search in Progress - A search operation is already in progress Search.

AVRC_STS_BAD_PLAYER_ID

Invalid Player Id - The specified Player Id does not refer to a valid player SetAddressedPlayer, SetBrowsedPlayer.

AVRC_STS_PLAYER_N_BR

Player Not Browsable - The Player Id supplied refers to a Media Player which does not support browsing.

SetBrowsedPlayer

AVRC_STS_PLAYER_N_ADDR

Player Not Addressed.

The Player Id supplied refers to a player which is not currently addressed, and the command is not able to be performed if the player is not set as addressed. Search, SetBrowsedPlayer

AVRC_STS_BAD_SEARCH_RES

No valid Search Results - The Search result list does not contain valid entries, e.g.

after being invalidated due to change of browsed player GetFolderItems

AVRC_STS_NO_AVAL_PLAYER

No available players ALL.

AVRC_STS_ADDR_PLAYER_CHG

Addressed Player Changed - Register Notification.

AVRC_STS_NO_RESOURCES

No respouces available.

AVRC capability ids.

Define the Capability IDs

AVRC_CAP_COMPANY_ID

Capability id for company.

AVRC_CAP_EVENTS_SUPPORTED

Capability id for events supported.

AVRC_COMPANY_ID_LEN

company id len

AVRC_CAPABILITY_OFFSET

capability offset

AVRC player settings ids

AVRC_PLAYER_SETTING_EQUALIZER

id for equalizer

AVRC_PLAYER_SETTING_REPEAT

id for repeat

AVRC_PLAYER_SETTING_SHUFFLE

id for shuffle

AVRC_PLAYER_SETTING_SCAN

id for scan

AVRC_PLAYER_SETTING_LOW_MENU_EXT

id for low menu exit

AVRC_PLAYER_SETTING_HIGH_MENU_EXT

id for high menu exit

possible values of the Player Application Settings

AVRC_PLAYER_VAL_OFF

value for off

AVRC_PLAYER_VAL_ON

value for on

AVRC_PLAYER_VAL_SINGLE_REPEAT

value for single repeat

AVRC_PLAYER_VAL_ALL_REPEAT

value for all repeat

AVRC_PLAYER_VAL_GROUP_REPEAT

value for group repeat

AVRC_PLAYER_VAL_ALL_SHUFFLE

value for all shuffle

AVRC_PLAYER_VAL_GROUP_SHUFFLE

value for group shuffle

AVRC_PLAYER_VAL_ALL_SCAN

value for all scan

AVRC_PLAYER_VAL_GROUP_SCAN

value for group scan

possible values of the Battery Status PDU

typedef uint8_t wiced_bt_avrc_battery_status_t

AVRC battery.

AVRC_BATTERY_STATUS_NORMAL

battery status normal

AVRC_BATTERY_STATUS_NORMAL

battery status normal

AVRC_BATTERY_STATUS_WARNING

battery status warning

AVRC_BATTERY_STATUS_WARNING

battery status warning

AVRC_BATTERY_STATUS_CRITICAL

battery status critical

AVRC_BATTERY_STATUS_CRITICAL

battery status critical

AVRC_BATTERY_STATUS_EXTERNAL

battery status external

AVRC_BATTERY_STATUS_EXTERNAL

battery status external

AVRC_BATTERY_STATUS_FULL_CHARGE

battery status full charge

AVRC_BATTERY_STATUS_FULL_CHARGE

battery status full charge

media attribute ids

AVRC_MEDIA_ATTR_ID_TITLE

Attribute id for title.

AVRC_MEDIA_ATTR_ID_ARTIST

Attribute id for artist.

AVRC_MEDIA_ATTR_ID_ALBUM

Attribute id for album.

AVRC_MEDIA_ATTR_ID_TRACK_NUM

Attribute id for track number.

AVRC_MEDIA_ATTR_ID_NUM_TRACKS

Attribute id for number of tracks.

AVRC_MEDIA_ATTR_ID_GENRE

Attribute id for genre.

AVRC_MEDIA_ATTR_ID_PLAYING_TIME

Attribute id for playing time.

AVRC_MAX_NUM_MEDIA_ATTR_ID

Number of media attribute ids.

AVRC_MAX_MEDIA_ATTR_LEN

Maximum length of the stored media attribute fields.

Play state values

typedef uint8_t wiced_bt_avrc_playstate_t

AVRC playstate.

AVRC_PLAYSTATE_RESP_MSG_SIZE

play state response msg size

AVRC_PLAYSTATE_STOPPED

Stopped.

AVRC_PLAYSTATE_PLAYING

Playing.

AVRC_PLAYSTATE_PAUSED

Paused.

AVRC_PLAYSTATE_FWD_SEEK

Fwd Seek.

AVRC_PLAYSTATE_REV_SEEK

Rev Seek.

AVRC_PLAYSTATE_ERROR

Error.

Events that can be registered for notifications

AVRC_EVT_PLAY_STATUS_CHANGE

play status changed event

AVRC_EVT_TRACK_CHANGE

track changed event

AVRC_EVT_TRACK_REACHED_END

track reached end event

AVRC_EVT_TRACK_REACHED_START

track reach start event

AVRC_EVT_PLAY_POS_CHANGED

playback position changed event

AVRC_EVT_BATTERY_STATUS_CHANGE

battery status changed event

AVRC_EVT_SYSTEM_STATUS_CHANGE

system status changed event

AVRC_EVT_APP_SETTING_CHANGE

app settings change event

AVRC_EVT_NOW_PLAYING_CHANGE

now playing changed event

AVRC_EVT_AVAL_PLAYERS_CHANGE

available players changed event

AVRC_EVT_ADDR_PLAYER_CHANGE

addressed player changed event

AVRC_EVT_UIDS_CHANGE

UIDs changed events.

AVRC_EVT_VOLUME_CHANGE

volume changed event

Defines

AVRC_SUPF_CT_CAT1

Supported categories.

Category 1

AVRC_SUPF_CT_CAT2

Category 2.

AVRC_SUPF_CT_CAT3

Category 3.

AVRC_SUPF_CT_CAT4

Category 4.

AVRC_SUPF_CT_BROWSE

Browsing.

AVRC_SUPF_TG_CAT1

Category 1.

AVRC_SUPF_TG_CAT2

Category 2.

AVRC_SUPF_TG_CAT3

Category 3.

AVRC_SUPF_TG_CAT4

Category 4.

AVRC_SUPF_TG_APP_SETTINGS

Player Application Settings.

AVRC_SUPF_TG_GROUP_NAVI

Group Navigation.

AVRC_SUPF_TG_BROWSE

Browsing.

AVRC_SUPF_TG_MULTI_PLAYER

Muliple Media Player.

AVRC_META_SUCCESS

AVRC success.

AVRC_META_FAIL

AVRC fail.

AVRC_METADATA_CMD

AVRC metadata command.

AVRC_METADATA_RESP

AVRC metadata response.

AVRC_PACKET_LEN

AVRC packet length, you must support 512 byte RC packets.

AVRC_MIN_CONTROL_MTU

Per the spec, minimum MTU for the control channel.

AVRC_MIN_BROWSE_MTU

Per the spec, minimum MTU for the browsing channel.

AVRC_META_PDU_OFFSET

AVRC Metadata packet PDU offset.

AVRC_SUB_TYPE_LEN

AVRC subunit type length.

AVRC_UID_SIZE

AVRC UID size.

Avrc uid size.

AVRC_UID_SIZE

AVRC UID size.

Avrc uid size.

AVRC_FEATURE_MASK_SIZE

AVRC feature mask size.

AVRC_STATE_PRESS

State flag for Passthrough commands.

AVRC button state press

AVRC_STATE_RELEASE

AVRC button state release.

AVRC_PASS_THRU_GROUP_LEN

the only pass through vendor unique commands defined by AVRC is the group navigation commands The len for vendor unique data is 5

AVRC group navigation command len

AVRC_CHAR_SET_SIZE

Define character set.

AVRC_NUM_NOTIF_EVENTS

the number of events that can be registered for notifications

AVRC_EVT_MSG_LEN_1

Msg len 1.

AVRC_EVT_MSG_LEN_2

Msg len 2.

AVRC_EVT_MSG_LEN_5

Msg len 5.

AVRC_EVT_MSG_LEN_9

Msg len 9.

AVRC_MAX_VOLUME

AVRC max volume.

AVRC_SYSTEMSTATE_PWR_ON

Define the possible values of system status.

AVRC system power on state

AVRC_SYSTEMSTATE_PWR_ON

Define the possible values of system status.

AVRC system power on state

AVRC_SYSTEMSTATE_PWR_OFF

AVRC system power off state.

AVRC_SYSTEMSTATE_PWR_OFF

AVRC system power off state.

AVRC_SYSTEMSTATE_PWR_UNPLUGGED

AVRC system power unplugged state.

AVRC_SYSTEMSTATE_PWR_UNPLUGGED

AVRC system power unplugged state.

AVRC_CHARSET_ID_ASCII

the frequently used character set ids

ASCII

AVRC_CHARSET_ID_UTF8

UTF-8.

AVRC_CHARSET_ID_UTF16

1015

AVRC_CHARSET_ID_UTF32

1017

AVRC_NUM_PLAYER_SUPPORTED
AVRC_MAX_FOLDER_DEPTH
AVRC_ITEM_PLAYER

AVRC player item.

AVRC_ITEM_FOLDER

AVRC folder item.

AVRC_ITEM_MEDIA

AVRC media item.

AVRC_SCOPE_PLAYER_LIST

Media Player Item - Contains all available media players.

AVRC_SCOPE_FILE_SYSTEM

Folder Item, Media Element Item- The virtual filesystem containing the media content of the browsed player.

Media Element Item The results of a search operation on the browsed player.

AVRC_SCOPE_NOW_PLAYING

Media Element Item The Now Playing list (or queue) of the addressed player.

AVRC_FOLDER_ITEM_COUNT_NONE

foler item count none

AVRC_FOLDER_TYPE_MIXED

folder types

mixed

AVRC_FOLDER_TYPE_TITLES

titles

AVRC_FOLDER_TYPE_ALNUMS

albums

AVRC_FOLDER_TYPE_ARTISTS

artists

AVRC_FOLDER_TYPE_GENRES

genres

AVRC_FOLDER_TYPE_PLAYLISTS

playlists

AVRC_FOLDER_TYPE_YEARS

years

AVRC_PLAYER_MAJOR_TYPE_AUDIO

major player type

Audio

AVRC_PLAYER_MAJOR_TYPE_VIDEO

Video.

AVRC_PLAYER_MAJOR_TYPE_BC_AUDIO

Broadcasting Audio.

AVRC_PLAYER_MAJOR_TYPE_BC_VIDEO

Broadcasting Video.

AVRC_PLAYER_MAJOR_TYPE_INVALID

Invalid.

AVRC_PLAYER_SUB_TYPE_NONE

player sub type

None

AVRC_PLAYER_SUB_TYPE_AUDIO_BOOK

Audio Book.

AVRC_PLAYER_SUB_TYPE_PODCAST

Podcast.

AVRC_PLAYER_SUB_TYPE_INVALID

invalid

AVRC_MEDIA_TYPE_AUDIO

media item - media type

Audio

AVRC_MEDIA_TYPE_VIDEO

video

AVRC_DIR_UP

Folder Up.

AVRC_DIR_DOWN

Folder Down.

AVRC_PF_SELECT_BIT_NO

player attribute - supported features

Bit for select

AVRC_PF_SELECT_MASK

mask for select

AVRC_PF_SELECT_OFF

Value when select is off.

AVRC_PF_SELECT_SUPPORTED(x)

check for select feature enabled/disabled

AVRC_PF_UP_BIT_NO

bit for UP

AVRC_PF_UP_MASK

mask for UP

AVRC_PF_UP_OFF

value when UP is off

AVRC_PF_UP_SUPPORTED(x)

check for UP feature enabled/disabled

AVRC_PF_DOWN_BIT_NO

Bit for DOWN.

AVRC_PF_DOWN_MASK

Mask for DOWN.

AVRC_PF_DOWN_OFF

value when DOWN is off

AVRC_PF_DOWN_SUPPORTED(x)

check for DOWN feature enabled/disabled

AVRC_PF_LEFT_BIT_NO

Bit for LEFT.

AVRC_PF_LEFT_MASK

Mask for LEFT.

AVRC_PF_LEFT_OFF

Value when LEFT is OFF.

AVRC_PF_LEFT_SUPPORTED(x)

check for LEFT feature enabled/disabled

AVRC_PF_RIGHT_BIT_NO

Bit for RIGHT.

AVRC_PF_RIGHT_MASK

Mask for RIGHT.

AVRC_PF_RIGHT_OFF

Value when RIGHT is OFF.

AVRC_PF_RIGHT_SUPPORTED(x)

check for RIGHT feature enabled/disabled

AVRC_PF_RIGHTUP_BIT_NO

Bit for RIGHTUP.

AVRC_PF_RIGHTUP_MASK

Mask for RIGHTUP.

AVRC_PF_RIGHTUP_OFF

Value when RIGHTUP is off.

AVRC_PF_RIGHTUP_SUPPORTED(x)

check for RIGHTUP feature enabled/disabled

AVRC_PF_RIGHTDOWN_BIT_NO

Bit for RIGHTDOWN.

AVRC_PF_RIGHTDOWN_MASK

Mask for RIGHTDOWN.

AVRC_PF_RIGHTDOWN_OFF

value when RIGHTDOWN is off

AVRC_PF_RIGHTDOWN_SUPPORTED(x)

check for RIGHTDOWN feature enabled/disabled

AVRC_PF_LEFTUP_BIT_NO

bit for LEFTUP

AVRC_PF_LEFTUP_MASK

mask for LEFTUP

AVRC_PF_LEFTUP_OFF

value when LEFTUP is OFF

AVRC_PF_LEFTUP_SUPPORTED(x)

check for LEFTUP feature enabled/disabled

AVRC_PF_LEFTDOWN_BIT_NO

Bit for LEFTDOWN.

AVRC_PF_LEFTDOWN_MASK

Mask for LEFTDOWN.

AVRC_PF_LEFTDOWN_OFF

value when LEFTDOWN is off

AVRC_PF_LEFTDOWN_SUPPORTED(x)

check for LEFTDOWN feature enabled/disabled

AVRC_PF_ROOT_MENU_BIT_NO

Bit for Root menu.

AVRC_PF_ROOT_MENU_MASK

Mask for Root menu.

AVRC_PF_ROOT_MENU_OFF

Value when Root menu is off.

AVRC_PF_ROOT_MENU_SUPPORTED(x)

check for ROOT menu feature enabled/disabled

AVRC_PF_SETUP_MENU_BIT_NO

Bit for setup.

AVRC_PF_SETUP_MENU_MASK

mask for setup

AVRC_PF_SETUP_MENU_OFF

value when setup is off

AVRC_PF_SETUP_MENU_SUPPORTED(x)

check for SETUP feature enabled/disabled

AVRC_PF_CONTENTS_MENU_BIT_NO

bit for contents menu

AVRC_PF_CONTENTS_MENU_MASK

mask for contents menu

AVRC_PF_CONTENTS_MENU_OFF

value when contents menu is off

AVRC_PF_CONTENTS_MENU_SUPPORTED(x)

check for Contents menu feature enabled/disabled

AVRC_PF_FAVORITE_MENU_BIT_NO

bit for Favorite menu

AVRC_PF_FAVORITE_MENU_MASK

Mask for favorite menu.

AVRC_PF_FAVORITE_MENU_OFF

value when favorite menu is off

AVRC_PF_FAVORITE_MENU_SUPPORTED(x)

check for Favorite feature enabled/disabled

AVRC_PF_EXIT_BIT_NO

bit for exit

AVRC_PF_EXIT_MASK

mask for exit

AVRC_PF_EXIT_OFF

value when exit is off

AVRC_PF_EXIT_SUPPORTED(x)

check for exit feature enabled/disabled

AVRC_PF_0_BIT_NO

bit for 0

AVRC_PF_0_MASK

mask for 0

AVRC_PF_0_OFF

value when 0th feature is off

AVRC_PF_0_SUPPORTED(x)

check for 0th feature enabled/disabled

AVRC_PF_1_BIT_NO

bit for 1

AVRC_PF_1_MASK

mask for 1

AVRC_PF_1_OFF

value when 1st feature is off

AVRC_PF_1_SUPPORTED(x)

check for 1st feature enabled/disabled

AVRC_PF_2_BIT_NO

bit for 2

AVRC_PF_2_MASK

mask for 2

AVRC_PF_2_OFF

value when 2nd feature is off

AVRC_PF_2_SUPPORTED(x)

check for 2nd feature enabled/disabled

AVRC_PF_3_BIT_NO

bit for 3

AVRC_PF_3_MASK

mask for 3

AVRC_PF_3_OFF

value when 3rd feature is off

AVRC_PF_3_SUPPORTED(x)

check for 3rd feature enabled/disabled

AVRC_PF_4_BIT_NO

bit for 4

AVRC_PF_4_MASK

mask for 4

AVRC_PF_4_OFF

value when 4th feature is OFF

AVRC_PF_4_SUPPORTED(x)

check for 4th feature enabled/disabled

AVRC_PF_5_BIT_NO

bit for 5

AVRC_PF_5_MASK

mask for 5

AVRC_PF_5_OFF

value when 5th feature is off

AVRC_PF_5_SUPPORTED(x)

check for 5th feature enabled/disabled

AVRC_PF_6_BIT_NO

bit for 6

AVRC_PF_6_MASK

mask for 6

AVRC_PF_6_OFF

value when 6th feature is off

AVRC_PF_6_SUPPORTED(x)

check for 6th feature enabled/disabled

AVRC_PF_7_BIT_NO

bit for 7

AVRC_PF_7_MASK

mask for 7

AVRC_PF_7_OFF

7th feature off value

AVRC_PF_7_SUPPORTED(x)

check for 7th feature enabled/disabled

AVRC_PF_8_BIT_NO

bit for 8

AVRC_PF_8_MASK

mask for 8

AVRC_PF_8_OFF

8th feature off value

AVRC_PF_8_SUPPORTED(x)

check for 8th feature enabled/disabled

AVRC_PF_9_BIT_NO

bit for 9

AVRC_PF_9_MASK

mask for 9

AVRC_PF_9_OFF

9th feature off value

AVRC_PF_9_SUPPORTED(x)

check for 9th feature enabled/disabled

AVRC_PF_DOT_BIT_NO

bit for DOT

AVRC_PF_DOT_MASK

mask for DOT

AVRC_PF_DOT_OFF

DOT feature off value.

AVRC_PF_DOT_SUPPORTED(x)

check for DOT feature enabled/disabled

AVRC_PF_ENTER_BIT_NO

bit for enter

AVRC_PF_ENTER_MASK

mask for enter

AVRC_PF_ENTER_OFF

enter feature off value

AVRC_PF_ENTER_SUPPORTED(x)

check for enter feature enabled/disabled

AVRC_PF_CLEAR_BIT_NO

bit for clear

AVRC_PF_CLEAR_MASK

mask for clear

AVRC_PF_CLEAR_OFF

clear feature off value

AVRC_PF_CLEAR_SUPPORTED(x)

check for clear feature enabled/disabled

AVRC_PF_CHNL_UP_BIT_NO

bit for channel up

AVRC_PF_CHNL_UP_MASK

mask for channel up

AVRC_PF_CHNL_UP_OFF

channel up feature off value

AVRC_PF_CHNL_UP_SUPPORTED(x)

check for channel up feature enabled/disabled

AVRC_PF_CHNL_DOWN_BIT_NO

bit for channel down

AVRC_PF_CHNL_DOWN_MASK

mask for channel down

AVRC_PF_CHNL_DOWN_OFF

channel down feature off value

AVRC_PF_CHNL_DOWN_SUPPORTED(x)

check for channel down feature enabled/disabled

AVRC_PF_PREV_CHNL_BIT_NO

bit for previous channel

AVRC_PF_PREV_CHNL_MASK

mask for previous channel

AVRC_PF_PREV_CHNL_OFF

previous channel feature off value

AVRC_PF_PREV_CHNL_SUPPORTED(x)

check for previous channel feature enabled/disabled

AVRC_PF_SOUND_SEL_BIT_NO

bit for sound selection

AVRC_PF_SOUND_SEL_MASK

mask for sound selection

AVRC_PF_SOUND_SEL_OFF

sound selection feature off value

AVRC_PF_SOUND_SEL_SUPPORTED(x)

check for sound selection feature enabled/disabled

AVRC_PF_INPUT_SEL_BIT_NO

bit for input selection

AVRC_PF_INPUT_SEL_MASK

mask for input selection

AVRC_PF_INPUT_SEL_OFF

input selection feature off value

AVRC_PF_INPUT_SEL_SUPPORTED(x)

check for input selection feature enabled/disabled

AVRC_PF_DISP_INFO_BIT_NO

bit for display info

AVRC_PF_DISP_INFO_MASK

mask for display info

AVRC_PF_DISP_INFO_OFF

display info feature off value

AVRC_PF_DISP_INFO_SUPPORTED(x)

check for display info feature enabled/disabled

AVRC_PF_HELP_BIT_NO

bit for help

AVRC_PF_HELP_MASK

mask for help

AVRC_PF_HELP_OFF

help feature off value

AVRC_PF_HELP_SUPPORTED(x)

check for help feature enabled/disabled

AVRC_PF_PAGE_UP_BIT_NO

bit for page up

AVRC_PF_PAGE_UP_MASK

mask for page up

AVRC_PF_PAGE_UP_OFF

page up feature off value

AVRC_PF_PAGE_UP_SUPPORTED(x)

check for page up feature enabled/disabled

AVRC_PF_PAGE_DOWN_BIT_NO

bit for page down

AVRC_PF_PAGE_DOWN_MASK

mask for page down

AVRC_PF_PAGE_DOWN_OFF

page down feature off value

AVRC_PF_PAGE_DOWN_SUPPORTED(x)

check for page down feature enabled/disabled

AVRC_PF_POWER_BIT_NO

bit for power

AVRC_PF_POWER_MASK

mask for power

AVRC_PF_POWER_OFF

power feature off value

AVRC_PF_POWER_SUPPORTED(x)

check for power feature enabled/disabled

AVRC_PF_VOL_UP_BIT_NO

bit for volume up

AVRC_PF_VOL_UP_MASK

mask for volume up

AVRC_PF_VOL_UP_OFF

volume up feature off value

AVRC_PF_VOL_UP_SUPPORTED(x)

check for volume up feature enabled/disabled

AVRC_PF_VOL_DOWN_BIT_NO

bit for volume down

AVRC_PF_VOL_DOWN_MASK

mask for volume down

AVRC_PF_VOL_DOWN_OFF

volume down feature off value

AVRC_PF_VOL_DOWN_SUPPORTED(x)

check for volume down feature enabled/disabled

AVRC_PF_MUTE_BIT_NO

bit for mute

AVRC_PF_MUTE_MASK

mask for mute

AVRC_PF_MUTE_OFF

mute feature off value

AVRC_PF_MUTE_SUPPORTED(x)

check for mute feature enabled/disabled

AVRC_PF_PLAY_BIT_NO

bit for play

AVRC_PF_PLAY_MASK

mask for play

AVRC_PF_PLAY_OFF

play feature off value

AVRC_PF_PLAY_SUPPORTED(x)

check for play feature enabled/disabled

AVRC_PF_STOP_BIT_NO

bit for stop

AVRC_PF_STOP_MASK

mask for stop

AVRC_PF_STOP_OFF

stop feature off value

AVRC_PF_STOP_SUPPORTED(x)

check for stop feature enabled/disabled

AVRC_PF_PAUSE_BIT_NO

bit for pause

AVRC_PF_PAUSE_MASK

mask for pause

AVRC_PF_PAUSE_OFF

pause feature off value

AVRC_PF_PAUSE_SUPPORTED(x)

check for pause feature enabled/disabled

AVRC_PF_RECORD_BIT_NO

bit for record

AVRC_PF_RECORD_MASK

mask for record

AVRC_PF_RECORD_OFF

record feature off value

AVRC_PF_RECORD_SUPPORTED(x)

check for record feature enabled/disabled

AVRC_PF_REWIND_BIT_NO

bit for rewind

AVRC_PF_REWIND_MASK

mask for rewind

AVRC_PF_REWIND_OFF

rewind feature off value

AVRC_PF_REWIND_SUPPORTED(x)

check for rewind feature enabled/disabled

AVRC_PF_FAST_FWD_BIT_NO

bit for fast forward

AVRC_PF_FAST_FWD_MASK

mask for fast forward

AVRC_PF_FAST_FWD_OFF

fast forward feature off value

AVRC_PF_FAST_FWD_SUPPORTED(x)

check for fast forward feature enabled/disabled

AVRC_PF_EJECT_BIT_NO

bit for eject

AVRC_PF_EJECT_MASK

mask for eject

AVRC_PF_EJECT_OFF

eject feature off value

AVRC_PF_EJECT_SUPPORTED(x)

check for eject feature enabled/disabled

AVRC_PF_FORWARD_BIT_NO

bit for forward

AVRC_PF_FORWARD_MASK

mask for forward

AVRC_PF_FORWARD_OFF

forward feature off value

AVRC_PF_FORWARD_SUPPORTED(x)

check for forward feature enabled/disabled

AVRC_PF_BACKWARD_BIT_NO

bit for backward

AVRC_PF_BACKWARD_MASK

mask for backward

AVRC_PF_BACKWARD_OFF

backward feature off value

AVRC_PF_BACKWARD_SUPPORTED(x)

check for backward feature enabled/disabled

AVRC_PF_ANGLE_BIT_NO

bit for angle

AVRC_PF_ANGLE_MASK

mask for angle

AVRC_PF_ANGLE_OFF

angle feature off value

AVRC_PF_ANGLE_SUPPORTED(x)

check for angle feature enabled/disabled

AVRC_PF_SUBPICTURE_BIT_NO

bit for subpicture

AVRC_PF_SUBPICTURE_MASK

mask for subpicture

AVRC_PF_SUBPICTURE_OFF

subpicture feature off value

AVRC_PF_SUBPICTURE_SUPPORTED(x)

check for subpicture feature enabled/disabled

AVRC_PF_F1_BIT_NO

bit for F1

AVRC_PF_F1_MASK

mask for F1

AVRC_PF_F1_OFF

F1 off value.

AVRC_PF_F1_SUPPORTED(x)

check for F1 feature enabled/disabled

AVRC_PF_F2_BIT_NO

Bit for F2.

AVRC_PF_F2_MASK

mask for F2

AVRC_PF_F2_OFF

F2 feature off value.

AVRC_PF_F2_SUPPORTED(x)

check for F2 feature enabled/disabled

AVRC_PF_F3_BIT_NO

Bit for F3.

AVRC_PF_F3_MASK

mask for F3

AVRC_PF_F3_OFF

F3 off value.

AVRC_PF_F3_SUPPORTED(x)

check for F3 feature enabled/disabled

AVRC_PF_F4_BIT_NO

bit for F4

AVRC_PF_F4_MASK

mask for F4

AVRC_PF_F4_OFF

F4 off value.

AVRC_PF_F4_SUPPORTED(x)

check for F4 feature enabled/disabled

AVRC_PF_F5_BIT_NO

bit for F5

AVRC_PF_F5_MASK

mask for F5

AVRC_PF_F5_OFF

F5 off value.

AVRC_PF_F5_SUPPORTED(x)

check for F5 feature enabled/disabled

AVRC_PF_VENDOR_BIT_NO

bit for vendor

AVRC_PF_VENDOR_MASK

mask for vendor

AVRC_PF_VENDOR_OFF

vendor feature off value

AVRC_PF_VENDOR_SUPPORTED(x)

check for vendor feature enabled/disabled

AVRC_PF_GROUP_NAVI_BIT_NO

bit for Group navigation

AVRC_PF_GROUP_NAVI_MASK

mask for Group Navigation

AVRC_PF_GROUP_NAVI_OFF

Group Navigation feature off value.

AVRC_PF_GROUP_NAVI_SUPPORTED(x)

check for Group navigation feature enabled/disabled

AVRC_PF_ADV_CTRL_BIT_NO

Bit for advanced control support.

AVRC_PF_ADV_CTRL_MASK

mask for advanced control

AVRC_PF_ADV_CTRL_OFF

advanced control feature off value

AVRC_PF_ADV_CTRL_SUPPORTED(x)

check for advanced control feature enabled/disabled

AVRC_PF_BROWSE_BIT_NO

bit for browsing

AVRC_PF_BROWSE_MASK

mask for browsing

AVRC_PF_BROWSE_OFF

browsing feature off value

AVRC_PF_BROWSE_SUPPORTED(x)

check for browsing feature enabled/disabled

AVRC_PF_SEARCH_BIT_NO

bit for search

AVRC_PF_SEARCH_MASK

mask for search

AVRC_PF_SEARCH_OFF

search off value

AVRC_PF_SEARCH_SUPPORTED(x)

check for search feature enabled/disabled

AVRC_PF_ADD2NOWPLAY_BIT_NO

bit add to nowplaying

AVRC_PF_ADD2NOWPLAY_MASK

mask for add to nowplaying

AVRC_PF_ADD2NOWPLAY_OFF

add to nowplaying off value

AVRC_PF_ADD2NOWPLAY_SUPPORTED(x)

check for add to nowplaying feature enabled/disabled

AVRC_PF_UID_UNIQUE_BIT_NO

bit for unique uid

AVRC_PF_UID_UNIQUE_MASK

mask for unique uid

AVRC_PF_UID_UNIQUE_OFF

unique uid off value

AVRC_PF_UID_UNIQUE_SUPPORTED(x)

check for unique uid feature enabled/disabled

AVRC_PF_BR_WH_ADDR_BIT_NO

bit for OnlyBrowsableWhenAddressed

AVRC_PF_BR_WH_ADDR_MASK

mask for OnlyBrowsableWhenAddressed

AVRC_PF_BR_WH_ADDR_OFF

OnlyBrowsableWhenAddressed off value.

AVRC_PF_BR_WH_ADDR_SUPPORTED(x)

check for OnlyBrowsableWhenAddressed feature enabled/disabled

AVRC_PF_SEARCH_WH_ADDR_BIT_NO

bit for OnlySearchableWhenAddressed

AVRC_PF_SEARCH_WH_ADDR_MASK

mask for OnlySearchableWhenAddressed

AVRC_PF_SEARCH_WH_ADDR_OFF

OnlySearchableWhenAddressed off value.

AVRC_PF_SEARCH_WH_ADDR_SUPPORTED(x)

check for OnlySearchableWhenAddressed feature enabled/disabled

AVRC_PF_NOW_PLAY_BIT_NO

bit for nowplaying

AVRC_PF_NOW_PLAY_MASK

mask for nowplaying

AVRC_PF_NOW_PLAY_OFF

nowplaying off value

AVRC_PF_NOW_PLAY_SUPPORTED(x)

check for nowplaying feature enabled/disabled

AVRC_PF_UID_PERSIST_BIT_NO

bit for UID Persistency

AVRC_PF_UID_PERSIST_MASK

mask for UID Persistency

AVRC_PF_UID_PERSIST_OFF

UID Persistency off value.

AVRC_PF_UID_PERSIST_SUPPORTED(x)

check for UID Persistency feature enabled/disabled

AVRC_PF_GET_NUM_OF_ITEMS_BIT_NO

bit for NumberOfItems

AVRC_PF_GET_NUM_OF_ITEMS_MASK

mask for NumberOfItems

AVRC_PF_GET_NUM_OF_ITEMS_OFF

NumberOfItems off value.

AVRC_PF_GET_NUM_OF_ITEMS_SUPPORTED(x)

check for NumberOfItems feature enabled/disabled

AVRC_1_6_INCLUDED
AVRC_METADATA_INCLUDED

Metadata feature included status.

AVRC_ADV_CTRL_INCLUDED

AVRC advanced control included status.

AVRC_BROWSE_INCLUDED
AVCT_CMD

Command message.

AVCT_RSP

Response message.

AVCT_REJ

Message rejected.

AVRC_CMD

Command message.

AVRC_RSP

Response message.

WICED_AVRC_XMIT_BUF_OVERHEAD

The amount of overhead in wiced_bt_avrc_xmit_buf_t before the payload.

AVRC_IS_VALID_CAP_ID(a)

Check for valid capability ids.

AVRC_IS_VALID_EVENT_ID(a)

Macro to check for valid AVRC event.

AVRC_IS_VALID_ATTRIBUTE(a)

Check for valid AVRC attribute.

AVRC_IS_VALID_MEDIA_ATTRIBUTE(a)

Check for valid metadata attribute.

AVRC_IS_VALID_BATTERY_STATUS(a)

Check for valid battery status.

AVRC_IS_VALID_SYSTEM_STATUS(a)

Check for valid system status.

AVRC_IS_VALID_GROUP(a)

Check for valid group.

AVRC_CO_ID_TO_BE_STREAM(p, u32)

Macro to convert 24bit company id to 32bit stream.

AVRC_BE_STREAM_TO_CO_ID(u32, p)

Macro to convert 32bit stream to company id.

AVRC_MAX_APP_ATTR_SIZE

max application attribute size

AVRC_MAX_CHARSET_SIZE

max character set size

AVRC_MAX_ELEM_ATTR_SIZE

max element attribute size

AVRC_DEFAULT_METADATA_SCRATCH_SZ

Default metadata scratch size.

AVRC_DEFAULT_METADATA_CMD_SIZE

default metadata command size

AVRC_DEFAULT_METADATA_RSP_SIZE

default metadata response size

AVRC_MAX_METADATA_RCV_MSG_SIZE

Max metadata received message size.

AVRC_MAX_AVCT_RCV_PKT_SIZE

Max AVCT received packet size.

AVRC_CAP_MAX_NUM_COMP_ID

maximum supported number of company ids

AVRC_CAP_MAX_NUM_EVT_ID

maximum supported number of event ids

AVRC_MAX_APP_SETTINGS

Maximum supported app settings.

Typedefs

void() wiced_bt_avrc_ctrl_cback_t (uint8_t handle, uint8_t event, uint16_t result, wiced_bt_device_address_t peer_addr)

AVRC control callback function.

Parameters
  • handle[in] : Connection handle

  • event[in] : AVRC event (see AVRC events)

  • result[in] : Result code (see AVRC result codes)

  • peer_addr[in] : Peer device address

Returns

Nothing

void() wiced_bt_avrc_msg_cback_t (wiced_bt_avrc_msg_t *p_msg)

AVRC message callback function.

It is executed when AVCTP has a message packet ready for the application. The implementation of this callback function must copy the wiced_bt_avrc_msg_t structure passed to it as it is not guaranteed to remain after the callback function exits.

Parameters
  • handle[in] : Connection handle

  • label[in] : Message label

  • opcode[in] : Message opcode (see AVRC opcodes)

  • p_msg[in] : AVRC message

Returns

Nothing

void() wiced_bt_avrc_xmitted_cback_t (uint8_t handle, wiced_bt_avrc_xmit_buf_t *p_buf, wiced_bool_t b_was_sent_ok)

AVRC message transmitted callback function.

It is executed when AVCTP has sent a message packet with application payload.

Parameters
  • handle[in] : Connection handle

  • label[in] : Message label

  • opcode[in] : Message opcode (see AVRC opcodes)

  • p_msg[in] : AVRC message

Returns

Nothing

typedef uint8_t wiced_bt_avrc_systemstate_t

AVRC systemstate.

typedef uint8_t wiced_bt_avrc_uid_t[AVRC_UID_SIZE]

AVRC UID.

typedef uint8_t wiced_bt_avrc_feature_mask_t[AVRC_FEATURE_MASK_SIZE]

AVRCP feature mask.

typedef wiced_bt_avrc_get_attrs_t wiced_bt_avrc_metadata_get_element_attrs_rsp_t
typedef wiced_bt_avrc_get_attrs_t wiced_bt_avrc_browse_get_attrs_rsp_t
typedef wiced_bt_avrc_browse_num_of_items_rsp_t wiced_bt_avrc_browse_search_rsp_t

Functions

void wiced_bt_avrc_register(uint16_t mtu, uint16_t mtu_br, uint8_t sec_mask)

This function initializes AVRCP and prepares the protocol stack for its use.

This function must be called once by the system or platform using AVRCP before the other functions of the API an be used

Parameters
  • mtu[in] : Control Channel MTU (Min Value = 48, default value = L2CAP MTU)

  • mtu_br[in] : Browsing Channel MTU (Min Value = 335, default value = L2CAP MTU)

  • sec_mask[in] : Security requirement mask

Returns

None

uint16_t wiced_bt_avrc_open(uint8_t *p_handle, wiced_bt_avrc_conn_cb_t *p_ccb, wiced_bt_device_address_t peer_addr)

Open AVRC connection (as intiator or acceptor); register notification callbacks.

The connection role may be AVRC controller or target. The connection remains available to the application until wiced_bt_avrc_close() is called. On receiving AVRC_CLOSE_IND_EVT, acceptor connections remain in acceptor mode (no need to re-open the connection)

Parameters
  • p_handle[out] : Connection handle (valid if AVRC_SUCCESS is returned)

  • p_ccb[in] : AVRC connection control block (callbacks and role configuration)

  • peer_addr[in] : Peer device address (if initiator)

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_close(uint8_t handle)

Close AVRCP connection.

Parameters

handle[in] : Handle of connection to close

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_open_browse(uint8_t handle, uint8_t conn_role)

Open AVRCP browsing connection, either as initiator or acceptor.

Parameters
  • handle[in] : Connection handle (obtained from wiced_bt_avrc_open)

  • conn_role[in] : Initiator or acceptor of the connection (see AVRC connection roles)

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_close_browse(uint8_t handle)

Close AVRCP browsing connection.

Parameters

handle[in] : Connection handle

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_send_medatata_msg(uint8_t handle, uint8_t label, uint8_t ctype, wiced_bt_avrc_xmit_buf_t *p_cmdbuf)

Send an AVRC message.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

  • ctype[in] : Message type (see AVRC message types)

  • p_cmdbuf[in] : Pointer to the buffer holding the AVRC message

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_unit_cmd(uint8_t handle, uint8_t label)

Send a UNIT INFO command to the peer device.

This function can only be called for controller role connections. Any response message from the peer is passed back through the wiced_bt_avrc_msg_cback_t callback function.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_send_sub_cmd(uint8_t handle, uint8_t label, uint8_t page)

Send a SUBUNIT INFO command to the peer device.

This function can only be called for controller role connections. Any response message from the peer is passed back through the wiced_bt_avrc_msg_cback_t callback function.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

  • page[in] : Specifies which subunit table is requested. For AVRCP it is typically zero. Value range is 0-7.

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_send_passthrough_cmd(uint8_t handle, uint8_t label, wiced_bt_avrc_hdr_t *p_hdr, wiced_bt_avrc_pass_thru_cmd_t *p_msg)

Send a PASS THROUGH command to the peer device.

This function can only be called for controller role connections. Any response message from the peer is passed back through the wiced_bt_avrc_msg_cback_t callback function.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

  • p_msg[in] : Pointer to the pass through command

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_send_passthrough_rsp(uint8_t handle, uint8_t label, wiced_bt_avrc_hdr_t *p_hdr, wiced_bt_avrc_pass_thru_cmd_t *p_msg)

Send a PASS THROUGH response to the peer device.

This function can only be called for target role connections. This function must be called when a PASS THROUGH command message is received from the peer through the wiced_bt_avrc_msg_cback_t callback function.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

  • p_msg[in] : Pointer to the pass through response

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_send_vendor_cmd(uint8_t handle, uint8_t label, wiced_bt_avrc_cmd_t *p_msg)

Send a VENDOR DEPENDENT command to the peer device.

This function can only be called for controller role connections. Any response message from the peer is passed back through the wiced_bt_avrc_msg_cback_t callback function.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

  • p_msg[in] : Pointer to the vendor dependent command

Returns

Result code (see AVRC result codes)

uint16_t wiced_bt_avrc_send_vendor_rsp(uint8_t handle, uint8_t label, wiced_bt_avrc_rsp_t *p_msg)

Send a VENDOR DEPENDENT response to the peer device.

This function can only be called for target role connections. This function must be called when a VENDOR DEPENDENT command message is received from the peer through the wiced_bt_avrc_msg_cback_t callback function.

Parameters
  • handle[in] : Connection handle

  • label[in] : Transaction label

  • p_msg[in] : Pointer to the vendor dependent response

Returns

Result code (see AVRC result codes)

uint8_t wiced_bt_avrc_set_trace_level(uint8_t new_level)

Sets the trace level for AVRC.

If 0xff is passed, the current trace level is returned.

Parameters

new_level[in] : New trace level

Returns

The new trace level or current trace level if the input parameter is 0xff.

wiced_bt_avrc_sts_t wiced_bt_avrc_bld_metadata_cmd(wiced_bt_avrc_metadata_cmd_t *p_cmd, wiced_bt_avrc_xmit_buf_t *p_xmit_buf)

Build AVRCP command.

Parameters
  • p_cmd[in] : Pointer to the structure to build the command from

  • p_xmit_buf[in] : Pointer to the buffer to build the command into

Returns

Status code (see AVRC status codes) AVRC_STS_NO_ERROR, if the message in p_data is parsed successfully. Otherwise, the error code defined by AVRCP 1.4

wiced_bt_avrc_sts_t wiced_bt_avrc_bld_metadata_response(uint8_t handle, wiced_bt_avrc_metadata_rsp_t *p_rsp, wiced_bt_avrc_xmit_buf_t *p_rspbuf)

Build AVRCP response.

Parameters
  • handle[in] : Connection handle

  • p_rsp[in] : Pointer to the structure to build the response from

  • p_rspbuf[in] : Pointer to the buffer to build the response into

Returns

Status code (see AVRC status codes) AVRC_STS_NO_ERROR, if the message in p_data is parsed successfully. Otherwise, the error code defined by AVRCP 1.4

wiced_bt_avrc_sts_t wiced_bt_avrc_bld_browse_command(wiced_bt_avrc_browse_cmd_t *p_cmd, wiced_bt_avrc_xmit_buf_t *p_pl)

Build AVRCP Browse response.

Parameters
  • p_cmd[in] : Pointer to the structure to build the command from

  • p_pl[in] : Pointer to the buffer to build the command into

Returns

Status code (see AVRC status codes) AVRC_STS_NO_ERROR, if the message in p_data is parsed successfully. Otherwise, the error code defined by AVRCP 1.4

wiced_bt_avrc_sts_t wiced_bt_avrc_bld_browse_response(uint8_t handle, wiced_bt_avrc_browse_rsp_t *p_rsp, wiced_bt_avrc_xmit_buf_t *p_pl)

Build AVRCP Browse response.

Parameters
  • handle[in] : Connection handle

  • p_rsp[in] : Pointer to the structure to build the response from

  • p_rspbuf[in] : Pointer to the buffer to build the response into

Returns

Status code (see AVRC status codes) AVRC_STS_NO_ERROR, if the message in p_data is parsed successfully. Otherwise, the error code defined by AVRCP 1.4

uint16_t wiced_bt_avrc_send_browse_data(uint8_t handle, uint8_t label, uint8_t cr, wiced_bt_avrc_xmit_buf_t *p_pl)

send the Browsing data

Parameters
  • handle[in] : Connection handle

  • label[in] : Message label

  • ctype[in] : avrc message type (see AVRC message types)

  • p_rspbuf[in] : Pointer to the buffer to send

Returns

Result code (see AVRC result codes)

wiced_bool_t wiced_bt_avrc_is_valid_avc_type(uint8_t pdu_id, uint8_t ctype)

Check if correct AVRC message type is specified.

Parameters
Returns

true if it is valid, false otherwise

wiced_bool_t wiced_bt_avrc_is_valid_player_attr(uint8_t attr)

Check if the given attrib value is a valid one.

Returns returns true if it is valid

Parameters

attr[in] : Player attribute ID

uint16_t wiced_bt_avrc_get_ctrl_mtu(void)

This function gets the control MTU.

Returns returns AVRC Control MTU

uint16_t wiced_bt_avrc_get_data_mtu(void)

This function gets the data MTU.

Returns returns AVRC DATA MTU

wiced_bool_t avrc_is_valid_player_attrib_value(uint8_t attrib, uint8_t value)

This function check for valid player attribute.

Returns returns TRUE or FALSE

int avrc_int_read_attr_entry(uint8_t *p_rcvd_data, uint16_t rcvd_data_len, wiced_bt_avrc_attr_entry_t *p_attr)

This function parse the avrc attribute.

Returns returns number of bytes read from the buffer

int avrc_int_read_full_name(uint8_t *p_rcvd_data, uint16_t rcvd_data_len, wiced_bt_avrc_full_name_t *p_name)

This function parse the string with charset_id received in buffer.

Returns returns number of bytes read from the buffer

int avrc_int_read_browse_item(uint8_t *p_rcvd_data, uint16_t rcvd_data_len, wiced_bt_avrc_item_t *p_rsp)

This function parse the response for browsable item player/folder/media.

Returns returns number of bytes read from the buffer

int avrc_int_read_name(uint8_t *p_rcvd_data, uint16_t rcvd_data_len, wiced_bt_avrc_name_t *p_name)

This function parse the string received in buffer.

Returns returns number of bytes read from the buffer

struct wiced_bt_avrc_conn_cb_t
#include <>

AVRC connection control block; used when calling wiced_bt_avrc_open() to configure the AVRC connection and register for callbacks.

Public Members

wiced_bt_avrc_ctrl_cback_t *p_ctrl_cback

AVRC connection control callback.

wiced_bt_avrc_msg_cback_t *p_msg_cback

AVRC message callback.

wiced_bt_avrc_xmitted_cback_t *p_xmitted_cback

pointer to application transmit complete callback

uint32_t company_id

Company ID (see Company IDs)

uint8_t connection_role

Connection role: AVRC_CONN_INT (initiator) or AVRC_CONN_ACP (acceptor) (see AVRC connection roles)

uint8_t control

Control role: AVRC_CT_TARGET (target) or AVRC_CT_CONTROL (controller) (see AVRC control roles)

uint16_t avrc_seg_buf_len

Maximum length of assembled AVRC data.

uint8_t *p_avrc_buff

Pointer to AVRC assembly buffer.

uint16_t avct_seg_buf_len

Maximum length of AVCT assembled data.

uint8_t *p_avct_buff

Pointer to AVCT assembly buffer.

struct wiced_bt_avrc_hdr_t
#include <>

AV/C message header.

Public Members

uint8_t ctype

Message type (see AVRC Message Types)

uint8_t subunit_type

Subunit type (see AVRC subunit types)

uint8_t subunit_id

Subunit ID (typically ignored for AVRCP; except for VENDOR DEPENDENT messages (Value range: 0-7)

uint8_t opcode

Opcode (passthrough, vendor, etc)

struct wiced_bt_avrc_xmit_buf_t
#include <>

AVRC Transmit buffer - used to build and transmit application payload.

Public Members

uint16_t buffer_size

The size of the payload buffer.

uint16_t len_used

The amount of data in the buffer.

uint8_t is_cmd

TRUE if a command, FALSE if a response.

uint8_t meta_pdu_id

The MetaData (vendor dependant) PDU ID.

uint8_t payload[1]

Actual size is specified in buffer_size.

union wiced_bt_avrc_caps_param_t
#include <>

AVRCP capabilities param used in building getCapabilities packet.

Public Members

uint32_t company_id[AVRC_CAP_MAX_NUM_COMP_ID]

company id

uint8_t event_id[AVRC_CAP_MAX_NUM_EVT_ID]

event id

struct wiced_bt_avrc_app_setting_t
#include <>

AVRCP Application settings.

Public Members

uint8_t attr_id

Attribute id.

uint8_t attr_val

Attribute value.

struct wiced_bt_avrc_metadata_play_cmd_t
#include <>

PlayItem & AddToNowPlaying.

Public Members

uint8_t scope

scope

wiced_bt_avrc_uid_t uid

Item’s uid.

uint16_t uid_counter

uid counter

struct wiced_bt_avrc_addr_player_param_t
#include <>

notification event parameter for AddressedPlayer change

Public Members

uint16_t player_id

player id

uint16_t uid_counter

uid counter

struct wiced_bt_avrc_name_t
#include <>

AVRCP name used in building metadata name and folder name in browsing.

Public Members

uint16_t str_len

metadata/folder string length

uint8_t *p_str

metadata/folder string content

struct wiced_bt_avrc_full_name_t
#include <>

AVRCP full name used in building and receiving metadata packet.

Public Members

uint16_t charset_id

character set id

wiced_bt_avrc_name_t name
struct wiced_bt_avrc_unit_info_cmd_t
#include <>

Unit info command message.

Public Members

uint8_t unit_info[5]

UNIT INFO message.

struct wiced_bt_avrc_unit_info_rsp_t
#include <>

Unit info response message.

Public Members

uint8_t byte

one byte value

uint8_t unit

This value is vendor dependent and typically zero.

uint8_t unit_type

Unit type (see AVRC subunit types)

uint32_t company_id

Company identifier.

struct wiced_bt_avrc_sub_unit_info_cmd_t
#include <>

Subunit info command.

Public Members

uint8_t page

Specifies which part of the subunit type table is returned.

For AVRCP it is typically zero. Value range is 0-7

uint8_t extension_code

subunit info exetension code

uint8_t data[4]

sub unit info command value

struct wiced_bt_avrc_sub_unit_info_rsp_t
#include <>

Subunit info response.

Public Members

uint8_t extension_code

subunit info exetension code

uint8_t page

Specifies which part of the subunit type table is returned.

For AVRCP it is typically zero. Value range is 0-7

uint8_t max_subunit_id

max subunit id

uint32_t subunit_type

subunit type see AVRC subunit types)

uint8_t octets[3]

subunit value

struct wiced_bt_avrc_pass_thru_hdr_t
#include <>

Passthrough response header.

Public Members

uint8_t operation_id

Operation ID.

uint8_t state

Keypress state.

uint8_t operation_field_len

data length

struct wiced_bt_avrc_pass_thru_group_nav_cmd_t
#include <>

Passthrough group navigation command.

Public Members

uint32_t company_id

company identifier

uint16_t vendor_operation_id

operation id

union wiced_bt_avrc_pass_thru_cmd_t
#include <>

Passthrough command.

Public Members

wiced_bt_avrc_pass_thru_hdr_t hdr

passthrough command header

wiced_bt_avrc_pass_thru_group_nav_cmd_t group_nav
struct wiced_bt_avrc_metadata_get_caps_cmd_t
#include <>

GetCapability.

Public Members

uint8_t capability_id

Capability id.

struct wiced_bt_avrc_metadata_list_app_settings_values_cmd_t
#include <>

ListPlayerAppValues.

Public Members

uint8_t attr_id

attribute id

struct wiced_bt_avrc_metadata_get_cur_app_value_cmd_t
#include <>

GetCurAppValue.

Public Members

uint8_t num_attr

number of attributes

uint8_t *p_vals

list of App attributes to retrieve

struct wiced_bt_avrc_metadata_set_app_value_cmd_t
#include <>

SetAppValue.

Public Members

uint8_t num_val

number of attributes values

wiced_bt_avrc_app_setting_t *p_vals

list of App attributes values to set

struct wiced_bt_avrc_metadata_get_app_attr_txt_cmd_t
#include <>

GetAppAttrTxt.

Public Members

uint8_t num_attr

number of attributes

uint8_t *p_attrs

list of App attributes text to retrieve

struct wiced_bt_avrc_metadata_get_app_val_txt_cmd_t
#include <>

GetAppValueTxt.

Public Members

uint8_t attr_id

attribute id

uint8_t num_val

number of attributes values

uint8_t *p_vals

list of App attributes values to retrieve

struct wiced_bt_avrc_metadata_inform_charset_cmd_t
#include <>

InformCharset.

Public Members

uint8_t num_id

number of charset ids

uint16_t *p_charsets

list of supported character set ids

struct wiced_bt_avrc_metadata_battery_status_cmd_t
#include <>

InformBatteryStatus.

Public Members

uint8_t battery_status

Battery status.

struct wiced_bt_avrc_metadata_get_elem_attrs_cmd_t
#include <>

GetElemAttrs.

Public Members

uint32_t identifier[2]

identifier to identify an element on TG

uint8_t num_attr

number of attributes

uint32_t attrs[AVRC_MAX_ELEM_ATTR_SIZE]

list of attributes

struct wiced_bt_avrc_metadata_reg_notif_cmd_t
#include <>

RegNotify.

Public Members

uint8_t event_id

event id

uint32_t playback_interval

playback interval

struct wiced_bt_avrc_metadata_continuation_pdu_cmd_t
#include <>

Continue PDUs.

Public Members

uint8_t pdu_id
struct wiced_bt_avrc_browse_get_items_cmd_t
#include <>

GetFolderItems.

Public Members

uint8_t scope

scope

uint32_t start_item

statrt item uid

uint32_t end_item

end item uid

uint8_t attr_count

attributes count

uint32_t *p_attr_list

attribute list to get

struct wiced_bt_avrc_browse_chg_path_cmd_t
#include <>

ChangePath.

Public Members

uint16_t uid_counter

uid counter

uint8_t direction

direction for folder change

wiced_bt_avrc_uid_t folder_uid

folder uid to switch

struct wiced_bt_avrc_browse_get_item_attrs_cmd_t
#include <>

GetItemAttrs.

Public Members

uint8_t scope

scope

wiced_bt_avrc_uid_t uid

Item’s uid.

uint16_t uid_counter

uid counter

uint8_t attr_count

attributes count

uint32_t *p_attr_list

list of attributes to get for the item

struct wiced_bt_avrc_browse_search_cmd_t
#include <>

Search.

Public Members

wiced_bt_avrc_full_name_t string

string to search for

struct wiced_bt_avrc_browse_get_num_of_items_cmd_t
#include <>

GetTotalNumOfItems.

Public Members

uint8_t scope

scope

struct wiced_bt_avrc_browse_next_cmd_t
#include <>

Continue and Abort.

Public Members

uint8_t target_pdu

target pdu to continue/abort to receive

struct wiced_bt_avrc_metadata_hdr_t
#include <>

metadata message header

Public Members

uint32_t company_id

Company identifier.

uint8_t pdu

pdu id

uint8_t packet_type

message type

uint16_t param_len
struct wiced_bt_avrc_metadata_cmd_t
#include <>

AVRC commands.

Public Members

wiced_bt_avrc_metadata_hdr_t metadata_hdr
wiced_bt_avrc_metadata_get_caps_cmd_t get_caps

GetCapability cmd.

wiced_bt_avrc_metadata_list_app_settings_values_cmd_t list_app_values

ListPlayerAppValues cmd.

wiced_bt_avrc_metadata_get_cur_app_value_cmd_t get_cur_app_val

GetCurAppValue cmd.

wiced_bt_avrc_metadata_set_app_value_cmd_t set_app_val

SetAppValue cmd.

wiced_bt_avrc_metadata_get_app_attr_txt_cmd_t get_app_attr_txt

GetAppAttrTxt cmd.

wiced_bt_avrc_metadata_get_app_val_txt_cmd_t get_app_val_txt

GetAppValueTxt cmd.

wiced_bt_avrc_metadata_inform_charset_cmd_t inform_charset

InformCharset cmd.

wiced_bt_avrc_metadata_battery_status_cmd_t inform_battery_status

InformBatteryStatus cmd.

wiced_bt_avrc_metadata_get_elem_attrs_cmd_t get_elem_attrs

GetElemAttrs cmd.

wiced_bt_avrc_metadata_reg_notif_cmd_t reg_notif

RegNotify cmd.

wiced_bt_avrc_metadata_continuation_pdu_cmd_t continuation_pdu

Continuation PDU cmd.

wiced_bt_avrc_metadata_continuation_pdu_cmd_t abort_pdu

Continuation PDU cmd.

uint16_t player_id

SetAddrPlayer cmd.

uint8_t volume

SetAbsVolume cmd.

wiced_bt_avrc_metadata_play_cmd_t play_item

PlayItem & AddToNowPlaying.

union wiced_bt_avrc_metadata_cmd_t::[anonymous] u
struct wiced_bt_avrc_browse_cmd_t

Public Members

uint8_t pdu

pdu id

uint16_t param_len

data length

wiced_bt_avrc_browse_next_cmd_t continu

Continue.

wiced_bt_avrc_browse_next_cmd_t abort

Abort.

uint16_t player_id

SetBrowsedPlayer.

wiced_bt_avrc_browse_get_items_cmd_t get_folder_items

GetFolderItems.

wiced_bt_avrc_browse_chg_path_cmd_t chg_path

ChangePath.

wiced_bt_avrc_browse_get_item_attrs_cmd_t get_item_attrs

GetItemAttrs.

wiced_bt_avrc_browse_search_cmd_t search

Search.

wiced_bt_avrc_browse_get_num_of_items_cmd_t get_num_of_items

GetTotalNumOfItems.

union wiced_bt_avrc_browse_cmd_t::[anonymous] browse_cmd
struct wiced_bt_avrc_metadata_get_caps_rsp_t
#include <>

GetCapability rsp.

Public Members

uint8_t capability_id

Capability id.

uint8_t count

count

wiced_bt_avrc_caps_param_t param

param

struct wiced_bt_avrc_metadata_list_app_attr_rsp_t
#include <>

ListPlayerAppAttr.

Public Members

uint8_t num_attr

number of attributes

uint8_t *p_attrs

list of attributes in response

struct wiced_bt_avrc_metadata_list_app_values_rsp_t
#include <>

ListPlayerAppValues.

Public Members

uint8_t num_val

number of Application values

uint8_t *p_vals

list of application values in response

struct wiced_bt_avrc_app_setting_text_t

Public Members

uint8_t attr_id

attribute id

wiced_bt_avrc_full_name_t name

attribute name

struct wiced_bt_avrc_metadata_get_cur_app_value_rsp_t
#include <>

GetCurAppValue.

Public Members

uint8_t num_val

number of current Application values

uint8_t *p_vals

list of application values in response of type wiced_bt_avrc_app_setting_t

struct wiced_bt_avrc_metadata_get_app_attr_txt_rsp_t
#include <>

GetAppAttrTxt.

Public Members

uint8_t num_attr

number of attributes

uint16_t length

length of the Application attribute list

uint8_t *p_vals

list of application values in response of type wiced_bt_avrc_app_setting_text_t

struct wiced_bt_avrc_attr_entry_t

Public Members

uint32_t attr_id
wiced_bt_avrc_full_name_t name
struct wiced_bt_avrc_get_attrs_t
#include <>

GetElemAttrs.

Public Members

uint8_t num_attr

number of attributes

uint8_t length

length of the attribute list

uint8_t *p_attrs

list of application values in response of type wiced_bt_avrc_attr_entry_t

struct wiced_bt_avrc_metadata_get_play_status_rsp_t
#include <>

GetPlayStatus.

Public Members

uint32_t song_len

track length

uint32_t song_pos

track playback position

uint8_t play_status

playback status

struct wiced_bt_avrc_player_app_param_t
#include <>

notification event parameter for Player Application setting change

Public Members

uint8_t num_attr

number of attributes

uint8_t len

length of the list of attribute

uint8_t *p_attrs

list of the attribute

union wiced_bt_avrc_notif_rsp_param_t
#include <>

AVRCP notification response.

Public Members

wiced_bt_avrc_playstate_t play_status

play status

wiced_bt_avrc_uid_t track

track id

uint32_t play_pos

playback position

wiced_bt_avrc_battery_status_t battery_status

battery status

wiced_bt_avrc_systemstate_t system_status

system status

wiced_bt_avrc_player_app_param_t player_setting

player application settings

wiced_bt_avrc_addr_player_param_t addr_player

Addressed player properties.

uint16_t uid_counter

uid counter

uint8_t volume

volume level

struct wiced_bt_avrc_metadata_reg_notif_rsp_t
#include <>

RegNotify response.

Public Members

uint8_t event_id

event id which is registered

wiced_bt_avrc_notif_rsp_param_t param

interim response parameters

struct wiced_bt_avrc_item_player_t
#include <>

AVRCP player item.

Public Members

uint16_t player_id

A unique identifier for this media player.

uint8_t major_type

Use AVRC_PLAYER_MAJOR_TYPE_AUDIO, AVRC_PLAYER_MAJOR_TYPE_VIDEO, AVRC_PLAYER_MAJOR_TYPE_BC_AUDIO, or AVRC_PLAYER_MAJOR_TYPE_BC_VIDEO.

uint32_t sub_type

Use AVRC_PLAYER_SUB_TYPE_NONE, AVRC_PLAYER_SUB_TYPE_AUDIO_BOOK, or AVRC_PLAYER_SUB_TYPE_PODCAST.

uint8_t play_status

Use AVRC_PLAYSTATE_STOPPED, AVRC_PLAYSTATE_PLAYING, AVRC_PLAYSTATE_PAUSED, AVRC_PLAYSTATE_FWD_SEEK, AVRC_PLAYSTATE_REV_SEEK, or AVRC_PLAYSTATE_ERROR.

wiced_bt_avrc_feature_mask_t features

Supported feature bit mask.

wiced_bt_avrc_full_name_t name

The player name, name length and character set id.

struct wiced_bt_avrc_item_folder_t
#include <>

AVRCP folder item.

Public Members

wiced_bt_avrc_uid_t uid

The uid of this folder.

uint8_t type

Use AVRC_FOLDER_TYPE_MIXED, AVRC_FOLDER_TYPE_TITLES, AVRC_FOLDER_TYPE_ALNUMS, AVRC_FOLDER_TYPE_ARTISTS, AVRC_FOLDER_TYPE_GENRES, AVRC_FOLDER_TYPE_PLAYLISTS, or AVRC_FOLDER_TYPE_YEARS.

wiced_bool_t playable

TRUE, if the folder can be played.

wiced_bt_avrc_full_name_t name

The folder name, name length and character set id.

struct wiced_bt_avrc_item_media_t
#include <>

media element

Public Members

wiced_bt_avrc_uid_t uid

The uid of this media element item.

uint8_t type

Use AVRC_MEDIA_TYPE_AUDIO or AVRC_MEDIA_TYPE_VIDEO.

wiced_bt_avrc_full_name_t name

The media name, name length and character set id.

uint8_t attr_count

The number of attributes in p_attr_list.

uint8_t attr_list_len
uint8_t *p_attr_list

Attribute entry list of type @refwiced_bt_avrc_attr_entry_t.

struct wiced_bt_avrc_item_t
#include <>

AVRCP Browsable item i.e.

Player/Folder/Media items

Public Members

uint8_t item_type

AVRC_ITEM_PLAYER, AVRC_ITEM_FOLDER, or AVRC_ITEM_MEDIA.

uint8_t item_length
wiced_bt_avrc_item_player_t player

The properties of a media player item.

wiced_bt_avrc_item_folder_t folder

The properties of a folder item.

wiced_bt_avrc_item_media_t media

The properties of a media item.

union wiced_bt_avrc_item_t::[anonymous] u

AVRC item player/folder/media.

struct wiced_bt_avrc_browse_set_br_player_rsp_t
#include <>

SetBrowsedPlayer.

Public Members

uint16_t uid_counter

uid counter

uint32_t num_items

number of items in root folder path of player

uint16_t charset_id

character set id

uint8_t folder_depth

folder depth

uint8_t length

length of the folder list of root path

uint8_t *p_folder_name
struct wiced_bt_avrc_browse_get_items_rsp_t
#include <>

GetFolderItems.

Public Members

uint16_t uid_counter

uid counter

uint16_t item_count

number of items in response

uint16_t length

length of the item list in response

uint8_t *item_list
struct wiced_bt_avrc_browse_chg_path_rsp_t
#include <>

ChangePath.

Public Members

uint32_t num_items

number of items in new path

struct wiced_bt_avrc_browse_num_of_items_rsp_t
#include <>

Get Total Number of Items.

Public Members

uint16_t uid_counter

uid counter

uint32_t num_items

number of items

struct wiced_bt_avrc_metadata_rsp_t
#include <>

AVRC Metadata response messages.

Public Members

wiced_bt_avrc_metadata_hdr_t metadata_hdr
wiced_bt_avrc_metadata_get_caps_rsp_t get_caps

GetCapability.

wiced_bt_avrc_metadata_list_app_attr_rsp_t list_app_attr

ListPlayerAppAttr.

wiced_bt_avrc_metadata_list_app_values_rsp_t list_app_values

ListPlayerAppValues.

wiced_bt_avrc_metadata_get_cur_app_value_rsp_t get_cur_app_val

GetCurAppValue.

wiced_bt_avrc_metadata_get_app_attr_txt_rsp_t get_app_attr_txt

GetAppAttrTxt.

wiced_bt_avrc_metadata_get_app_attr_txt_rsp_t get_app_val_txt

GetAppValueTxt.

wiced_bt_avrc_metadata_get_element_attrs_rsp_t get_elem_attrs

GetElemAttrs.

wiced_bt_avrc_metadata_get_play_status_rsp_t get_play_status

GetPlayStatus.

wiced_bt_avrc_metadata_reg_notif_rsp_t reg_notif

RegNotify.

uint8_t volume

SetAbsoluteVolume.

uint8_t status

SetAddressedPlayer.

uint8_t play_status

PlayItem, AddToNowPlaying.

uint8_t rejected_rsp

error code for rejected response

union wiced_bt_avrc_metadata_rsp_t::[anonymous] u
struct wiced_bt_avrc_browse_rsp_t
#include <>

AVRC Browse response messages.

Public Members

uint8_t pdu_id

pdu id

uint16_t param_len

response data length

uint8_t status

status

wiced_bt_avrc_browse_set_br_player_rsp_t set_browse_player

SetBrowsedPlayer.

wiced_bt_avrc_browse_get_items_rsp_t get_folder_items

GetFolderItems.

wiced_bt_avrc_browse_chg_path_rsp_t chg_path

ChangePath.

wiced_bt_avrc_browse_get_attrs_rsp_t get_attrs

GetItemAttrs.

wiced_bt_avrc_browse_num_of_items_rsp_t get_num_of_items

GetTotalNumberOfItems.

wiced_bt_avrc_browse_search_rsp_t search

Search.

uint8_t reject
union wiced_bt_avrc_browse_rsp_t::[anonymous] u
struct wiced_bt_avrc_cmd_t
#include <>

AVRC Command messages.

Public Members

wiced_bt_avrc_hdr_t hdr

AVRC command header.

wiced_bt_avrc_unit_info_cmd_t unit

unit info command

wiced_bt_avrc_sub_unit_info_cmd_t sub_unit

subunit command

wiced_bt_avrc_pass_thru_cmd_t pass_thru

Passthrough command.

wiced_bt_avrc_metadata_cmd_t metadata

Metadata command.

wiced_bt_avrc_browse_cmd_t browse_cmd

Browse command.

union wiced_bt_avrc_cmd_t::[anonymous] type
struct wiced_bt_avrc_rsp_t
#include <>

AVRC response messages.

Public Members

wiced_bt_avrc_hdr_t hdr

AVRC command header.

wiced_bt_avrc_unit_info_rsp_t unit

unit info response

wiced_bt_avrc_sub_unit_info_rsp_t sub_unit

subunit response

wiced_bt_avrc_pass_thru_hdr_t pass

Passthrough response.

wiced_bt_avrc_metadata_rsp_t metadata

vendor response

wiced_bt_avrc_browse_rsp_t browse_rsp

Browse response.

union wiced_bt_avrc_rsp_t::[anonymous] type
struct wiced_bt_avrc_msg_t
#include <>

AVRC received messages to sent to the upper layer.

Public Members

uint8_t msg_type

Message type CMD/RSP.

uint8_t handle

connection Handle

uint8_t label

label

uint8_t opcode

opcode of the command or response

wiced_bt_avrc_rsp_t response

response message

wiced_bt_avrc_cmd_t command

command message

union wiced_bt_avrc_msg_t::[anonymous] type