nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
Data Fields
nros_timer_t Struct Reference

#include <nros_generated.h>

Collaboration diagram for nros_timer_t:
Collaboration graph
[legend]

Data Fields

void * _executor
 
nros_timer_callback_t callback
 
void * context
 
size_t handle_id
 
uint64_t last_call_time_ns
 
uint64_t period_ns
 
enum nros_timer_state_t state
 
const struct nros_support_tsupport
 

Detailed Description

Timer structure.

Field Documentation

◆ _executor

void* nros_timer_t::_executor

Opaque pointer to internal executor (set by nros_executor_register_timer)

◆ callback

nros_timer_callback_t nros_timer_t::callback

User callback function

◆ context

void* nros_timer_t::context

User context pointer

◆ handle_id

size_t nros_timer_t::handle_id

Handle ID from executor registration (SIZE_MAX = not registered)

◆ last_call_time_ns

uint64_t nros_timer_t::last_call_time_ns

Last trigger time in nanoseconds

◆ period_ns

uint64_t nros_timer_t::period_ns

Period in nanoseconds

◆ state

enum nros_timer_state_t nros_timer_t::state

Current state

◆ support

const struct nros_support_t* nros_timer_t::support

Pointer to parent support context


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