ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ble_npl_callout Struct Reference

One-shot timer that posts an event into a queue when it fires. More...

#include <nimble_npl_os.h>

Collaboration diagram for ble_npl_callout:

Data Fields

TX_TIMER handle
 Backing ThreadX one-shot timer.
struct ble_npl_eventqevq
 Queue to post the event into.
struct ble_npl_event ev
 Event posted on each firing.

Detailed Description

One-shot timer that posts an event into a queue when it fires.

Wraps a TX_TIMER and the ble_npl_event it should post. priv_callout_trampoline reads the event pointer out of the timer's user-data field and pushes it via ble_npl_eventq_put.

Invariant
evq stays the queue passed to ble_npl_callout_init.
Example:
struct ble_npl_callout co;
ble_npl_callout_init(&co, &evq, on_timeout, ctx);
void ble_npl_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq, ble_npl_event_fn *ev_cb, void *ev_arg)
One-shot timer that posts an event into a queue when it fires.
struct ble_npl_eventq * evq
Queue to post the event into.
See also
ble_npl_eventq

Definition at line 147 of file nimble_npl_os.h.

Field Documentation

◆ ev

struct ble_npl_event ble_npl_callout::ev

Event posted on each firing.

Definition at line 150 of file nimble_npl_os.h.

Referenced by ble_npl_callout_init(), ble_npl_callout_set_arg(), and internal_callout_trampoline().

◆ evq

struct ble_npl_eventq* ble_npl_callout::evq

Queue to post the event into.

Definition at line 149 of file nimble_npl_os.h.

Referenced by ble_npl_callout_init(), and internal_callout_trampoline().

◆ handle

TX_TIMER ble_npl_callout::handle

Backing ThreadX one-shot timer.

Definition at line 148 of file nimble_npl_os.h.

Referenced by ble_npl_callout_init(), ble_npl_callout_is_active(), ble_npl_callout_reset(), and ble_npl_callout_stop().


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