Skip to content

Struct ns_timer_config

ClassList > ns_timer_config

ns-timer configuration struct

  • #include <ns_timer.h>

Public Attributes

Type Name
const ns_core_api_t * api
API prefix.
ns_timer_callback_cb callback
Invoked when timer ticks.
bool enableInterrupt
Will generate interrupts, needs callback.
uint32_t periodInMicroseconds
For interrupts.
ns_timers_e timer
NS_TIMER_COUNTER, NS_TIMER_INTERRUPT, or NS_TIMER_USB.

Public Attributes Documentation

variable api

API prefix.

const ns_core_api_t* ns_timer_config::api;


variable callback

Invoked when timer ticks.

ns_timer_callback_cb ns_timer_config::callback;


variable enableInterrupt

Will generate interrupts, needs callback.

bool ns_timer_config::enableInterrupt;


variable periodInMicroseconds

For interrupts.

uint32_t ns_timer_config::periodInMicroseconds;


variable timer

NS_TIMER_COUNTER, NS_TIMER_INTERRUPT, or NS_TIMER_USB.

ns_timers_e ns_timer_config::timer;



The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/includes-api/ns_timer.h