Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
ca_tasklet Struct Reference

Internal tasklet state structure. More...

#include <cascoda-util/include/cascoda-util/cascoda_tasklet.h>

Collaboration diagram for ca_tasklet:

Public Attributes

ca_tasklet_callback callback
 Internal: The callback that will be called when the tasklet is triggered. More...
 
void * context
 Internal: The context that will be passed to the callback when it is called. More...
 
struct ca_taskletnext
 Internal: The next tasklet in the sorted tasklet linkedlist. More...
 
uint32_t fireTime
 Internal: The next time at which the tasklet is due to trigger. More...
 
uint8_t scheduled: 1
 Internal: Is this tasklet scheduled? More...
 

Detailed Description

Internal tasklet state structure.

Must be allocated with a lifetime that exceeds the usage of the tasklet, ideally statically. Do not modify this struct directly, and instead use the TASKLET_ functions to control it.

Member Data Documentation

◆ callback

ca_tasklet_callback ca_tasklet::callback

Internal: The callback that will be called when the tasklet is triggered.

◆ context

void* ca_tasklet::context

Internal: The context that will be passed to the callback when it is called.

◆ fireTime

uint32_t ca_tasklet::fireTime

Internal: The next time at which the tasklet is due to trigger.

◆ next

struct ca_tasklet* ca_tasklet::next

Internal: The next tasklet in the sorted tasklet linkedlist.

NULL when not queued.

◆ scheduled

uint8_t ca_tasklet::scheduled

Internal: Is this tasklet scheduled?


The documentation for this struct was generated from the following file: