Lines Matching full:interval

52 /* We use a single seq_num for all the BIS as they share the same SDU interval */
59 .interval = DEFAULT_BIS_INTERVAL_US, /* in microseconds */
162 uint64_t interval; in parse_interval_arg() local
164 printk("Set interval (us) (current %u, default %u)\n", in parse_interval_arg()
165 big_create_param.interval, DEFAULT_BIS_INTERVAL_US); in parse_interval_arg()
172 interval = strtoul(buffer, NULL, 0); in parse_interval_arg()
173 if (interval < BT_ISO_SDU_INTERVAL_MIN || interval > BT_ISO_SDU_INTERVAL_MAX) { in parse_interval_arg()
174 printk("Invalid interval %llu", interval); in parse_interval_arg()
178 return (int)interval; in parse_interval_arg()
308 printk("Set ISO interval (current %u, default %u)\n", in parse_iso_interval_arg()
318 printk("Invalid ISO interval %llu", iso_interval); in parse_iso_interval_arg()
473 int interval; in parse_args() local
496 interval = parse_interval_arg(); in parse_args()
497 if (interval < 0) { in parse_args()
566 big_create_param.interval = interval; in parse_args()
589 * Use the ISO interval minus a few microseconds to keep the buffer in iso_timer_timeout()
594 k_work_reschedule(&iso_send_work, K_USEC(big_create_param.interval - 100)); in iso_timer_timeout()
623 /* Default to 6 times the SDU interval and then reduce until we reach a reasonable maximum in calc_adv_interval()
624 * advertising interval (BT_GAP_PER_ADV_SLOW_INT_MAX) in calc_adv_interval()
630 /* Convert from microseconds to advertising interval units (0.625ms)*/ in calc_adv_interval()
631 const uint32_t interval = BT_GAP_US_TO_ADV_INTERVAL(sdu_interval_us); in calc_adv_interval() local
632 uint32_t adv_interval = interval * 6U; in calc_adv_interval()
634 /* Ensure that the adv interval is between BT_GAP_PER_ADV_FAST_INT_MIN_1 and in calc_adv_interval()
638 adv_interval += interval; in calc_adv_interval()
642 adv_interval -= interval; in calc_adv_interval()
647 BT_GAP_ADV_INTERVAL_TO_US(interval) != sdu_interval_us) { in calc_adv_interval()
648 LOG_INF("Advertising interval of 0x04%x is not a multiple of the advertising " in calc_adv_interval()
649 "interval unit (0.625 ms) and may be subpar. Suggest to adjust SDU " in calc_adv_interval()
650 "interval %u to be a multiple of 0.625 ms", in calc_adv_interval()
659 /* Some controllers work best when Extended Advertising interval is a multiple in create_big()
660 * of the ISO Interval minus 10 ms (max. advertising random delay). This is in create_big()
661 * required to place the AUX_ADV_IND PDUs in a non-overlapping interval with the in create_big()
664 const uint16_t adv_interval = calc_adv_interval(big_create_param.interval); in create_big()
788 printk("Change settings (y/N)? (Current settings: rtn=%u, interval=%u, " in test_run_broadcaster()
790 "bis_count=%u)\n", iso_tx_qos.rtn, big_create_param.interval, in test_run_broadcaster()
803 printk("New settings: rtn=%u, interval=%u, latency=%u, " in test_run_broadcaster()
805 iso_tx_qos.rtn, big_create_param.interval, in test_run_broadcaster()