Go to the documentation of this file.
70 #include "custom_config.h"
76 #define AMS_C_CONNECTION_MAX 10
77 #define AMS_C_ATTR_COUNT_MAX 256
78 #define AMS_C_TRUNCATED_FLAG (0x01<<0)
79 #define AMS_SRVC_UUID 0xdc, 0xf8, 0x55, 0xad, 0x02, 0xc5, 0xf4, 0x8e,\
80 0x3a, 0x43, 0x36, 0x0f, 0x2b, 0x50, 0xd3, 0x89
81 #define AMS_CMD_UUID 0xc2, 0x51, 0xca, 0xf7, 0x56, 0x0e, 0xdf, 0xb8,\
82 0x8a, 0x4a, 0xb1, 0x57, 0xd8, 0x81, 0x3c, 0x9b
83 #define AMS_ATTR_UPDATE_UUID 0x02, 0xC1, 0x96, 0xBA, 0x92, 0xBB, 0x0C, 0x9A,\
84 0x1F, 0x41, 0x8D, 0x80, 0xCE, 0xAB, 0x7C, 0x2F
85 #define AMS_ATTR_DISPLAY_UUID 0xd7, 0xd5, 0xbb, 0x70, 0xa8, 0xa3, 0xab, 0xa6,\
86 0xd8, 0x46, 0xab, 0x23, 0x8c, 0xf3, 0xb2, 0xc6
sdk_err_t ams_c_cmd_send(uint8_t conn_idx, uint8_t cmd_id)
Send command to peer device.
@ AMS_C_EVT_DISCOVERY_FAIL
bool ams_c_cmd_enable_check(ams_c_cmd_id_t cmd_id)
Check if the command is available.
Structure that stores new command list.
ams_c_attr_info_t attr_info
Handles on the connected peer device needed to interact with it.
@ AMS_CMD_ID_BOOK_MARK_TRACK
sdk_err_t ams_c_disc_srvc_start(uint8_t conn_idx)
Discover Apple Media Service on peer.
ams_c_evt_type_t
Apple Media Service Client Event type.
@ AMS_CMD_ID_SKIP_FORWARD
uint16_t ams_srvc_start_handle
ams_c_cplt_attr_data_t cplt_attr_data
@ AMS_CMD_ID_SKIP_BACKWARD
@ AMS_TRACK_ATTR_ID_TITTLE
uint16_t ams_attr_update_handle
@ AMS_QUEUE_ATTR_ID_INDEX
@ AMS_TRACK_ATTR_ID_DURATION
sdk_err_t ams_c_attr_update_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer updated attribute notify.
@ AMS_QUEUE_ATTR_ID_SHUFFLE_MODE
sdk_err_t ams_c_attr_focus_set(uint8_t conn_idx, const ams_c_ett_attr_id_t *p_ett_attr_id)
Set concerned attribute.
Complete attribution's value .
@ AMS_PLAYER_ATTR_ID_NAME
@ AMS_C_EVT_ATTR_UPDATE_NTF_SET_SUCCESS
ams_c_cmd_id_t
Apple Media Service Command ID.
@ AMS_C_EVT_CMD_UPDATE_RECEIVE
sdk_err_t ams_c_cplt_attr_read(uint8_t conn_idx)
Read complete value of updated attrbute .
uint16_t ams_attr_update_cccd_handle
@ AMS_QUEUE_ATTR_ID_REPEAT_MODE
ams_c_evt_type_t evt_type
Profile/Service Common Types.
uint16_t ams_srvc_end_handle
uint16_t sdk_err_t
SDK API result type.
#define AMS_C_ATTR_COUNT_MAX
@ AMS_C_EVT_CPLT_ATTR_DISPLAY_SET_SUCCESS
Structure that stores attribute information.
@ AMS_CMD_ID_TOGGLE_PLAY_PAUSE
void(* ams_c_evt_handler_t)(ams_c_evt_t *p_evt)
Apple Media Service Client event handler type.
sdk_err_t ams_c_attr_display_set(uint8_t conn_idx, const ams_c_attr_info_t *p_attr_info)
Set the attribute that needs to be completely displayed.
sdk_err_t ams_c_cmd_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer new command list notify.
@ AMS_CMD_ID_ADVANCE_REPEAT_MODE
@ AMS_CMD_ID_ADVANCE_SHUFFLE_MODE
@ AMS_C_EVT_CMD_SEND_SUCCESS
ams_c_cmd_list_t cmd_list
Apple Media Service Client event.
sdk_err_t ams_c_client_init(ams_c_evt_handler_t evt_handler)
Register AMS Client event handler.
@ AMS_C_EVT_CMD_UPDATE_NTF_SET_SUCCESS
@ AMS_C_EVT_ATTR_FOCUS_SET_SUCCESS
Structure that stores the attribute to be concerned or to display completely.
@ AMS_C_EVT_DISCOVERY_CPLT
@ AMS_PLAYER_ATTR_ID_PLAYBACK_INFO
@ AMS_C_EVT_CPLT_ATTR_READ_RSP
uint16_t ams_cmd_cccd_handle
@ AMS_CMD_ID_DISLIKE_TRACK
@ AMS_CMD_ID_PREVIOUS_TRACK
@ AMS_QUEUE_ATTR_ID_COUNT
@ AMS_TRACK_ATTR_ID_ALBUM
ams_c_ett_id_t
Apple Media Service entities index.
@ AMS_TRACK_ATTR_ID_ARTIST
uint16_t ams_attr_display_handle
@ AMS_C_EVT_ATTR_UPDATE_RECEIVE
@ AMS_PLAYER_ATTR_ID_VOLUME