Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_cap_initiator_cb Struct Reference

Callback structure for CAP procedures. More...

#include <zephyr/bluetooth/audio/cap.h>

Data Fields

void(* unicast_discovery_complete )(struct bt_conn *conn, int err, const struct bt_csip_set_coordinator_set_member *member, const struct bt_csip_set_coordinator_csis_inst *csis_inst)
 Callback for bt_cap_initiator_unicast_discover().
void(* unicast_start_complete )(int err, struct bt_conn *conn)
 Callback for bt_cap_initiator_unicast_audio_start().
void(* unicast_update_complete )(int err, struct bt_conn *conn)
 Callback for bt_cap_initiator_unicast_audio_update().
void(* unicast_stop_complete )(int err, struct bt_conn *conn)
 Callback for bt_cap_initiator_unicast_audio_stop().

Detailed Description

Callback structure for CAP procedures.

Field Documentation

◆ unicast_discovery_complete

void(* bt_cap_initiator_cb::unicast_discovery_complete) (struct bt_conn *conn, int err, const struct bt_csip_set_coordinator_set_member *member, const struct bt_csip_set_coordinator_csis_inst *csis_inst)

Callback for bt_cap_initiator_unicast_discover().

Parameters
connThe connection pointer supplied to bt_cap_initiator_unicast_discover().
err0 if Common Audio Service was found else -ENODATA.
memberPointer to the set member. NULL if err != 0.
csis_instThe Coordinated Set Identification Service if Common Audio Service was found and includes a Coordinated Set Identification Service. NULL on error or if remote device does not include Coordinated Set Identification Service. NULL if err != 0.

◆ unicast_start_complete

void(* bt_cap_initiator_cb::unicast_start_complete) (int err, struct bt_conn *conn)

Callback for bt_cap_initiator_unicast_audio_start().

Parameters
err
  • 0 if success.
  • -ENOEXEC if subprocedure could not be performed.
  • -ENOMEM if subprocedure could not be performed due to lack of memory.
  • -EACCES if request rejected by peer.
  • -EBUSY if subprocedure could not be performed because unicast client is already busy.
  • -EINVAL if subprocedure contained invalid parameters.
  • -EBADMSG if unexpected state change happened.
  • -EALREADY if subprocedure could not be performed due to unexpected state.
  • -ECONNRESET if connection dropped during procedure.
  • -ENOTCONN if subprocedure could not be performed due to connection.
  • -ECANCELED if cancelled by bt_cap_initiator_unicast_audio_cancel().
connPointer to the connection where the error occurred. NULL if err is 0 or if cancelled by bt_cap_initiator_unicast_audio_cancel()

◆ unicast_stop_complete

void(* bt_cap_initiator_cb::unicast_stop_complete) (int err, struct bt_conn *conn)

Callback for bt_cap_initiator_unicast_audio_stop().

Parameters
err
  • 0 if success.
  • -ENOEXEC if subprocedure could not be performed.
  • -ENOMEM if subprocedure could not be performed due to lack of memory.
  • -EACCES if request rejected by peer.
  • -EBUSY if subprocedure could not be performed because unicast client is
  • already busy.
  • -EINVAL if subprocedure contained invalid parameters.
  • -EBADMSG if unexpected state change happened.
  • -EALREADY if subprocedure could not be performed due to unexpected state.
  • -ECONNRESET if connection dropped during procedure.
  • -ENOTCONN if subprocedure could not be performed due to connection.
  • -ECANCELED if cancelled by bt_cap_initiator_unicast_audio_cancel().
connPointer to the connection where the error occurred. NULL if err is 0 or if cancelled by bt_cap_initiator_unicast_audio_cancel()

◆ unicast_update_complete

void(* bt_cap_initiator_cb::unicast_update_complete) (int err, struct bt_conn *conn)

Callback for bt_cap_initiator_unicast_audio_update().

Parameters
err
  • 0 if success.
  • -ENOEXEC if subprocedure could not be performed.
  • -ENOMEM if subprocedure could not be performed due to lack of memory.
  • -EACCES if request rejected by peer.
  • -EBUSY if subprocedure could not be performed because unicast client is
  • already busy.
  • -EINVAL if subprocedure contained invalid parameters.
  • -EBADMSG if unexpected state change happened.
  • -ECONNRESET if connection dropped during procedure.
  • -ENOTCONN if subprocedure could not be performed due to connection.
  • -ECANCELED if cancelled by bt_cap_initiator_unicast_audio_cancel().
connPointer to the connection where the error occurred. NULL if err is 0 or if cancelled by bt_cap_initiator_unicast_audio_cancel()

The documentation for this struct was generated from the following file:
  • zephyr/bluetooth/audio/cap.h