Enumerations
Enumerations
BLE Services » Apple Media Service Client (AMS_C)

## 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 | { BLE_GATT_COMMON_EVT_MTU_EXCHANGE = BLE_GATT_COMMON_EVT_BASE, BLE_GATT_COMMON_EVT_PRF_REGISTER, BLE_GATT_COMMON_EVT_MAX, ISO_GPIO_MASK_0 = 0x1, ISO_GPIO_MASK_1 = 0x2, ISO_GPIO_MASK_2 = 0x4, ISO_GPIO_MASK_3 = 0x8, ISO_GPIO_MASK_4 = 0x10, ISO_GPIO_MASK_5 = 0x20, ISO_GPIO_MASK_6 = 0x40, ISO_GPIO_MASK_7 = 0x80, 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, EXFLASH_CONFIG_CACHE_MODE = 0x00, EXFLASH_CONFIG_READ_CMD = 0x01, EXFLASH_CONFIG_BAUD_RATE = 0x02, EXFLASH_CONFIG_CLOCK_MODE = 0x03, EXFLASH_CONFIG_CACHE_FLUSH = 0x04, EXFLASH_CONFIG_PAGE_TYPE = 0x05, DFU_CACHE_TYPE_CALL_STACK = 0x00, DFU_CACHE_TYPE_REG, 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_REFUSE, TRC_PWR_BLE_TIMER_PASS, TRC_PWR_RTC_TIMER_REFUSE, TRC_PWR_RTC_TIMER_PASS, TRC_PWR_RTC1_TIMER_REFUSE, TRC_PWR_RTC1_TIMER_PASS, TRC_PWR_WDT_TIMER_REFUSE, TRC_PWR_WDT_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
BLE_GATT_COMMON_EVT_MTU_EXCHANGE | MTU Exchange event.
BLE_GATT_COMMON_EVT_PRF_REGISTER | Service Register event.
BLE_GATT_COMMON_EVT_MAX |
ISO_GPIO_MASK_0 |
ISO_GPIO_MASK_1 |
ISO_GPIO_MASK_2 |
ISO_GPIO_MASK_3 |
ISO_GPIO_MASK_4 |
ISO_GPIO_MASK_5 |
ISO_GPIO_MASK_6 |
ISO_GPIO_MASK_7 |
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.
EXFLASH_CONFIG_CACHE_MODE |
EXFLASH_CONFIG_READ_CMD |
EXFLASH_CONFIG_BAUD_RATE |
EXFLASH_CONFIG_CLOCK_MODE |
EXFLASH_CONFIG_CACHE_FLUSH |
EXFLASH_CONFIG_PAGE_TYPE |
DFU_CACHE_TYPE_CALL_STACK | call stack buffer.
DFU_CACHE_TYPE_REG | register buffer.
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_REFUSE | BLE timer refuse.
TRC_PWR_BLE_TIMER_PASS | BLE timer pass.
TRC_PWR_RTC_TIMER_REFUSE | RTC timer refuse.
TRC_PWR_RTC_TIMER_PASS | RTC timer pass.
TRC_PWR_RTC1_TIMER_REFUSE | RTC timer refuse.
TRC_PWR_RTC1_TIMER_PASS | RTC timer pass.
TRC_PWR_WDT_TIMER_REFUSE | AON WDT timer refuse.
TRC_PWR_WDT_TIMER_PASS | AON WDT 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.