Loading...
Searching...
No Matches

State and Memo API. More...

Detailed Description

State and Memo API.

Author
Carl Seifert carl..nosp@m.seif.nosp@m.ert@t.nosp@m.u-dr.nosp@m.esden.nosp@m..de

Definition in file state.h.

#include "ztimer.h"
#include "random.h"
#include "event.h"
#include "container.h"
#include "net/unicoap/server.h"
#include "private/packet.h"
+ Include dependency graph for state.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct unicoap_memo unicoap_memo_t
 Memo typealias.
 

Event Scheduling

#define UNICOAP_CLOCK   ZTIMER_MSEC
 The ztimer clock used for event scheduling.
 
typedef 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.
 
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.