Z-Wave System Startup API#
Functions#
Was the device woken up by an RTCC timer interrupt?
Get number of milliseconds the device has spent sleeping in deep sleep before it was woken up.
Get the sleeptimer tick value of the device when it woke up from deep sleep.
Get the sleeptimer tick value of the device when it last went to Deep Sleep.
Get the reset reason of the device when it was last reset or woke up from EM4 sleep.
Please.
Used to get the pointer to the application handles structure! Needed to insert task related data when creating user task.
Used by ZW_UserTask_ApplicationRegisterTask() in ZW_UserTask.h to set the Event Notification Bit Numbers in the Application Interface structure!
Used by ZW_UserTask_ApplicationRegisterTask() in ZW_UserTask.h to set the Main Application Task Handle in the Application Interface structure, after ZW_UserTask_ApplicationRegisterTask() has created the task!
Passed the Command Class set from the Application to the Protocol using a shared variable.
Gets the Command Class Set.
INCLUDE_xTaskGetSchedulerState did not include xTaskGetSchedulerState in the build.
Used to get a pointer to The Application node information SAppNodeInfo_t structure.
Function Documentation#
IsWakeupCausedByRtccTimeout#
bool IsWakeupCausedByRtccTimeout (void )
Was the device woken up by an RTCC timer interrupt?
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function can safely be called from multiple threads.
Returns
true if woken up by RTCC timeout, false otherwise.
GetCompletedSleepDurationMs#
uint32_t GetCompletedSleepDurationMs (void )
Get number of milliseconds the device has spent sleeping in deep sleep before it was woken up.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function can safely be called from multiple threads.
Returns
Number of milliseconds.
GetDeepSleepWakeupTick#
uint32_t GetDeepSleepWakeupTick (void )
Get the sleeptimer tick value of the device when it woke up from deep sleep.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function can safely be called from multiple threads.
Returns
RTCC ticks.
GetLastTickBeforeDeepSleep#
uint32_t GetLastTickBeforeDeepSleep (void )
Get the sleeptimer tick value of the device when it last went to Deep Sleep.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
(It is stored in retention RAM)
This function can safely be called from multiple threads.
Returns
RTCC ticks.
GetResetReason#
zpal_reset_reason_t GetResetReason (void )
Get the reset reason of the device when it was last reset or woke up from EM4 sleep.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function can safely be called from multiple threads.
Returns
reset reason.
ZW_ApplicationRegisterTask#
bool ZW_ApplicationRegisterTask (void(*)(SApplicationHandles *) appTaskFunc, uint8_t iZwRxQueueTaskNotificationBitNumber, uint8_t iZwCommandStatusQueueTaskNotificationBitNumber, const SProtocolConfig_t * pProtocolConfig)
Please.
Type | Direction | Argument Name | Description |
---|---|---|---|
void(*)(SApplicationHandles *) | N/A | appTaskFunc | |
uint8_t | N/A | iZwRxQueueTaskNotificationBitNumber | |
uint8_t | N/A | iZwCommandStatusQueueTaskNotificationBitNumber | |
const SProtocolConfig_t * | N/A | pProtocolConfig |
See Also
ZW_UserTask_ApplicationRegisterTask() in ZW_UserTask.h for more info.
ZW_system_startup_getAppHandles#
SApplicationHandles * ZW_system_startup_getAppHandles (void )
Used to get the pointer to the application handles structure! Needed to insert task related data when creating user task.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
ZW_system_startup_SetEventNotificationBitNumbers#
void ZW_system_startup_SetEventNotificationBitNumbers (uint8_t iZwRxQueueTaskNotificationBitNumber, uint8_t iZwCommandStatusQueueTaskNotificationBitNumber, const SProtocolConfig_t * pProtocolConfig)
Used by ZW_UserTask_ApplicationRegisterTask() in ZW_UserTask.h to set the Event Notification Bit Numbers in the Application Interface structure!
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | iZwRxQueueTaskNotificationBitNumber | |
uint8_t | N/A | iZwCommandStatusQueueTaskNotificationBitNumber | |
const SProtocolConfig_t * | N/A | pProtocolConfig |
ZW_system_startup_SetMainApplicationTaskHandle#
void ZW_system_startup_SetMainApplicationTaskHandle (TaskHandle_t xHandle)
Used by ZW_UserTask_ApplicationRegisterTask() in ZW_UserTask.h to set the Main Application Task Handle in the Application Interface structure, after ZW_UserTask_ApplicationRegisterTask() has created the task!
Type | Direction | Argument Name | Description |
---|---|---|---|
TaskHandle_t | N/A | xHandle |
ZW_system_startup_SetCCSet#
void ZW_system_startup_SetCCSet (SCommandClassSet_t * CCSet)
Passed the Command Class set from the Application to the Protocol using a shared variable.
Type | Direction | Argument Name | Description |
---|---|---|---|
SCommandClassSet_t * | [in] | CCSet | Command Class Set |
ZW_system_startup_GetCCSet#
SCommandClassSet_t * ZW_system_startup_GetCCSet (void )
Gets the Command Class Set.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
SCommandClassSet_t* A pointer to the Command Class Set
ZW_system_startup_IsSchedulerStarted#
bool ZW_system_startup_IsSchedulerStarted (void )
INCLUDE_xTaskGetSchedulerState did not include xTaskGetSchedulerState in the build.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This is a workaround!
This function indicated whether the Scheduler has ever been started. This will not indicate the current state, e.g. whether the scheduler is in suspended state or running!
ZW_system_startup_getAppNodeInfo#
const SAppNodeInfo_t * ZW_system_startup_getAppNodeInfo (void )
Used to get a pointer to The Application node information SAppNodeInfo_t structure.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
const SAppNodeInfo_t*