Enumerations
Enumerations
BLE Services » Apple Media Service Client (AMS_C)
Collaboration diagram for Enumerations:

## Enumerations
enum | ams_c_cmd_id_t { AMS_CMD_ID_PLAY, AMS_CMD_ID_PAUSE, AMS_CMD_ID_TOGGLE_PLAY_PAUSE, AMS_CMD_ID_NEXT_TRACK, AMS_CMD_ID_PREVIOUS_TRACK, AMS_CMD_ID_VOLUME_UP, AMS_CMD_ID_VOLUME_DOWN, AMS_CMD_ID_ADVANCE_REPEAT_MODE, AMS_CMD_ID_ADVANCE_SHUFFLE_MODE, AMS_CMD_ID_SKIP_FORWARD, AMS_CMD_ID_SKIP_BACKWARD, AMS_CMD_ID_LIKE_TRACK, AMS_CMD_ID_DISLIKE_TRACK, AMS_CMD_ID_BOOK_MARK_TRACK }
| Apple Media Service Command ID. More...
enum | ams_c_ett_id_t { AMS_ETT_ID_PLAYER, AMS_ETT_ID_QUEUE, AMS_ETT_ID_TRACK }
| Apple Media Service entities index. More...
enum | { AMS_PLAYER_ATTR_ID_NAME, AMS_PLAYER_ATTR_ID_PLAYBACK_INFO, AMS_PLAYER_ATTR_ID_VOLUME, IAS_ALERT_NONE, IAS_ALERT_MILD, IAS_ALERT_HIGH, TRC_PWR_WFE_MODE = 0, TRC_PWR_DSLEEP_MODE, TRC_PWR_ACTIVE_MODE, TRC_PWR_BLE_RET_DSLEEP, TRC_PWR_APP_TIMER_REFUSE, TRC_PWR_APP_TIMER_PASS, TRC_PWR_BLE_TIMER_PASS }
| Apple Media Service player attribute index. More...
enum | { AMS_QUEUE_ATTR_ID_INDEX, AMS_QUEUE_ATTR_ID_COUNT, AMS_QUEUE_ATTR_ID_SHUFFLE_MODE, AMS_QUEUE_ATTR_ID_REPEAT_MODE }
| Apple Media Service queue attribute index. More...
enum | { AMS_TRACK_ATTR_ID_ARTIST, AMS_TRACK_ATTR_ID_ALBUM, AMS_TRACK_ATTR_ID_TITTLE, AMS_TRACK_ATTR_ID_DURATION }
| Apple Media Service track attribute index. More...
enum | ams_c_evt_type_t { AMS_C_EVT_INVALID, AMS_C_EVT_DISCOVERY_CPLT, AMS_C_EVT_DISCOVERY_FAIL, AMS_C_EVT_CMD_SEND_SUCCESS, AMS_C_EVT_CMD_UPDATE_RECEIVE, AMS_C_EVT_CMD_UPDATE_NTF_SET_SUCCESS, AMS_C_EVT_ATTR_FOCUS_SET_SUCCESS, AMS_C_EVT_ATTR_UPDATE_RECEIVE, AMS_C_EVT_ATTR_UPDATE_NTF_SET_SUCCESS, AMS_C_EVT_CPLT_ATTR_DISPLAY_SET_SUCCESS, AMS_C_EVT_CPLT_ATTR_READ_RSP, AMS_C_EVT_WRITE_OP_ERR }
| Apple Media Service Client Event type. More...

## Detailed Description

## Enumeration Type Documentation

## ◆ anonymous enum

anonymous enum

Apple Media Service player attribute index.

Enumerator
AMS_PLAYER_ATTR_ID_NAME | Player attribute index of name.
AMS_PLAYER_ATTR_ID_PLAYBACK_INFO | Player attribute index of playback information.
AMS_PLAYER_ATTR_ID_VOLUME | Player attribute index of volume.
IAS_ALERT_NONE | No alert.
IAS_ALERT_MILD | Mild alert.
IAS_ALERT_HIGH | High alert.
TRC_PWR_WFE_MODE | WFE mode.
TRC_PWR_DSLEEP_MODE | Deep sleep mode.
TRC_PWR_ACTIVE_MODE | Active mode.
TRC_PWR_BLE_RET_DSLEEP | BLE return deep sleep.
TRC_PWR_APP_TIMER_REFUSE | App timer refuse.
TRC_PWR_APP_TIMER_PASS | App timer pass.
TRC_PWR_BLE_TIMER_PASS | BLE timer pass.

