82} unicoap_scheduled_event_t;
95#define UNICOAP_CLOCK ZTIMER_MSEC
Common macros and compiler attributes/pragmas configuration.
static void unicoap_event_reschedule(unicoap_scheduled_event_t *event, uint32_t duration)
Discards the currently set timeout, and reschedules the event to be posted in duration ms.
void unicoap_event_cancel(unicoap_scheduled_event_t *event)
Cancels the event.
#define UNICOAP_CLOCK
The ztimer clock used for event scheduling.
struct unicoap_memo unicoap_memo_t
Memo typealias.
void(* unicoap_event_callback_t)(unicoap_scheduled_event_t *event)
Scheduled event callback.
void unicoap_event_schedule(unicoap_scheduled_event_t *event, unicoap_event_callback_t callback, uint32_t duration)
Schedules an event on the internal unicoap queue.
struct event event_t
event structure forward declaration
uint32_t ztimer_set(ztimer_clock_t *clock, ztimer_t *timer, uint32_t val)
Set a timer on a clock.
Common interface to the software PRNG.