Typedefs | |
typedef void(* | zaf_wake_up_callback_t) (void) |
Enumerations | |
enum | EInclusionMode_t { EINCLUSIONMODE_NOT_SET = 0 , EINCLUSIONMODE_ZWAVE_CLS , EINCLUSIONMODE_ZWAVE_LR } |
typedef void(* zaf_wake_up_callback_t) (void) |
enum EInclusionMode_t |
Used to indicate node inclusion type that related to it working over Long Range or Z-Wave mode. This information will be used to distinguish between these two mode in order to indicate the needed operations when they differ between Z-Wave and Long Range.
bool isFLiRS | ( | const SAppNodeInfo_t * | pAppNodeInfo | ) |
Check if device is FLiRS based on device option mask
pAppNodeInfo |
bool isRfRegionValid | ( | zpal_radio_region_t | region | ) |
Checks if region is supported by Z-Wave stack
region | Region to check |
zaf_wake_up_callback_t zaf_get_stay_awake_callback | ( | void | ) |
Returns the wake up callback.
SApplicationHandles * ZAF_getAppHandle | ( | void | ) |
Get m_pAppHandles object
TaskHandle_t ZAF_getAppTaskHandle | ( | void | ) |
Returns the task handle set by ZAF_Init().
CP_Handle_t ZAF_getCPHandle | ( | void | ) |
Get Command Publisher handle Any other module can request the address of the CP context to use the API
uint32_t ZAF_GetHomeID | ( | void | ) |
Returns the current home ID
EInclusionMode_t ZAF_GetInclusionMode | ( | void | ) |
Returns the current inclusion mode of the node, which indicates whether the node is acting as a Z-Wave or Z-Wave LR node.
EInclusionState_t ZAF_GetInclusionState | ( | void | ) |
Returns the current inclusion state of the node.
const zpal_radio_network_stats_t * ZAF_getNetworkStatistics | ( | void | ) |
Get Network Statistics object.
node_id_t ZAF_GetNodeID | ( | void | ) |
Returns the current ID of the node.
If the node is not added to a network, the node ID is zero.
zpal_pm_handle_t ZAF_getPowerLock | ( | void | ) |
Get m_PowerLock object
const SProtocolInfo * ZAF_getProtocolInfo | ( | void | ) |
Get Protocol Info object
uint8_t ZAF_GetSecurityKeys | ( | void | ) |
Returns the granted security keys.
Refer to ZW_security_api.h for the security key masks.
node_id_t ZAF_GetSucNodeId | ( | void | ) |
Returns the current Suc node ID
SQueueNotifying * ZAF_getZwCommandQueue | ( | void | ) |
Get Notifying queue object used for ZW Command Queue.
SQueueNotifying * ZAF_getZwTxQueue | ( | void | ) |
Get Notifying queue object. It is stored in m_pAppHandles
void ZAF_Init | ( | TaskHandle_t | AppTaskHandle, |
SApplicationHandles * | pAppHandles ) |
Initializes the Z-Wave Application Framework
This function must be invoked by end devices and portable controllers, but not Serial API.
It initializes the following stuff:
AppTaskHandle | Task handle |
pAppHandles | pointer to Application Handle in application |
bool ZAF_isLongRangeRegion | ( | zpal_radio_region_t const | eRegion | ) |
Check if eRegion is a Long Range region. Warning: the function does not check that the region is supported by the zpal.
eRegion | Region to check |
void zaf_learn_mode_finished | ( | void | ) |
Function called when the EVENT_SYSTEM_LEARNMODE_FINISHED event is received.
This function is weakly defined and can be overwritten by one command class. Applications should not overwrite this function instead they should handle the event. CC WakeUp overwrites it.
void ZAF_Reset | ( | void | ) |
Reset ZAF and command classes that have registered a reset function with a REGISTER_CC macro.
void zaf_set_stay_awake_callback | ( | zaf_wake_up_callback_t | callback | ) |
Registers a wake up function to keep the node awake.
The function will be invoked on every reception of a frame to keep the node awake.
callback | Function to invoke to keep the node awake. |
void ZAF_setAppHandle | ( | SApplicationHandles * | pAppHandle | ) |
Pass an application handle to the ZAF framework with pointers to application resources. Can be later used by CC-s.
pAppHandle | pointer to Application Handle in application |
void ZAF_SetCPHandle | ( | CP_Handle_t | handle | ) |
Set the CP context. The application should use this an initialization, so the ZAF_Common interface can redistribute the pContext address subsequently
handle | to set |
void ZAF_setPowerLock | ( | zpal_pm_handle_t | powerLock | ) |
Pass an application power lock handle to the ZAF framework. Can be later used by CC-s. Used for Power management in case of wake up of FLiRS nodes.
powerLock | pointer to power lock object in application |
void zaf_stay_awake | ( | void | ) |
Makes the node stay awake for either 2 or 10 seconds.
For an LS (listening sleeping) node, the node will stay awake for 2 seconds. If the node supports CC Wake Up, it will stay awake for 10 seconds, if CC Wake Up is active.
For RS (reporting sleeping), the node will stay awake for 10 seconds, if CC Wake Up is active.