Definition at line 122 of file ams_c.h.

## ◆ anonymous enum

anonymous enum

Apple Media Service queue attribute index.

Enumerator
AMS_QUEUE_ATTR_ID_INDEX | Queue attribute index of index.
AMS_QUEUE_ATTR_ID_COUNT | Queue attribute index of count.
AMS_QUEUE_ATTR_ID_SHUFFLE_MODE | Queue attribute index of shuffle mode.
AMS_QUEUE_ATTR_ID_REPEAT_MODE | Queue attribute index of repeat mode.

Definition at line 130 of file ams_c.h.

## ◆ anonymous enum

anonymous enum

Apple Media Service track attribute index.

Enumerator
AMS_TRACK_ATTR_ID_ARTIST | Track attribute index of artist.
AMS_TRACK_ATTR_ID_ALBUM | Track attribute index of album.
AMS_TRACK_ATTR_ID_TITTLE | Track attribute index of tittle.
AMS_TRACK_ATTR_ID_DURATION | Track attribute index of duration.

Definition at line 139 of file ams_c.h.

## ◆ ams_c_cmd_id_t

enum ams_c_cmd_id_t

Apple Media Service Command ID.

Enumerator
AMS_CMD_ID_PLAY | Command index of play.
AMS_CMD_ID_PAUSE | Command index of pause.
AMS_CMD_ID_TOGGLE_PLAY_PAUSE | Command index of toggle.
AMS_CMD_ID_NEXT_TRACK | Command index of next track.
AMS_CMD_ID_PREVIOUS_TRACK | Command index of previous track.
AMS_CMD_ID_VOLUME_UP | Command index of volume up.
AMS_CMD_ID_VOLUME_DOWN | Command index of volume down.
AMS_CMD_ID_ADVANCE_REPEAT_MODE | Command index of repeat mode.
AMS_CMD_ID_ADVANCE_SHUFFLE_MODE | Command index of shuffle mode.
AMS_CMD_ID_SKIP_FORWARD | Command index of skip forward.
AMS_CMD_ID_SKIP_BACKWARD | Command index of skip backward.
AMS_CMD_ID_LIKE_TRACK | Command index of like track.
AMS_CMD_ID_DISLIKE_TRACK | Command index of dislike track.
AMS_CMD_ID_BOOK_MARK_TRACK | ComMand index of book mark.

Definition at line 95 of file ams_c.h.

## ◆ ams_c_ett_id_t

enum ams_c_ett_id_t

Apple Media Service entities index.

Enumerator
AMS_ETT_ID_PLAYER | Entity index of player.
AMS_ETT_ID_QUEUE | Entity index of queue.
AMS_ETT_ID_TRACK | Entity index of track.

Definition at line 114 of file ams_c.h.

## ◆ ams_c_evt_type_t

enum ams_c_evt_type_t

Apple Media Service Client Event type.

Enumerator
AMS_C_EVT_INVALID | AMS Client invalid event type.
AMS_C_EVT_DISCOVERY_CPLT | AMS Client has found AMS service and its characteristics.
AMS_C_EVT_DISCOVERY_FAIL | AMS Client found AMS service failed because of invalid operation or no found at the peer.
AMS_C_EVT_CMD_SEND_SUCCESS | AMS Client has sent command.
AMS_C_EVT_CMD_UPDATE_RECEIVE | AMS Client has recieved updated command list.
AMS_C_EVT_CMD_UPDATE_NTF_SET_SUCCESS | AMS Client has set command update notification.
AMS_C_EVT_ATTR_FOCUS_SET_SUCCESS | AMS Client has set focus attribute.
AMS_C_EVT_ATTR_UPDATE_RECEIVE | AMS Client has received updated attribution data.
AMS_C_EVT_ATTR_UPDATE_NTF_SET_SUCCESS | AMS Client has set focus attribute notification.
AMS_C_EVT_CPLT_ATTR_DISPLAY_SET_SUCCESS | AMS Client has set the attribute which needs to be completely displayed.
AMS_C_EVT_CPLT_ATTR_READ_RSP | AMS Client has received a read response.
AMS_C_EVT_WRITE_OP_ERR | Write error.

Definition at line 148 of file ams_c.h.