NodeMask#
Modules#
Typedefs#
Functions#
Clear the node bit in a node bitmask.
Clear the node bit in a Long Range 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.
Check if a node is in a Long Range nodemask.
Find the next NodeId that is set in a nodemask.
Macros#
Number of nodes per node mask byte.
Max length of a node mask.
Max length of Long Range node mask.
Typedef Documentation#
LR_NODE_MASK_TYPE#
typedef uint8_t LR_NODE_MASK_TYPE[MAX_LR_NODEMASK_LENGTH] [MAX_LR_NODEMASK_LENGTH]
Function Documentation#
ZW_NodeMaskSetBit#
void ZW_NodeMaskSetBit (uint8_t * pMask, uint8_t bNodeID)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | |
uint8_t | N/A | bNodeID |
ZW_LR_NodeMaskSetBit#
void ZW_LR_NodeMaskSetBit (uint8_t * pMask, node_id_t nodeID)
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | |
node_id_t | N/A | nodeID |
ZW_NodeMaskClearBit#
void ZW_NodeMaskClearBit (uint8_t * pMask, uint8_t bNodeID)
Clear the node bit in a node bitmask.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | Pointer to Nodemask list that should be set |
uint8_t | N/A | bNodeID | Node to set in nodemask |
ZW_LR_NodeMaskClearBit#
void ZW_LR_NodeMaskClearBit (uint8_t * pMask, node_id_t nodeID)
Clear the node bit in a Long Range node bitmask.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | Pointer to Long Range Nodemask list that should be set |
node_id_t | N/A | nodeID | Node to clear in nodemask |
ZW_NodeMaskClear#
void ZW_NodeMaskClear (uint8_t * pMask, uint8_t bLength)
Clear all bits in a nodemask.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | Pointer to Nodemask list that should be cleared |
uint8_t | N/A | bLength | Length of nodemask to be cleared |
ZW_NodeMaskBitsIn#
uint8_t ZW_NodeMaskBitsIn (uint8_t * pMask, uint8_t bLength)
Check and count number of bit that is set in a nodemask.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | Pointer to nodemask that should be counted |
uint8_t | N/A | bLength | Length of nodemask to count |
Returns
Number of bits set in nodemask
ZW_NodeMaskNodeIn#
uint8_t ZW_NodeMaskNodeIn (uint8_t * pMask, uint8_t bNode)
Check if a node is in a nodemask.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | Pointer to nodemask to check for bNode |
uint8_t | N/A | bNode | Bit number that should be checked |
Returns
0 if not in nodemask, non-zero if found in nodemask
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | N/A | pMask | Pointer to Long Range nodemask to check for bNode |
node_id_t | N/A | nodeID | Bit number that should be checked |
Returns
0 if not in nodemask, non-zero if found in nodemask
ZW_NodeMaskGetNextNode#
uint8_t ZW_NodeMaskGetNextNode (uint8_t currentNodeId, uint8_t * pMask)
Find the next NodeId that is set in a nodemask.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | currentNodeId | Last NodeId found (0 for first call) |
uint8_t * | N/A | pMask | Pointer to Nodemask list that should be searched |
Returns
Next NodeId from the nodemask if found, or 0 if not found.