Home
last modified time | relevance | path

Searched refs:preset (Results 1 – 25 of 35) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/audio/
Dhas.c568 typedef uint8_t (*preset_func_t)(const struct has_preset *preset, void *user_data);
573 struct has_preset *preset, *tmp; in preset_foreach() local
575 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&preset_list, preset, tmp, node) { in preset_foreach()
576 if (preset->index < start_index) { in preset_foreach()
580 if (preset->index > end_index) { in preset_foreach()
584 if (func(preset, user_data) == BT_HAS_PRESET_ITER_STOP) { in preset_foreach()
590 static uint8_t preset_found(const struct has_preset *preset, void *user_data) in preset_found() argument
594 *found = preset; in preset_found()
599 static void preset_insert(struct has_preset *preset) in preset_insert() argument
604 if (tmp->index > preset->index) { in preset_insert()
[all …]
DKconfig.has37 bool "Allow to set preset name on runtime"
39 Enabling this option allows for runtime configuration of preset name.
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/
Dtest_common.c45 struct bt_bap_ep *ep, struct bt_bap_lc3_preset *preset, in test_unicast_set_state() argument
59 zassert_not_null(preset); in test_unicast_set_state()
63 bap_stream->qos = &preset->qos; in test_unicast_set_state()
64 bap_stream->codec_cfg = &preset->codec_cfg; in test_unicast_set_state()
Dtest_unicast_start.c38 struct bt_bap_lc3_preset preset; member
44 fixture->preset = (struct bt_bap_lc3_preset)BT_BAP_LC3_UNICAST_PRESET_16_2_1( in cap_initiator_test_unicast_start_fixture_init()
120 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
183 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
207 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
233 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
259 stream_params[i].codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
283 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
329 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
352 stream_param.codec_cfg = &fixture->preset.codec_cfg; in ZTEST_F()
[all …]
Dtest_unicast_stop.c39 struct bt_bap_lc3_preset preset; member
45 fixture->preset = (struct bt_bap_lc3_preset)BT_BAP_LC3_UNICAST_PRESET_16_2_1( in cap_initiator_test_unicast_stop_fixture_init()
125 &fixture->eps[i], &fixture->preset, in ZTEST_F()
160 &fixture->eps[i], &fixture->preset, in ZTEST_F()
194 &fixture->eps[i], &fixture->preset, in ZTEST_F()
228 &fixture->eps[i], &fixture->preset, in ZTEST_F()
263 &fixture->eps[i], &fixture->preset, in ZTEST_F()
298 &fixture->eps[i], &fixture->preset, in ZTEST_F()
332 &fixture->eps[i], &fixture->preset, in ZTEST_F()
366 &fixture->eps[i], &fixture->preset, in ZTEST_F()
[all …]
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/
DKconfig12 bool "BAP_LC3_BROADCAST_PRESET_16_2_1 preset"
14 Using the BAP_LC3_BROADCAST_PRESET_16_2_1 preset.
17 bool "BAP_LC3_BROADCAST_PRESET_24_2_1 preset"
19 Using the BAP_LC3_BROADCAST_PRESET_24_2_1 preset.
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap.rst21 create_broadcast : [preset <preset_name>] [enc <broadcast_code>]
34 [preset <preset_name>]
47 preset : <sink, source, broadcast> [preset]
372 Select preset
375 The :code:`preset` command can be used to either print the default preset
381 uart:~$ bap preset
382 preset - <sink, source, broadcast> [preset]
401 uart:~$ bap preset sink
416 uart:~$ bap preset sink 32_2_1
432 Configure preset
[all …]
Dgmap.rst66 uart:~$ bap preset sink 32_2_gr
67 uart:~$ bap preset source 32_2_gs
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/include/
Dtest_common.h20 struct bt_bap_ep *ep, struct bt_bap_lc3_preset *preset,
/Zephyr-latest/tests/bluetooth/audio/codec/src/
Dmain.c146 const struct bt_bap_lc3_preset preset = in ZTEST() local
151 ret = bt_audio_codec_cfg_get_freq(&preset.codec_cfg); in ZTEST()
157 struct bt_bap_lc3_preset preset = BT_BAP_LC3_UNICAST_PRESET_16_2_1( in ZTEST() local
165 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, false); in ZTEST()
168 ret = bt_audio_codec_cfg_set_frame_blocks_per_sdu(&preset.codec_cfg, frame_blocks); in ZTEST()
171 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, false); in ZTEST()
177 struct bt_bap_lc3_preset preset = BT_BAP_LC3_UNICAST_PRESET_16_2_1( in ZTEST() local
181 ret = bt_audio_codec_cfg_get_freq(&preset.codec_cfg); in ZTEST()
184 ret = bt_audio_codec_cfg_set_freq(&preset.codec_cfg, BT_AUDIO_CODEC_CFG_FREQ_32KHZ); in ZTEST()
187 ret = bt_audio_codec_cfg_get_freq(&preset.codec_cfg); in ZTEST()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.c483 struct bmc150_magn_preset preset; in bmc150_magn_init_chip() local
505 preset = bmc150_magn_presets_table[BMC150_MAGN_DEFAULT_PRESET]; in bmc150_magn_init_chip()
506 if (bmc150_magn_set_odr(dev, preset.odr) < 0) { in bmc150_magn_init_chip()
508 preset.odr); in bmc150_magn_init_chip()
514 BMC150_MAGN_REPXY_TO_REGVAL(preset.rep_xy)) in bmc150_magn_init_chip()
517 preset.rep_xy); in bmc150_magn_init_chip()
523 BMC150_MAGN_REPZ_TO_REGVAL(preset.rep_z)) < 0) { in bmc150_magn_init_chip()
525 preset.rep_z); in bmc150_magn_init_chip()
DKconfig19 prompt "Default preset"
22 Specify the default preset (x/y oversampling, z oversampling, sampling
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_common.c98 memcpy(&stream->qos, &named_preset->preset.qos, sizeof(stream->qos)); in copy_unicast_stream_preset()
99 memcpy(&stream->codec_cfg, &named_preset->preset.codec_cfg, sizeof(stream->codec_cfg)); in copy_unicast_stream_preset()
Dbap_common.h54 struct bt_bap_lc3_preset preset; member
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c553 struct bmm150_preset preset; in bmm150_init_chip() local
573 preset = bmm150_presets_table[BMM150_DEFAULT_PRESET]; in bmm150_init_chip()
574 if (bmm150_set_odr(dev, preset.odr) < 0) { in bmm150_init_chip()
576 preset.odr); in bmm150_init_chip()
580 if (bmm150_reg_write(dev, BMM150_REG_REP_XY, BMM150_REPXY_TO_REGVAL(preset.rep_xy)) in bmm150_init_chip()
583 preset.rep_xy); in bmm150_init_chip()
587 if (bmm150_reg_write(dev, BMM150_REG_REP_Z, BMM150_REPZ_TO_REGVAL(preset.rep_z)) < 0) { in bmm150_init_chip()
589 preset.rep_z); in bmm150_init_chip()
DKconfig16 prompt "Default preset"
19 Specify the default preset (x/y oversampling, z oversampling, sampling
/Zephyr-latest/tests/bsim/bluetooth/audio/test_scripts/
Dcap_broadcast_ac_13.sh20 -RealEncryption=1 -rs=23 -D=2 -argstest preset $1
Dcap_broadcast_ac_14.sh20 -RealEncryption=1 -rs=23 -D=2 -argstest preset $1
Dcap_broadcast_ac_12.sh20 -RealEncryption=1 -rs=23 -D=2 -argstest preset $1
/Zephyr-latest/drivers/ieee802154/
DKconfig.cc120080 prompt "TI CC1200 RF preset"
84 Set the RF preset you want to use.
/Zephyr-latest/dts/arm/nxp/
Dnxp_rt1020.dtsi51 /* GPIOS 4 and 6-9 are not preset on RT1020 */
Dnxp_rt1050.dtsi41 /* GPIOS 6-9 are not preset on RT1050 */
Dnxp_rt1015.dtsi56 /* GPIOS 4 and 6-9 are not preset on RT1015 */
Dnxp_rt1024.dtsi68 /* GPIOS 4 and 6-9 are not preset on RT1024 */
/Zephyr-latest/subsys/bluetooth/audio/shell/
Daudio.h87 struct bt_bap_lc3_preset preset; member
945 memcpy(&stream->qos, &named_preset->preset.qos, sizeof(stream->qos)); in copy_unicast_stream_preset()
946 memcpy(&stream->codec_cfg, &named_preset->preset.codec_cfg, sizeof(stream->codec_cfg)); in copy_unicast_stream_preset()
952 memcpy(&source->qos, &named_preset->preset.qos, sizeof(source->qos)); in copy_broadcast_source_preset()
953 memcpy(&source->codec_cfg, &named_preset->preset.codec_cfg, sizeof(source->codec_cfg)); in copy_broadcast_source_preset()

12