nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ srv_store_codec_cap_set()

int srv_store_codec_cap_set ( struct bt_conn const *const conn,
enum bt_audio_dir dir,
struct bt_audio_codec_cap const *const codec )

#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>

Store the codec capabilities for a given server based on conn.

Note
srv_store_lock() must be called before accessing this function.
Parameters
[in]connPointer to the connection.
[in]dirDirection of the capability.
[out]codecCodec capability to store.
Return values
0Success.
-EINVALIllegal argument(s)
-ENOMEMOut of memory.
-ENOTCONNServer conn is NULL.