Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_has_preset_ops Struct Reference

Preset operations structure. More...

#include <has.h>

Data Fields

int(* select )(uint8_t index, bool sync)
 Preset select callback.
 
void(* name_changed )(uint8_t index, const char *name)
 Preset name changed callback.
 

Detailed Description

Preset operations structure.

Field Documentation

◆ name_changed

void(* bt_has_preset_ops::name_changed) (uint8_t index, const char *name)

Preset name changed callback.

This callback is called when the name of the preset identified by index has changed.

Parameters
indexPreset index that name has been changed.
namePreset current name.

◆ select

int(* bt_has_preset_ops::select) (uint8_t index, bool sync)

Preset select callback.

This callback is called when the client requests to select preset identified by index.

Parameters
indexPreset index requested to activate.
syncWhether the server must relay this change to the other member of the Binaural Hearing Aid Set.
Returns
0 in case of success or negative value in case of error.
-EBUSY if operation cannot be performed at the time.
-EINPROGRESS in case where user has to confirm once the requested preset becomes active by calling bt_has_preset_active_set.

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