Home
last modified time | relevance | path

Searched full:duration (Results 1 – 25 of 49) sorted by relevance

12

/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/
H A Dadv.c79 static inline void adv_send_start(u16_t duration, int err, in adv_send_start() argument
84 cb->start(duration, err, cb_data); in adv_send_start()
101 u16_t duration, adv_int; in adv_send() local
107 duration = (MESH_SCAN_WINDOW_MS + in adv_send()
113 BT_DBG("count %u interval %ums duration %ums", in adv_send()
115 duration); in adv_send()
127 adv_send_start(duration, err, cb, cb_data); in adv_send()
133 BT_DBG("Advertising started. Sleeping %u ms", duration); in adv_send()
135 k_sleep(K_MSEC(duration)); in adv_send()
H A Dlpn.c255 static void friend_req_sent(u16_t duration, int err, void *user_data) in friend_req_sent() argument
264 lpn->adv_duration = duration; in friend_req_sent()
271 duration + FRIEND_REQ_TIMEOUT); in friend_req_sent()
310 static void req_sent(u16_t duration, int err, void *user_data) in req_sent() argument
315 BT_DBG("req 0x%02x duration %u err %d state %s", in req_sent()
316 lpn->sent_req, duration, err, state2str(lpn->state)); in req_sent()
327 lpn->adv_duration = duration; in req_sent()
338 LPN_RECV_DELAY + duration + in req_sent()
H A Dnet.h28 /* How many hours in between updating IVU duration */
186 /* Duration reported for last advertising packet */
243 /* Timer to track duration in current IV Update state */
H A Dadv.h34 typedef void (*bt_mesh_adv_func_t)(struct os_mbuf *buf, u16_t duration,
H A Dglue.c452 void k_sleep(int32_t duration) in k_sleep() argument
456 ticks = ble_npl_time_ms_to_ticks32(duration); in k_sleep()
671 /*TODO: We could use duration and max events in the future */ in bt_le_adv_start()
H A Dtransport.c58 * We use 400 since 300 is a common send duration for standard HCI, and we
206 static void seg_first_send_start(u16_t duration, int err, void *user_data) in seg_first_send_start() argument
211 tx->cb->start(duration, err, tx->cb_data); in seg_first_send_start()
215 static void seg_send_start(u16_t duration, int err, void *user_data) in seg_send_start() argument
917 /* Make sure we don't send more frequently than the duration for in ack_timeout()
H A Dfriend.c669 u32_t duration; in clear_timeout() local
673 duration = k_uptime_get_32() - frnd->clear.start; in clear_timeout()
674 if (duration > 2 * frnd->poll_to) { in clear_timeout()
974 static void buf_send_start(u16_t duration, int err, void *user_data) in buf_send_start() argument
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/src/
H A Dble_ll_adv.c120 uint16_t duration; member
1221 * In case duration is set for advertising set we need to check if newly in ble_ll_adv_aux_schedule_next()
1222 * scheduled aux will fit inside duration. If not, remove it from scheduler in ble_ll_adv_aux_schedule_next()
1225 if (advsm->duration && (aux_next->sch.end_time > advsm->adv_end_time)) { in ble_ll_adv_aux_schedule_next()
1346 * In case duration is set for advertising set we need to check if at least in ble_ll_adv_aux_schedule()
1347 * 1st aux will fit inside duration. If not, stop advertising now so we do in ble_ll_adv_aux_schedule()
1350 if (advsm->duration && in ble_ll_adv_aux_schedule()
1621 * events count limit. For now just use same code as with duration timeout. in ble_ll_adv_sm_stop_limit_reached()
1643 * duration is in 10ms units in ble_ll_adv_scheduled()
1645 if (advsm->duration) { in ble_ll_adv_scheduled()
[all …]
H A Dble_ll_sched.c840 uint32_t duration; in ble_ll_sched_adv_new() local
845 duration = sch->end_time - sch->start_time; in ble_ll_sched_adv_new()
868 sch->end_time = sch->start_time + duration; in ble_ll_sched_adv_new()
912 uint32_t duration; in ble_ll_sched_adv_reschedule() local
921 duration = sch->end_time - sch->start_time; in ble_ll_sched_adv_reschedule()
971 * with original duration. in ble_ll_sched_adv_reschedule()
976 sch->end_time = sch->start_time + duration; in ble_ll_sched_adv_reschedule()
986 sch->end_time = sch->start_time + duration; in ble_ll_sched_adv_reschedule()
1014 sch->end_time = sch->start_time + duration; in ble_ll_sched_adv_reschedule()
/nrf52832-nimble/packages/NimBLE-latest/apps/ext_advertiser/src/
H A Dext_advertiser.c170 int duration = 500; /* 5seconds, 10ms units */ in start_legacy_duration() local
219 rc = ble_gap_ext_adv_start(instance, duration, 0); in start_legacy_duration()
222 console_printf("instance %u started (legacy PDUs with duration %d)\n", in start_legacy_duration()
223 instance, duration); in start_legacy_duration()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/include/host/
H A Dble_gap.h404 * o 0: Duration expired.
421 * o BLE_HS_ETIMEOUT: Duration expired.
436 * ble_gap_ext_adv_start() and advertising completed due to duration
784 * @param duration_ms The duration of the advertisement procedure. On
911 int ble_gap_ext_adv_start(uint8_t instance, int duration, int max_events);
930 * @param duration_ms The duration of the discovery procedure.
950 int ble_gap_ext_disc(uint8_t own_addr_type, uint16_t duration, uint16_t period,
989 * @param duration_ms The duration of the discovery procedure.
1031 * @param duration_ms The duration of the discovery procedure.
/nrf52832-nimble/nordic/nrfx/hal/
H A Dnrf_spim.h370 * @param[in] duration Minimum duration between the edge of CSN and the edge of SCK
371 * and minimum duration of CSN must stay unselected between transactions.
377 uint32_t duration);
660 uint32_t duration) in nrf_spim_csn_configure() argument
664 p_reg->IFTIMING.CSNDUR = duration; in nrf_spim_csn_configure()
/nrf52832-nimble/rt-thread/components/drivers/sensors/
H A Dsensor.cpp169 int SensorManager::pollSensor(SensorBase *sensor, sensors_event_t *events, int number, int duration) in pollSensor() argument
182 if (rt_tick_get() - tick > duration) break; in pollSensor()
/nrf52832-nimble/rt-thread/components/drivers/usb/usbhost/class/
H A Dhid.c24 * @duration the idle period of requesting data.
29 rt_err_t rt_usbh_hid_set_idle(struct uintf* intf, int duration, int report_id) in rt_usbh_hid_set_idle() argument
46 setup.value = (duration << 8 )| report_id; in rt_usbh_hid_set_idle()
H A Dadk.c49 * @duration the idle period of requesting data.
82 * @duration the idle period of requesting data.
116 * @duration the idle period of requesting data.
H A Dhid.h34 rt_err_t rt_usbh_hid_set_idle(struct uintf* intf, int duration, int report_id);
/nrf52832-nimble/packages/NimBLE-latest/apps/btshell/src/
H A Dbtshell.h122 int btshell_ext_adv_start(uint8_t instance, int duration,
145 int btshell_ext_scan(uint8_t own_addr_type, uint16_t duration, uint16_t period,
H A Dcmd.c337 int duration; in cmd_advertise_start() local
357 duration = parse_arg_uint16_dflt("duration", 0, &rc); in cmd_advertise_start()
359 console_printf("invalid 'duration' parameter\n"); in cmd_advertise_start()
375 rc = btshell_ext_adv_start(instance, duration, max_events, restart); in cmd_advertise_start()
493 {"duration", "advertising duration in 10ms units, default: 0 (forever)"},
642 duration_ms = parse_arg_long_bounds_dflt("duration", 1, INT32_MAX, in cmd_advertise()
645 console_printf("invalid 'duration' parameter\n"); in cmd_advertise()
672 {"duration", "usage: =[1-INT32_MAX], default: INT32_MAX"},
760 duration_ms = parse_arg_long_bounds_dflt("duration", 1, INT32_MAX, 0, &rc); in cmd_connect()
762 console_printf("invalid 'duration' parameter\n"); in cmd_connect()
[all …]
H A Dbtshell.c1497 btshell_ext_adv_start(uint8_t instance, int duration, in btshell_ext_adv_start() argument
1503 * with limited duration or events in btshell_ext_adv_start()
1505 if (restart && (duration == 0) && (max_events == 0)) { in btshell_ext_adv_start()
1509 rc = ble_gap_ext_adv_start(instance, duration, max_events); in btshell_ext_adv_start()
1650 btshell_ext_scan(uint8_t own_addr_type, uint16_t duration, uint16_t period, in btshell_ext_scan() argument
1664 rc = ble_gap_ext_disc(own_addr_type, duration, period, filter_duplicates, in btshell_ext_scan()
/nrf52832-nimble/packages/NimBLE-latest/docs/btshell/
H A Dbtshell_api.rst149 This is how you tell your board to listen to all advertisements around it. The duration is specifie…
153 scan duration=1000 passive=1 filter=no_wl
/nrf52832-nimble/nordic/nrfx/drivers/include/
H A Dnrfx_spim.h121 uint8_t ss_duration; ///< Slave Select duration before and after transmission.
122 … /**< Minimum duration between the edge of CSN and the edge of SCK and minimum
123 * duration of CSN must stay inactive between transactions.
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/
H A Dble_gap.c271 BLE_HS_LOG(INFO, "duration=forever"); in ble_gap_log_duration()
273 BLE_HS_LOG(INFO, "duration=%dms", duration_ms); in ble_gap_log_duration()
2090 /* Duration too great. */ in ble_gap_adv_start()
2501 ble_gap_ext_adv_start(uint8_t instance, int duration, int max_events) in ble_gap_ext_adv_start() argument
2524 if (ble_gap_slave[instance].directed && duration > 1280) { in ble_gap_ext_adv_start()
2577 set.duration = duration; in ble_gap_ext_adv_start()
2616 set.duration = 0; in ble_gap_ext_adv_stop_no_lock()
2967 uint16_t duration, uint16_t period) in ble_gap_ext_disc_enable_tx() argument
2972 duration, period, in ble_gap_ext_disc_enable_tx()
3160 ble_gap_ext_disc(uint8_t own_addr_type, uint16_t duration, uint16_t period, in ble_gap_ext_disc() argument
[all …]
H A Dble_hs_hci_cmd.c1325 uint16_t duration, uint16_t period, in ble_hs_hci_cmd_body_le_set_ext_scan_enable() argument
1334 put_le16(dst + 2, duration); in ble_hs_hci_cmd_body_le_set_ext_scan_enable()
1346 uint16_t duration, in ble_hs_hci_cmd_build_le_set_ext_scan_enable() argument
1354 duration, period, dst); in ble_hs_hci_cmd_build_le_set_ext_scan_enable()
1557 put_le16(&cmd[1], sets[i].duration); in ble_hs_hci_cmd_build_le_ext_adv_enable()
/nrf52832-nimble/rt-thread/components/libc/termios/
H A Dposix_termios.c92 /* nonzero duration is implementation-defined, so ignore it */ in tcsendbreak()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/
H A Dsyscfg.yml138 duration range). The exact cadence will depend a lot on the
145 duration that the node has been in the current state gets

12