Home
last modified time | relevance | path

Searched refs:volume_step (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dvcp_vol_rend_test.c813 static void test_set_step(uint8_t volume_step) in test_set_step() argument
827 err = bt_vcp_vol_rend_set_step(volume_step); in test_set_step()
870 static void test_vol_down(uint8_t volume_step) in test_vol_down() argument
872 const uint8_t expected_volume = g_volume > volume_step ? g_volume - volume_step : 0; in test_vol_down()
887 static void test_vol_up(uint8_t volume_step) in test_vol_up() argument
889 const uint8_t expected_volume = MIN((uint16_t)g_volume + volume_step, UINT8_MAX); in test_vol_up()
921 static void test_unmute_vol_down(uint8_t volume_step) in test_unmute_vol_down() argument
923 const uint8_t expected_volume = g_volume > volume_step ? g_volume - volume_step : 0; in test_unmute_vol_down()
939 static void test_unmute_vol_up(uint8_t volume_step) in test_unmute_vol_up() argument
941 const uint8_t expected_volume = MIN((uint16_t)g_volume + volume_step, UINT8_MAX); in test_unmute_vol_up()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dvcp_vol_rend.c47 ((uint8_t)MAX(0, (int)current_vol - vol_rend.volume_step))
49 ((uint8_t)MIN(UINT8_MAX, (int)current_vol + vol_rend.volume_step))
63 uint8_t volume_step; member
480 vol_rend.volume_step = param->step; in bt_vcp_vol_rend_register()
513 int bt_vcp_vol_rend_set_step(uint8_t volume_step) in bt_vcp_vol_rend_set_step() argument
515 if (volume_step > 0) { in bt_vcp_vol_rend_set_step()
516 vol_rend.volume_step = volume_step; in bt_vcp_vol_rend_set_step()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dvcp.h203 int bt_vcp_vol_rend_set_step(uint8_t volume_step);