Apple Media Service Client API. More...
Go to the source code of this file.
Classes | |
struct | ams_c_ett_attr_id_t |
Structure that stores the attribute to be concerned or to display completely. More... | |
struct | ams_c_cmd_list_t |
Structure that stores new command list. More... | |
struct | ams_c_attr_info_t |
Structure that stores attribute information. More... | |
struct | ams_c_cplt_attr_data_t |
Complete attribution's value . More... | |
struct | ams_c_handles_t |
Handles on the connected peer device needed to interact with it. More... | |
struct | ams_c_evt_t |
Apple Media Service Client event. More... | |
Macros | |
#define | AMS_C_CONNECTION_MAX 10 |
Maximum number of HRS Client connections. More... | |
#define | AMS_C_ATTR_COUNT_MAX 256 |
The buffer size of command. More... | |
#define | AMS_C_TRUNCATED_FLAG (0x01<<0) |
Bit of truncated. More... | |
#define | AMS_SRVC_UUID |
UUID of Apple media service. More... | |
#define | AMS_CMD_UUID |
UUID of remote command. More... | |
#define | AMS_ATTR_UPDATE_UUID |
UUID of attribute update. More... | |
#define | AMS_ATTR_DISPLAY_UUID |
UUID of attribute display. More... | |
Typedefs | |
typedef void(* | ams_c_evt_handler_t) (ams_c_evt_t *p_evt) |
Apple Media Service Client event handler type. More... | |
Functions | |
sdk_err_t | ams_c_client_init (ams_c_evt_handler_t evt_handler) |
Register AMS Client event handler. More... | |
sdk_err_t | ams_c_disc_srvc_start (uint8_t conn_idx) |
Discover Apple Media Service on peer. More... | |
sdk_err_t | ams_c_cmd_notify_set (uint8_t conn_idx, bool is_enable) |
Enable or disable peer new command list notify. More... | |
sdk_err_t | ams_c_attr_update_notify_set (uint8_t conn_idx, bool is_enable) |
Enable or disable peer updated attribute notify. More... | |
sdk_err_t | ams_c_cplt_attr_read (uint8_t conn_idx) |
Read complete value of updated attrbute . More... | |
sdk_err_t | ams_c_cmd_send (uint8_t conn_idx, uint8_t cmd_id) |
Send command to peer device. More... | |
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. More... | |
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. More... | |
bool | ams_c_cmd_enable_check (ams_c_cmd_id_t cmd_id) |
Check if the command is available. More... | |
Apple Media Service Client API.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file ams_c.h.