Rose
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
rose::TimerTick Class Reference

Transmit regular signals synchronized to the system clock. More...

#include <TimerTick.h>

Collaboration diagram for rose::TimerTick:
Collaboration graph
[legend]

Public Member Functions

 TimerTick (const TimerTick &)=delete
 
 TimerTick (TimerTick &&)=delete
 
TimerTickoperator= (const TimerTick &)=delete
 
TimerTickoperator= (TimerTick &&)=delete
 

Static Public Member Functions

static uint32_t TimerCallbackStub (uint32_t interval, void *param)
 The static function passed to SDL_AddTimer as the callback. More...
 

Public Attributes

TickProtocol::signal_type secondSignal {}
 
TickProtocol::signal_type minuteSignal {}
 
TickProtocol::signal_type hourSignal {}
 
TickProtocol::signal_type daySignal {}
 

Protected Member Functions

uint32_t transmit (uint32_t interval)
 Called when the SDL timer expires.
 

Protected Attributes

SDL_TimerID sdlTimerId
 The SDL_TimerID from the SDL API.
 

Detailed Description

Transmit regular signals synchronized to the system clock.

Member Function Documentation

◆ TimerCallbackStub()

static uint32_t rose::TimerTick::TimerCallbackStub ( uint32_t  interval,
void *  param 
)
inlinestatic

The static function passed to SDL_AddTimer as the callback.

Parameters
intervalthe current interval
paramthe pointer to this Timer
Returns
the next interval or 0 to stop the timer

The documentation for this class was generated from the following files: