NodeMask#
Typedefs#
Functions#
Clear the node bit in a node bitmask.
Clear all bits in a nodemask.
Check and count number of bit that is set in a nodemask.
Check if a node is in a nodemask.
Find the next NodeIndex that is set in a nodemask WARNING: this function is the only one working with indexes and not node IDs.
Macros#
Number of nodes per node mask byte.
Max length of a node mask.
Max length of Long Range node mask.
Typedef Documentation#
NODE_MASK_TYPE#
typedef uint8_t NODE_MASK_TYPE[MAX_NODEMASK_LENGTH] [MAX_NODEMASK_LENGTH]
26
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
LR_NODE_MASK_TYPE#
typedef uint8_t LR_NODE_MASK_TYPE[MAX_LR_NODEMASK_LENGTH] [MAX_LR_NODEMASK_LENGTH]
27
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
Function Documentation#
ZW_NodeMaskSetBit#
void ZW_NodeMaskSetBit (uint8_t * pMask, node_id_t bNodeID)
N/A | pMask | |
N/A | bNodeID |
36
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
ZW_NodeMaskClearBit#
void ZW_NodeMaskClearBit (uint8_t * pMask, node_id_t bNodeID)
Clear the node bit in a node bitmask.
N/A | pMask | Pointer to Nodemask list that should be set |
N/A | bNodeID | Node to set in nodemask |
46
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
ZW_NodeMaskClear#
void ZW_NodeMaskClear (uint8_t * pMask, uint8_t bLength)
Clear all bits in a nodemask.
N/A | pMask | Pointer to Nodemask list that should be cleared |
N/A | bLength | Length of nodemask to be cleared |
56
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
ZW_NodeMaskBitsIn#
uint8_t ZW_NodeMaskBitsIn (const uint8_t * pMask, uint8_t bLength)
Check and count number of bit that is set in a nodemask.
N/A | pMask | Pointer to nodemask that should be counted |
N/A | bLength | Length of nodemask to count |
Returns
Number of bits set in nodemask
68
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
ZW_NodeMaskNodeIn#
uint8_t ZW_NodeMaskNodeIn (const uint8_t * pMask, node_id_t bNode)
Check if a node is in a nodemask.
N/A | pMask | Pointer to nodemask to check for bNode |
N/A | bNode | Bit number that should be checked |
Returns
0 if not in nodemask, non-zero if found in nodemask
79
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
ZW_NodeMaskGetNextNodeIndex#
node_id_t ZW_NodeMaskGetNextNodeIndex (node_id_t currentNodeIndex, uint8_t * pMask)
Find the next NodeIndex that is set in a nodemask WARNING: this function is the only one working with indexes and not node IDs.
N/A | currentNodeIndex | Last NodeId found (0 for first call) |
N/A | pMask | Pointer to Nodemask list that should be searched |
Returns
Next NodeId from the nodemask if found, or 0 if not found.
91
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
Macro Definition Documentation#
NODEMASK_NODES_PER_BYTE#
#define NODEMASK_NODES_PER_BYTEValue:
8
Number of nodes per node mask byte.
19
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
MAX_NODEMASK_LENGTH#
#define MAX_NODEMASK_LENGTHValue:
(ZW_MAX_NODES/NODEMASK_NODES_PER_BYTE)
Max length of a node mask.
22
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h
MAX_LR_NODEMASK_LENGTH#
#define MAX_LR_NODEMASK_LENGTHValue:
(ZW_MAX_NODES_LR/NODEMASK_NODES_PER_BYTE)
Max length of Long Range node mask.
24
of file /mnt/raid/workspaces/ws.6QOxxjIBR/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h