NodeMask#

Modules#

NODE_MASK_TYPE_ALL

Typedefs#

typedef uint8_t
NODE_MASK_TYPE[MAX_NODEMASK_LENGTH]
typedef uint8_t
LR_NODE_MASK_TYPE[MAX_LR_NODEMASK_LENGTH]

Functions#

void
ZW_NodeMaskSetBit(uint8_t *pMask, uint8_t bNodeID)
void
ZW_LR_NodeMaskSetBit(uint8_t *pMask, node_id_t nodeID)
void
ZW_NodeMaskClearBit(uint8_t *pMask, uint8_t bNodeID)

Clear the node bit in a node bitmask.

void
ZW_LR_NodeMaskClearBit(uint8_t *pMask, node_id_t nodeID)

Clear the node bit in a Long Range node bitmask.

void
ZW_NodeMaskClear(uint8_t *pMask, uint8_t bLength)

Clear all bits in a nodemask.

uint8_t
ZW_NodeMaskBitsIn(uint8_t *pMask, uint8_t bLength)

Check and count number of bit that is set in a nodemask.

uint8_t
ZW_NodeMaskNodeIn(uint8_t *pMask, uint8_t bNode)

Check if a node is in a nodemask.

uint8_t
ZW_LR_NodeMaskNodeIn(uint8_t *pMask, node_id_t nodeID)

Check if a node is in a Long Range nodemask.

uint8_t
ZW_NodeMaskGetNextNode(uint8_t currentNodeId, uint8_t *pMask)

Find the next NodeId that is set in a nodemask.

Macros#

#define

Number of nodes per node mask byte.

#define
MAX_NODEMASK_LENGTH (ZW_MAX_NODES/NODEMASK_NODES_PER_BYTE)

Max length of a node mask.

#define
MAX_LR_NODEMASK_LENGTH (ZW_MAX_NODES_LR/NODEMASK_NODES_PER_BYTE)

Max length of Long Range node mask.

#define
ZW_NODE_MASK_SET_BIT (pMask, bNodeID)
#define
ZW_NODE_MASK_CLEAR_BIT (pMask, bNodeID)
#define
ZW_NODE_MASK_CLEAR (pMask, bLength)
#define
ZW_NODE_MASK_BITS_IN (pMask, bLength)
#define
ZW_NODE_MASK_NODE_IN (pMask, bNode)

Typedef Documentation#

NODE_MASK_TYPE#

typedef uint8_t NODE_MASK_TYPE[MAX_NODEMASK_LENGTH] [MAX_NODEMASK_LENGTH]

Definition at line 26 of file /mnt/raid/workspaces/ws.WH1KakGoP/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]

Definition at line 27 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

Function Documentation#

ZW_NodeMaskSetBit#

void ZW_NodeMaskSetBit (uint8_t * pMask, uint8_t bNodeID)
Parameters
N/ApMask
N/AbNodeID

Definition at line 47 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_LR_NodeMaskSetBit#

void ZW_LR_NodeMaskSetBit (uint8_t * pMask, node_id_t nodeID)
Parameters
N/ApMask
N/AnodeID

Definition at line 57 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NodeMaskClearBit#

void ZW_NodeMaskClearBit (uint8_t * pMask, uint8_t bNodeID)

Clear the node bit in a node bitmask.

Parameters
N/ApMask

Pointer to Nodemask list that should be set

N/AbNodeID

Node to set in nodemask


Definition at line 67 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_LR_NodeMaskClearBit#

void ZW_LR_NodeMaskClearBit (uint8_t * pMask, node_id_t nodeID)

Clear the node bit in a Long Range node bitmask.

Parameters
N/ApMask

Pointer to Long Range Nodemask list that should be set

N/AnodeID

Node to clear in nodemask


Definition at line 77 of file /mnt/raid/workspaces/ws.WH1KakGoP/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.

Parameters
N/ApMask

Pointer to Nodemask list that should be cleared

N/AbLength

Length of nodemask to be cleared


Definition at line 87 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NodeMaskBitsIn#

uint8_t ZW_NodeMaskBitsIn (uint8_t * pMask, uint8_t bLength)

Check and count number of bit that is set in a nodemask.

Parameters
N/ApMask

Pointer to nodemask that should be counted

N/AbLength

Length of nodemask to count

Returns

  • Number of bits set in nodemask


Definition at line 99 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NodeMaskNodeIn#

uint8_t ZW_NodeMaskNodeIn (uint8_t * pMask, uint8_t bNode)

Check if a node is in a nodemask.

Parameters
N/ApMask

Pointer to nodemask to check for bNode

N/AbNode

Bit number that should be checked

Returns

  • 0 if not in nodemask, non-zero if found in nodemask


Definition at line 110 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_LR_NodeMaskNodeIn#

uint8_t ZW_LR_NodeMaskNodeIn (uint8_t * pMask, node_id_t nodeID)

Check if a node is in a Long Range nodemask.

Parameters
N/ApMask

Pointer to Long Range nodemask to check for bNode

N/AnodeID

Bit number that should be checked

Returns

  • 0 if not in nodemask, non-zero if found in nodemask


Definition at line 121 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NodeMaskGetNextNode#

uint8_t ZW_NodeMaskGetNextNode (uint8_t currentNodeId, uint8_t * pMask)

Find the next NodeId that is set in a nodemask.

Parameters
N/AcurrentNodeId

Last NodeId found (0 for first call)

N/ApMask

Pointer to Nodemask list that should be searched

Returns

  • Next NodeId from the nodemask if found, or 0 if not found.


Definition at line 132 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

Macro Definition Documentation#

NODEMASK_NODES_PER_BYTE#

#define NODEMASK_NODES_PER_BYTE
Value:
8

Number of nodes per node mask byte.


Definition at line 19 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

MAX_NODEMASK_LENGTH#

#define MAX_NODEMASK_LENGTH
Value:
(ZW_MAX_NODES/NODEMASK_NODES_PER_BYTE)

Max length of a node mask.


Definition at line 22 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

MAX_LR_NODEMASK_LENGTH#

#define MAX_LR_NODEMASK_LENGTH
Value:
(ZW_MAX_NODES_LR/NODEMASK_NODES_PER_BYTE)

Max length of Long Range node mask.


Definition at line 24 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NODE_MASK_SET_BIT#

#define ZW_NODE_MASK_SET_BIT
Value:
(pMask, bNodeID)

Definition at line 34 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NODE_MASK_CLEAR_BIT#

#define ZW_NODE_MASK_CLEAR_BIT
Value:
(pMask, bNodeID)

Definition at line 35 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NODE_MASK_CLEAR#

#define ZW_NODE_MASK_CLEAR
Value:
(pMask, bLength)

Definition at line 36 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NODE_MASK_BITS_IN#

#define ZW_NODE_MASK_BITS_IN
Value:
(pMask, bLength)

Definition at line 37 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h

ZW_NODE_MASK_NODE_IN#

#define ZW_NODE_MASK_NODE_IN
Value:
(pMask, bNode)

Definition at line 38 of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/Components/NodeMask/NodeMask.h