Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Struct to hold the Volume Renderer callbacks. More...
#include <vcp.h>
Data Fields | |
void(* | state )(int err, uint8_t volume, uint8_t mute) |
Callback function for Volume Control Service volume state. | |
void(* | flags )(int err, uint8_t flags) |
Callback function for Volume Control Service flags. | |
Struct to hold the Volume Renderer callbacks.
These can be registered for usage with bt_vcp_vol_rend_register().
Callback function for Volume Control Service flags.
Called when the value is locally read as the server. Called when the value is remotely read as the client. Called if the value is changed by either the server or client.
err | Error value. 0 on success, GATT error on positive value or errno on negative value. |
flags | The flags of the Volume Control Service server. |
Callback function for Volume Control Service volume state.
Called when the value is locally read with bt_vcp_vol_rend_get_state(), or if the state is changed by either the Volume Renderer or a remote Volume Controller.
err | Error value. 0 on success, GATT error on positive value or errno on negative value. |
volume | The volume of the Volume Control Service server. |
mute | The mute setting of the Volume Control Service server. |