PebbleOS v4.47.0-505-g4bbc630fa
Loading...
Searching...
No Matches
pbl_bt_ams_client_cb Struct Reference

What a client reports; any may be null. More...

#include <ams.h>

Data Fields

void(* discovered )(struct pbl_bt_ams_client *client, int status)
 The search for the service ended.
 
void(* subscribed )(struct pbl_bt_ams_client *client, enum pbl_bt_ams_source source, bool enable, int status)
 A pbl_bt_ams_client_subscribe() was answered.
 
void(* commands )(struct pbl_bt_ams_client *client, const uint8_t *commands, uint8_t num_commands)
 The commands the media player takes changed.
 
void(* update )(struct pbl_bt_ams_client *client, const struct pbl_bt_ams_update *update)
 The device told the value of an attribute that was registered for.
 
void(* command_sent )(struct pbl_bt_ams_client *client, int status)
 A pbl_bt_ams_client_send_command() was answered.
 
void(* registered )(struct pbl_bt_ams_client *client, int status)
 A pbl_bt_ams_client_register() was answered.
 
void(* attr_read )(struct pbl_bt_ams_client *client, int status, enum pbl_bt_ams_entity entity, uint8_t attr, const uint8_t *value, uint16_t len)
 A pbl_bt_ams_client_read_attr() ended.
 

Detailed Description

What a client reports; any may be null.

Field Documentation

◆ attr_read

void(* pbl_bt_ams_client_cb::attr_read) (struct pbl_bt_ams_client *client, int status, enum pbl_bt_ams_entity entity, uint8_t attr, const uint8_t *value, uint16_t len)

A pbl_bt_ams_client_read_attr() ended.

Parameters
status0, PBL_BT_AMS_ERR_ABSENT_ATTRIBUTE if the attribute is empty, or why not otherwise.
entityThe entity.
attrIts attribute.
valueIf status is 0, the whole value: UTF-8, not terminated, valid during the call.
lenIts length.

◆ command_sent

void(* pbl_bt_ams_client_cb::command_sent) (struct pbl_bt_ams_client *client, int status)

A pbl_bt_ams_client_send_command() was answered.

Parameters
status0 if the device took the command, or why not.

◆ commands

void(* pbl_bt_ams_client_cb::commands) (struct pbl_bt_ams_client *client, const uint8_t *commands, uint8_t num_commands)

The commands the media player takes changed.

Parameters
commandsThe commands it takes now, each an enum pbl_bt_ams_command; valid during the call.
num_commandsTheir number.

◆ discovered

void(* pbl_bt_ams_client_cb::discovered) (struct pbl_bt_ams_client *client, int status)

The search for the service ended.

Parameters
status0 if the device has it, -ENOENT if not, or what failed.

◆ registered

void(* pbl_bt_ams_client_cb::registered) (struct pbl_bt_ams_client *client, int status)

A pbl_bt_ams_client_register() was answered.

Parameters
status0 if the device took the registration, or why not.

◆ subscribed

void(* pbl_bt_ams_client_cb::subscribed) (struct pbl_bt_ams_client *client, enum pbl_bt_ams_source source, bool enable, int status)

A pbl_bt_ams_client_subscribe() was answered.

Parameters
sourceThe source.
enableAs asked for.
status0, or why not.

◆ update

void(* pbl_bt_ams_client_cb::update) (struct pbl_bt_ams_client *client, const struct pbl_bt_ams_update *update)

The device told the value of an attribute that was registered for.

Parameters
updateThe attribute and its value, valid during the call.

The documentation for this struct was generated from the following file: