Home
last modified time | relevance | path

Searched refs:COAP_TICKS_PER_SECOND (Results 1 - 22 of 22) sorted by relevance

/third_party/libcoap/include/coap3/
H A Dcoap_time.h33 #define COAP_TICKS_PER_SECOND 1000 macro
53 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt()
58 return (uint64_t)t * 1000000 / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt_us()
75 #define COAP_TICKS_PER_SECOND CLOCK_SECOND macro
89 return t / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt()
94 return (uint64_t)t * 1000000 / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt_us()
101 #define COAP_TICKS_PER_SECOND (XTIMER_HZ) macro
103 #define COAP_TICKS_PER_SECOND (1000000U) macro
141 * This data type represents internal timer ticks with COAP_TICKS_PER_SECOND
159 #define COAP_TICKS_PER_SECOND ((coap_tick_ macro
[all...]
H A Dcoap_session_internal.h26 #define COAP_PARTIAL_SESSION_TIMEOUT_TICKS (30 * COAP_TICKS_PER_SECOND)
400 (COAP_NON_TIMEOUT(s).integer_part * COAP_TICKS_PER_SECOND + \
401 COAP_NON_TIMEOUT(s).fractional_part * COAP_TICKS_PER_SECOND / 1000)
413 (COAP_DEFAULT_LEISURE(s).integer_part * COAP_TICKS_PER_SECOND + \
414 COAP_DEFAULT_LEISURE(s).fractional_part * COAP_TICKS_PER_SECOND / 1000)
442 (COAP_MAX_TRANSMIT_WAIT(s) * COAP_TICKS_PER_SECOND)
489 COAP_NON_RECEIVE_TIMEOUT(s).integer_part * COAP_TICKS_PER_SECOND + \
490 COAP_NON_RECEIVE_TIMEOUT(s).fractional_part * COAP_TICKS_PER_SECOND / 1000)
505 (COAP_NON_PROBING_WAIT(s).integer_part * COAP_TICKS_PER_SECOND + \
506 COAP_NON_PROBING_WAIT(s).fractional_part * COAP_TICKS_PER_SECOND / 100
[all...]
H A Dcoap_dtls_internal.h38 #define COAP_DTLS_RETRANSMIT_COAP_TICKS (COAP_DTLS_RETRANSMIT_MS * COAP_TICKS_PER_SECOND / 1000)
/third_party/libcoap/src/
H A Dcoap_time.c96 tmp = SHR_FP(tv.tv_nsec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000000.0)), FRAC); in coap_ticks()
108 tmp = SHR_FP(tv.tv_usec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000.0)), FRAC); in coap_ticks()
112 * COAP_TICKS_PER_SECOND */ in coap_ticks()
113 *t = tmp + (tv.tv_sec - coap_clock_offset) * COAP_TICKS_PER_SECOND; in coap_ticks()
118 return coap_clock_offset + (t / COAP_TICKS_PER_SECOND); in coap_ticks_to_rt()
123 return (uint64_t)coap_clock_offset * 1000000 + (uint64_t)t * 1000000 / COAP_TICKS_PER_SECOND; in coap_ticks_to_rt_us()
128 return (coap_tick_t)((t - (uint64_t)coap_clock_offset * 1000000) * COAP_TICKS_PER_SECOND / 1000000); in coap_ticks_from_rt_us()
H A Dcoap_cache.c187 entry->expire_ticks += idle_timeout * COAP_TICKS_PER_SECOND; in coap_new_cache_entry()
204 cache_entry->expire_ticks += cache_entry->idle_timeout * COAP_TICKS_PER_SECOND; in coap_cache_get_by_key()
223 cache_entry->expire_ticks += cache_entry->idle_timeout * COAP_TICKS_PER_SECOND; in coap_cache_get_by_pdu()
H A Dcoap_async.c126 (unsigned int)(delay / COAP_TICKS_PER_SECOND), in coap_async_set_delay()
127 (unsigned int)((delay % COAP_TICKS_PER_SECOND) * in coap_async_set_delay()
128 1000 / COAP_TICKS_PER_SECOND)); in coap_async_set_delay()
H A Dcoap_io.c624 new_value.it_value.tv_sec = delay / COAP_TICKS_PER_SECOND;
625 new_value.it_value.tv_nsec = (delay % COAP_TICKS_PER_SECOND) *
1330 new_value.it_value.tv_sec = rem_timeout / COAP_TICKS_PER_SECOND;
1331 new_value.it_value.tv_nsec = (rem_timeout % COAP_TICKS_PER_SECOND) *
1400 if (tls_timeout < now + COAP_TICKS_PER_SECOND / 10)
1401 tls_timeout = now + COAP_TICKS_PER_SECOND / 10;
1403 (int)((tls_timeout - now) * 1000 / COAP_TICKS_PER_SECOND));
1418 session_timeout = ctx->session_timeout * COAP_TICKS_PER_SECOND;
1420 session_timeout = COAP_DEFAULT_SESSION_TIMEOUT * COAP_TICKS_PER_SECOND;
1508 if (s->last_rx_tx + ctx->ping_timeout * COAP_TICKS_PER_SECOND <
[all...]
H A Dcoap_io_contiki.c223 return (int)(((now - before) * 1000) / COAP_TICKS_PER_SECOND); in coap_io_process()
H A Dcoap_net.c876 * parameters 'ack_timeout', 'ack_random_factor', and COAP_TICKS_PER_SECOND.
884 * @return COAP_TICKS_PER_SECOND * 'ack_timeout' *
905 /* Multiply with COAP_TICKS_PER_SECOND to yield system ticks in coap_calc_timeout()
907 return SHR_FP((COAP_TICKS_PER_SECOND * result), FRAC_BITS); in coap_calc_timeout()
943 COAP_TICKS_PER_SECOND)); in coap_wait_ack()
1632 context->ping_timeout * COAP_TICKS_PER_SECOND < next_delay) { in coap_retransmit()
1637 next_delay = context->ping_timeout * COAP_TICKS_PER_SECOND - 255 + byte; in coap_retransmit()
1657 (unsigned)(next_delay * 1000 / COAP_TICKS_PER_SECOND)); in coap_retransmit()
3285 (unsigned int)(delay / COAP_TICKS_PER_SECOND), in handle_request()
3286 (unsigned int)((delay % COAP_TICKS_PER_SECOND) * in handle_request()
[all...]
H A Dcoap_io_lwip.c123 return (int)(((now - before) * 1000) / COAP_TICKS_PER_SECOND); in coap_io_process()
H A Dcoap_address.c222 (now - last_refresh) > (COAP_BCST_REFRESH_SECS * COAP_TICKS_PER_SECOND)) { in coap_is_bcast()
H A Dcoap_session.c233 coap_tick_t ticks = (res.integer_part * COAP_TICKS_PER_SECOND + in coap_get_non_timeout_random_ticks()
234 res.fractional_part * COAP_TICKS_PER_SECOND / 1000); in coap_get_non_timeout_random_ticks()
H A Dcoap_tinydtls.c818 return ((coap_tick_t)(next - dtls_tick_0)) * COAP_TICKS_PER_SECOND / DTLS_TICKS_PER_SECOND + in coap_dtls_get_context_timeout()
H A Dcoap_resource.c1022 (obs->session->lg_xmit->last_obs + 2*COAP_TICKS_PER_SECOND) > now) {
H A Dcoap_block.c1145 coap_tick_t idle_timeout = 8 * COAP_TICKS_PER_SECOND; in coap_block_check_lg_xmit_timeouts()
3749 COAP_TICKS_PER_SECOND; in coap_handle_response_get_block()
/third_party/libcoap/examples/contiki/
H A Dserver.c83 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()
/third_party/libcoap/examples/lwip/
H A Dserver-coap.c60 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()
/third_party/libcoap/tests/
H A Dtest_session.c74 * COAP_TICKS_PER_SECOND * ack_timeout * (1 + (ack_random_factor - 1) * r)
84 const unsigned int ctps = COAP_TICKS_PER_SECOND; in timeout()
/third_party/libcoap/examples/riot/examples_libcoap_server/
H A Dserver-coap.c65 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_time()
/third_party/libcoap/examples/
H A Doscore-interop-server.c774 next_sec_ms = 1000 - (now % COAP_TICKS_PER_SECOND) * in main()
775 1000 / COAP_TICKS_PER_SECOND; in main()
H A Dcoap-server.c297 now = my_clock_base + (t / COAP_TICKS_PER_SECOND); in hnd_get_fetch_time()
363 my_clock_base -= t / COAP_TICKS_PER_SECOND; in hnd_put_time()
436 COAP_TICKS_PER_SECOND * delay); in hnd_get_async()
3037 next_sec_ms = 1000 - (now % COAP_TICKS_PER_SECOND) * in main()
3038 1000 / COAP_TICKS_PER_SECOND; in main()
H A Detsi_iot_01.c382 COAP_TICKS_PER_SECOND * delay); in hnd_get_separate()

Completed in 29 milliseconds