Go to the documentation of this file.
45 #if !defined(ST_LLD_NUM_ALARMS)
46 #define ST_LLD_NUM_ALARMS 1
53 typedef void (*st_callback_t)(
unsigned alarm);
63 #if (ST_LLD_NUM_ALARMS > 1) && !defined(__DOXYGEN__)
71 #if defined(ST_LLD_MULTICORE_SUPPORT)
74 #if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING
81 #if ST_LLD_NUM_ALARMS > 1
83 #if defined(ST_LLD_MULTICORE_SUPPORT)
st_callback_t st_callbacks[ST_LLD_NUM_ALARMS]
Callback pointers for each alarm.
void stStopAlarmN(unsigned alarm)
Stops an additional alarm.
systime_t stGetCounter(void)
Returns the time counter value.
void stSetAlarm(systime_t abstime)
Sets the alarm zero time.
void stSetCallback(unsigned alarm, st_callback_t cb)
Associates a callback to an alarm.
systime_t stGetAlarmN(unsigned alarm)
Returns an additional alarm current time.
void stInit(void)
ST Driver initialization.
uint64_t systime_t
Type of system time.
bool stIsAlarmActiveN(unsigned alarm)
Determines if the specified alarm is active.
PLATFORM ST subsystem low level driver header.
void stSetAlarmN(unsigned alarm, systime_t abstime)
Sets an additional alarm time.
bool stIsAlarmActive(void)
Determines if the alarm zero is active.
void stBind(void)
Enables an alarm interrupt on the invoking core.
void stStopAlarm(void)
Stops the alarm zero interrupt.
systime_t stGetAlarm(void)
Returns the alarm zero current time.
void stStartAlarm(systime_t abstime)
Starts the alarm zero.
void stStartAlarmN(unsigned alarm, systime_t abstime)
Starts an additional alarm.
void stBindAlarmN(unsigned alarm)
Enables an alarm interrupt on the invoking core.