Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_vcp_vol_rend_cb Struct Reference

#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.
 

Field Documentation

◆ flags

void(* bt_vcp_vol_rend_cb::flags) (int err, uint8_t flags)

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.

Parameters
errError value. 0 on success, GATT error on positive value or errno on negative value.
flagsThe flags of the Volume Control Service server.

◆ state

void(* bt_vcp_vol_rend_cb::state) (int err, uint8_t volume, uint8_t mute)

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.

Parameters
errError value. 0 on success, GATT error on positive value or errno on negative value.
volumeThe volume of the Volume Control Service server.
muteThe mute setting of the Volume Control Service server.

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