Zephyr API 3.6.99
Loading...
Searching...
No Matches
Assigned numbers to string API

Assigned numbers to string API . More...

Functions

static char * bt_audio_context_bit_to_str (enum bt_audio_context context)
 Returns a string representation of a specific bt_audio_context bit.
 
static char * bt_audio_parental_rating_to_str (enum bt_audio_parental_rating parental_rating)
 Returns a string representation of a bt_audio_parental_rating value.
 
static char * bt_audio_active_state_to_str (enum bt_audio_active_state state)
 Returns a string representation of a bt_audio_active_state value.
 
static char * bt_audio_codec_cap_freq_bit_to_str (enum bt_audio_codec_cap_freq freq)
 Returns a string representation of a specific bt_audio_codec_cap_freq bit.
 
static char * bt_audio_codec_cap_frame_dur_bit_to_str (enum bt_audio_codec_cap_frame_dur frame_dur)
 Returns a string representation of a specific bt_audio_codec_cap_frame_dur bit.
 
static char * bt_audio_codec_cap_chan_count_bit_to_str (enum bt_audio_codec_cap_chan_count chan_count)
 Returns a string representation of a specific bt_audio_codec_cap_chan_count bit.
 
static char * bt_audio_location_bit_to_str (enum bt_audio_location location)
 Returns a string representation of a specific bt_audio_location bit.
 

Detailed Description

Assigned numbers to string API .

Functions to return string representation of Bluetooth Audio assigned number values.

Function Documentation

◆ bt_audio_active_state_to_str()

static char * bt_audio_active_state_to_str ( enum bt_audio_active_state state)
inlinestatic

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

Returns a string representation of a bt_audio_active_state value.

Parameters
stateThe active state value
Returns
String representation of the supplied active state value

◆ bt_audio_codec_cap_chan_count_bit_to_str()

static char * bt_audio_codec_cap_chan_count_bit_to_str ( enum bt_audio_codec_cap_chan_count chan_count)
inlinestatic

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

Returns a string representation of a specific bt_audio_codec_cap_chan_count bit.

If chan_count contains multiple bits, it will return "Unknown channel count"

Parameters
chan_countA single frame channel count bit
Returns
String representation of the supplied bit

◆ bt_audio_codec_cap_frame_dur_bit_to_str()

static char * bt_audio_codec_cap_frame_dur_bit_to_str ( enum bt_audio_codec_cap_frame_dur frame_dur)
inlinestatic

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

Returns a string representation of a specific bt_audio_codec_cap_frame_dur bit.

If frame_dur contains multiple bits, it will return "Unknown frame duration"

Parameters
frame_durA single frame duration bit
Returns
String representation of the supplied bit

◆ bt_audio_codec_cap_freq_bit_to_str()

static char * bt_audio_codec_cap_freq_bit_to_str ( enum bt_audio_codec_cap_freq freq)
inlinestatic

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

Returns a string representation of a specific bt_audio_codec_cap_freq bit.

If freq contains multiple bits, it will return "Unknown supported frequency"

Parameters
freqA single frequency bit
Returns
String representation of the supplied bit

◆ bt_audio_context_bit_to_str()

static char * bt_audio_context_bit_to_str ( enum bt_audio_context context)
inlinestatic

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

Returns a string representation of a specific bt_audio_context bit.

If context contains multiple bits, it will return "Unknown context"

Parameters
contextA single context bit
Returns
String representation of the supplied bit

◆ bt_audio_location_bit_to_str()

static char * bt_audio_location_bit_to_str ( enum bt_audio_location location)
inlinestatic

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

Returns a string representation of a specific bt_audio_location bit.

If location contains multiple bits, it will return "Unknown location"

Parameters
locationA single location bit
Returns
String representation of the supplied bit

◆ bt_audio_parental_rating_to_str()

static char * bt_audio_parental_rating_to_str ( enum bt_audio_parental_rating parental_rating)
inlinestatic

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

Returns a string representation of a bt_audio_parental_rating value.

Parameters
parental_ratingThe parental rating value
Returns
String representation of the supplied parental rating value