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

One row of the fixed timer table. More...

Data Fields

TX_TIMER cb
 ThreadX control block; must stay first.
ra8_esp_hosted_timer_cb_t cb_fn
 Core-supplied expiry callback.
void * arg
 Argument handed to the callback.
char name [k_ra8_esp_hosted_name_max]
 Bounded name copy.

Detailed Description

One row of the fixed timer table.

Mirrors the thread slot: control block first, then the callback the core supplied, which ThreadX cannot carry because its expiry function takes a ULONG rather than a pointer.

Invariant
cb_fn is non-null while the row is in use.
name is always NUL-terminated.
Example:
void* h = g_h.funcs->_h_timer_start("hb", 1000, H_TIMER_TYPE_PERIODIC, cb, nullptr);
#define H_TIMER_TYPE_PERIODIC
Timer that reschedules itself after every expiry.
struct hosted_config_t g_h
The handle the vendored core dereferences to reach the vtable.
TX_TIMER cb
ThreadX control block; must stay first.
See also
priv_ra8_esp_hosted_rtos_bind
Since
0.1.0

Definition at line 152 of file ra8_esp_hosted_rtos.c.

Field Documentation

◆ arg

void* ra8_esp_hosted_timer_slot_t::arg

Argument handed to the callback.

Definition at line 155 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_timer_start().

◆ cb

TX_TIMER ra8_esp_hosted_timer_slot_t::cb

ThreadX control block; must stay first.

Definition at line 153 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_timer_start().

◆ cb_fn

ra8_esp_hosted_timer_cb_t ra8_esp_hosted_timer_slot_t::cb_fn

Core-supplied expiry callback.

Definition at line 154 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_timer_start().

◆ name

char ra8_esp_hosted_timer_slot_t::name[k_ra8_esp_hosted_name_max]

Bounded name copy.

Definition at line 156 of file ra8_esp_hosted_rtos.c.

Referenced by internal_h_timer_start().


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