Searched refs:volume_step (Results 1 – 3 of 3) sorted by relevance
813 static void test_set_step(uint8_t volume_step) in test_set_step() argument827 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() argument872 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() argument889 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() argument923 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() argument941 const uint8_t expected_volume = MIN((uint16_t)g_volume + volume_step, UINT8_MAX); in test_unmute_vol_up()[all …]
47 ((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; member480 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() argument515 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()
203 int bt_vcp_vol_rend_set_step(uint8_t volume_step);