Alarm
This module includes the platform abstraction for the alarm service.
Summary
Functions |
|
---|---|
otPlatAlarmMicroFired(otInstance *aInstance)
|
void
Signal that the alarm has fired.
|
otPlatAlarmMicroGetNow(void)
|
uint32_t
Get the current time.
|
otPlatAlarmMicroStartAt(otInstance *aInstance, uint32_t aT0, uint32_t aDt)
|
void
Set the alarm to fire at
aDt microseconds after aT0 . |
otPlatAlarmMicroStop(otInstance *aInstance)
|
void
Stop the alarm.
|
otPlatAlarmMilliFired(otInstance *aInstance)
|
void
Signal that the alarm has fired.
|
otPlatAlarmMilliGetNow(void)
|
uint32_t
Get the current time.
|
otPlatAlarmMilliStartAt(otInstance *aInstance, uint32_t aT0, uint32_t aDt)
|
void
Set the alarm to fire at
aDt milliseconds after aT0 . |
otPlatAlarmMilliStop(otInstance *aInstance)
|
void
Stop the alarm.
|
otPlatDiagAlarmFired(otInstance *aInstance)
|
void
Signal diagnostics module that the alarm has fired.
|
Functions
otPlatAlarmMicroFired
void otPlatAlarmMicroFired( otInstance *aInstance )
Signal that the alarm has fired.
Details | |||
---|---|---|---|
Parameters |
|
otPlatAlarmMicroGetNow
uint32_t otPlatAlarmMicroGetNow( void )
Get the current time.
Details | |
---|---|
Returns |
The current time in microseconds.
|
otPlatAlarmMicroStartAt
void otPlatAlarmMicroStartAt( otInstance *aInstance, uint32_t aT0, uint32_t aDt )
Set the alarm to fire at aDt
microseconds after aT0
.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otPlatAlarmMicroStop
void otPlatAlarmMicroStop( otInstance *aInstance )
Stop the alarm.
Details | |||
---|---|---|---|
Parameters |
|
otPlatAlarmMilliFired
void otPlatAlarmMilliFired( otInstance *aInstance )
Signal that the alarm has fired.
Details | |||
---|---|---|---|
Parameters |
|
otPlatAlarmMilliGetNow
uint32_t otPlatAlarmMilliGetNow( void )
Get the current time.
Details | |
---|---|
Returns |
The current time in milliseconds.
|
otPlatAlarmMilliStartAt
void otPlatAlarmMilliStartAt( otInstance *aInstance, uint32_t aT0, uint32_t aDt )
Set the alarm to fire at aDt
milliseconds after aT0
.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otPlatAlarmMilliStop
void otPlatAlarmMilliStop( otInstance *aInstance )
Stop the alarm.
Details | |||
---|---|---|---|
Parameters |
|
otPlatDiagAlarmFired
void otPlatDiagAlarmFired( otInstance *aInstance )
Signal diagnostics module that the alarm has fired.
Details | |||
---|---|---|---|
Parameters |
|
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.