Lines Matching +full:max +full:- +full:msgs
4 * SPDX-License-Identifier: Apache-2.0
82 uint8_t msgs; member
106 return -1; in model1_update()
109 model->pub->msg->data[1]++; in model1_update()
110 LOG_DBG("New pub: n: %d t: %d", model->pub->msg->data[1], k_uptime_get_32()); in model1_update()
249 * m5 m3------->mne3 mne5
266 ASSERT_OK(bt_mesh_model_extend(model, model - 2)); in model3_init()
267 ASSERT_OK(bt_mesh_model_extend(model, model - 1)); in model3_init()
269 if (model->rt->elem_idx == 1) { in model3_init()
278 ASSERT_OK(bt_mesh_model_extend(model, model - 1)); in model4_init()
285 ASSERT_OK(bt_mesh_model_extend(model, model - 4)); in model5_init()
294 LOG_DBG("msg rx model id: %u", model->id); in test_msg_handler()
295 k_poll_signal_raise(&model_pub_signal, model->id); in test_msg_handler()
304 FAIL("Model %#4x on neighbor element received msg", model->id); in test_msg_ne_handler()
455 events[0].signal->signaled = 0; in test_sub_ext_model()
525 bt_mesh_model_msg_init(model->pub->msg, TEST_MESSAGE_OP_F); in msgf_publish()
526 net_buf_simple_add_u8(model->pub->msg, 1); in msgf_publish()
545 int32_t pub_delta = time_delta - interval; in pub_delayable_check()
553 * longer than 500 - 20 + 10 (margin): in pub_delayable_check()
555 * |---|-------|--------|-------|----> in pub_delayable_check()
598 * Lower boundary: tx2 - tx1 + interval in recv_delayable_check()
599 * |---|-------|---------------|-------|-----> in recv_delayable_check()
602 * Upper boundary: tx2 - tx1 + interval in recv_delayable_check()
603 * |---|-------|--------|-----------|-----> in recv_delayable_check()
606 int32_t lower_boundary = 20 - upper_delay + interval; in recv_delayable_check()
607 int32_t upper_boundary = upper_delay - 20 + interval; in recv_delayable_check()
611 ASSERT_IN_RANGE(time_delta, lower_boundary - RX_JITTER_MAX, in recv_delayable_check()
632 int32_t pub_delta = llabs(time_delta - interval); in pub_jitter_check()
634 jitter = MAX(pub_delta, jitter); in pub_jitter_check()
668 int32_t pub_delta = llabs(time_delta - interval); in recv_jitter_check()
670 jitter = MAX(pub_delta, jitter); in recv_jitter_check()
694 model->pub->delayable = delayable; in tx_period()
699 model->pub->fast_period = test_period[i].div > 0; in tx_period()
700 model->pub->period_div = test_period[i].div; in tx_period()
795 model->pub->retr_update = true; in tx_transmit()
796 model->pub->delayable = delayable; in tx_transmit()
882 model->pub->retr_update = true; in test_tx_cancel()
892 for (size_t j = 0; j < test_cancel[i].msgs - 1; j++) { in test_tx_cancel()
917 int32_t jitter = llabs(time_delta - test_cancel[i].duration); in test_tx_cancel()
954 for (size_t j = 0; j < test_cancel[i].msgs; j++) { in test_rx_cancel()
965 int32_t jitter = llabs(time_delta - test_cancel[i].duration); in test_rx_cancel()