28 #ifndef CMSIS_PLUS_RTOS_OS_TIMER_H_ 29 #define CMSIS_PLUS_RTOS_OS_TIMER_H_ 33 #if defined(__cplusplus) 45 #pragma GCC diagnostic push 46 #pragma GCC diagnostic ignored "-Wpadded" 164 attributes (
const attributes&) =
default;
165 attributes (attributes&&) =
default;
167 operator= (
const attributes&) =
default;
169 operator= (attributes&&) =
default;
174 ~attributes () =
default;
230 attributes_periodic (
const attributes_periodic&) =
default;
231 attributes_periodic (attributes_periodic&&) =
default;
233 operator= (
const attributes_periodic&) =
default;
235 operator= (attributes_periodic&&) =
default;
240 ~attributes_periodic () =
default;
285 operator= (
const timer&) =
delete;
287 operator= (
timer&&) =
delete;
384 #if !defined(OS_USE_RTOS_PORT_TIMER) 387 internal_interrupt_service_routine (
void);
413 #if !defined(OS_USE_RTOS_PORT_TIMER) 414 clock* clock_ =
nullptr;
420 #if defined(OS_USE_RTOS_PORT_TIMER) 421 friend class port::timer;
422 os_timer_port_data_t port_;
440 #pragma GCC diagnostic pop uint8_t type_t
Type of of variables holding timer run types.
result_t start(clock::duration_t period)
Start or restart the timer.
bool operator==(const timer &rhs) const
Compare timers.
constexpr attributes_periodic()
Construct periodic timer attributes object instance.
void * func_args_t
Timer call back function arguments.
timer(func_t function, func_args_t args, const attributes &attr=once_initializer)
Construct a timer object instance.
void(*)(func_args_t args) func_t
Entry point of a timer call back function.
Base class for attributes.
User single-shot or periodic timer.
static const attributes_periodic periodic_initializer
Default periodic timer initialiser.
Double linked list node, with time stamp and timer.
const char * name(void) const
Get object name.
Base class for named system objects.
port::clock::duration_t duration_t
Type of variables holding clock durations.
result_t stop(void)
Stop the timer.
~timer()
Destruct the timer object instance.
Periodic timer attributes.
Used to catch uninitialised threads.
static const attributes once_initializer
Default one shot timer initialiser.
uint8_t state_t
Type of of variables holding timer states.
constexpr attributes()
Construct a timer attributes object instance.
uint32_t result_t
Type of values returned by RTOS functions.