Zephyr Project API  3.3.0
A Scalable Open Source RTOS
mcc.h File Reference

Go to the source code of this file.

Data Structures

struct  bt_mcc_cb
 Media control client callbacks. More...
 

Typedefs

typedef void(* bt_mcc_discover_mcs_cb) (struct bt_conn *conn, int err)
 Callback function for bt_mcc_discover_mcs() More...
 
typedef void(* bt_mcc_read_player_name_cb) (struct bt_conn *conn, int err, const char *name)
 Callback function for bt_mcc_read_player_name() More...
 
typedef void(* bt_mcc_read_icon_url_cb) (struct bt_conn *conn, int err, const char *icon_url)
 Callback function for bt_mcc_read_icon_url() More...
 
typedef void(* bt_mcc_track_changed_ntf_cb) (struct bt_conn *conn, int err)
 Callback function for track changed notifications. More...
 
typedef void(* bt_mcc_read_track_title_cb) (struct bt_conn *conn, int err, const char *title)
 Callback function for bt_mcc_read_track_title() More...
 
typedef void(* bt_mcc_read_track_duration_cb) (struct bt_conn *conn, int err, int32_t dur)
 Callback function for bt_mcc_read_track_duration() More...
 
typedef void(* bt_mcc_read_track_position_cb) (struct bt_conn *conn, int err, int32_t pos)
 Callback function for bt_mcc_read_track_position() More...
 
typedef void(* bt_mcc_set_track_position_cb) (struct bt_conn *conn, int err, int32_t pos)
 Callback function for bt_mcc_set_track_position() More...
 
typedef void(* bt_mcc_read_playback_speed_cb) (struct bt_conn *conn, int err, int8_t speed)
 Callback function for bt_mcc_read_playback_speed() More...
 
typedef void(* bt_mcc_set_playback_speed_cb) (struct bt_conn *conn, int err, int8_t speed)
 Callback function for bt_mcc_set_playback_speed() More...
 
typedef void(* bt_mcc_read_seeking_speed_cb) (struct bt_conn *conn, int err, int8_t speed)
 Callback function for bt_mcc_read_seeking_speed() More...
 
typedef void(* bt_mcc_read_playing_order_cb) (struct bt_conn *conn, int err, uint8_t order)
 Callback function for bt_mcc_read_playing_order() More...
 
typedef void(* bt_mcc_set_playing_order_cb) (struct bt_conn *conn, int err, uint8_t order)
 Callback function for bt_mcc_set_playing_order() More...
 
typedef void(* bt_mcc_read_playing_orders_supported_cb) (struct bt_conn *conn, int err, uint16_t orders)
 Callback function for bt_mcc_read_playing_orders_supported() More...
 
typedef void(* bt_mcc_read_media_state_cb) (struct bt_conn *conn, int err, uint8_t state)
 Callback function for bt_mcc_read_media_state() More...
 
typedef void(* bt_mcc_send_cmd_cb) (struct bt_conn *conn, int err, const struct mpl_cmd *cmd)
 Callback function for bt_mcc_send_cmd() More...
 
typedef void(* bt_mcc_cmd_ntf_cb) (struct bt_conn *conn, int err, const struct mpl_cmd_ntf *ntf)
 Callback function for command notifications. More...
 
typedef void(* bt_mcc_read_opcodes_supported_cb) (struct bt_conn *conn, int err, uint32_t opcodes)
 Callback function for bt_mcc_read_opcodes_supported() More...
 
typedef void(* bt_mcc_read_content_control_id_cb) (struct bt_conn *conn, int err, uint8_t ccid)
 Callback function for bt_mcc_read_content_control_id() More...
 

Functions

int bt_mcc_init (struct bt_mcc_cb *cb)
 Initialize Media Control Client. More...
 
int bt_mcc_discover_mcs (struct bt_conn *conn, bool subscribe)
 Discover Media Control Service. More...
 
int bt_mcc_read_player_name (struct bt_conn *conn)
 Read Media Player Name. More...
 
int bt_mcc_read_icon_url (struct bt_conn *conn)
 Read Icon Object URL. More...
 
int bt_mcc_read_track_title (struct bt_conn *conn)
 Read Track Title. More...
 
int bt_mcc_read_track_duration (struct bt_conn *conn)
 Read Track Duration. More...
 
int bt_mcc_read_track_position (struct bt_conn *conn)
 Read Track Position. More...
 
int bt_mcc_set_track_position (struct bt_conn *conn, int32_t pos)
 Set Track position. More...
 
int bt_mcc_read_playback_speed (struct bt_conn *conn)
 Read Playback speed. More...
 
int bt_mcc_set_playback_speed (struct bt_conn *conn, int8_t speed)
 Set Playback Speed. More...
 
int bt_mcc_read_seeking_speed (struct bt_conn *conn)
 Read Seeking speed. More...
 
int bt_mcc_read_playing_order (struct bt_conn *conn)
 Read Playing Order. More...
 
int bt_mcc_set_playing_order (struct bt_conn *conn, uint8_t order)
 Set Playing Order. More...
 
int bt_mcc_read_playing_orders_supported (struct bt_conn *conn)
 Read Playing Orders Supported. More...
 
int bt_mcc_read_media_state (struct bt_conn *conn)
 Read Media State. More...
 
int bt_mcc_send_cmd (struct bt_conn *conn, const struct mpl_cmd *cmd)
 Send a command. More...
 
int bt_mcc_read_opcodes_supported (struct bt_conn *conn)
 Read Opcodes Supported. More...
 
int bt_mcc_read_content_control_id (struct bt_conn *conn)
 Read Content Control ID. More...