ZAF_Transport_Security#

Functions#

void
Transport_ApplicationCommandHandler(ZW_APPLICATION_TX_BUFFER *pCmd, uint8_t cmdLength, RECEIVE_OPTIONS_TYPE *rxOpt)

Called when the frame is received.

void
ApplicationCommandHandler(void *pSubscriberContext, SZwaveReceivePackage *pRxPackage)

Callback function triggered by Cmd Publisher when the frame is received from protocol See ZAF_CmdPublisher.h for more details.

uint8_t

Initializes the ZAF transport layer.

uint8_t
Transport_OnLearnCompleted(node_id_t nodeID)

Register the new node id in the transport layer after learn mode completes.

void

Updates the active NIF depending on learn mode result.

bool
TransportCmdClassSupported(uint8_t commandClass, uint8_t command, enum SECURITY_KEY eKey)

Returns whether a given command is supported.

GetHighestSecureLevel(uint8_t protocolSecBits)

Get highest secure level.

GetCommandClassList(bool included, security_key_t eKey, uint8_t endpoint)

Get command class list from device.

Macros#

#define
APPL_NODEPARM_MAX 35

Max number of command classes a command class list can contain.

Function Documentation#

Transport_ApplicationCommandHandler#

void Transport_ApplicationCommandHandler (ZW_APPLICATION_TX_BUFFER * pCmd, uint8_t cmdLength, RECEIVE_OPTIONS_TYPE * rxOpt)

Called when the frame is received.

Parameters
TypeDirectionArgument NameDescription
ZW_APPLICATION_TX_BUFFER *N/ApCmd

Payload from the received frame, the command is the very first byte

uint8_tN/AcmdLength

Number of command bytes including the command

RECEIVE_OPTIONS_TYPE *N/ArxOpt

Struct to use (may be partially filled out if parsing encapsulated command)


ApplicationCommandHandler#

void ApplicationCommandHandler (void * pSubscriberContext, SZwaveReceivePackage * pRxPackage)

Callback function triggered by Cmd Publisher when the frame is received from protocol See ZAF_CmdPublisher.h for more details.

Parameters
TypeDirectionArgument NameDescription
void *N/ApSubscriberContext

A handle to the Transport layer

SZwaveReceivePackage *N/ApRxPackage

Received package containing: payload from received frame, number of command bytes (including the command) and rxOpt struct


Transport_OnApplicationInitSW#

uint8_t Transport_OnApplicationInitSW (void )

Initializes the ZAF transport layer.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Returns

  • true if transport layer is initialized, false otherwise.


Transport_OnLearnCompleted#

uint8_t Transport_OnLearnCompleted (node_id_t nodeID)

Register the new node id in the transport layer after learn mode completes.

Parameters
TypeDirectionArgument NameDescription
node_id_tN/AnodeID

The newly assigned node id.

This function must be called in LearnCompleted application function

DeprecatedUse ZAF_Transport_OnLearnCompleted().

Returns

  • true on success.


ZAF_Transport_OnLearnCompleted#

void ZAF_Transport_OnLearnCompleted (void )

Updates the active NIF depending on learn mode result.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Must be invoked when learn mode has completed (on inclusion/exclusion).


TransportCmdClassSupported#

bool TransportCmdClassSupported (uint8_t commandClass, uint8_t command, enum SECURITY_KEY eKey)

Returns whether a given command is supported.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/AcommandClass

Command class to check for.

uint8_tN/Acommand

Command to check for.

enum SECURITY_KEYN/AeKey

Security key that the frame was received with.

Returns

  • Returns true if the command is supported and false otherwise.


GetHighestSecureLevel#

enum SECURITY_KEY GetHighestSecureLevel (uint8_t protocolSecBits)

Get highest secure level.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/AprotocolSecBits

secure bits

Returns

  • secure level


GetCommandClassList#

zaf_cc_list_t * GetCommandClassList (bool included, security_key_t eKey, uint8_t endpoint)

Get command class list from device.

Parameters
TypeDirectionArgument NameDescription
bool[in]included

boolean value for node is included

security_key_t[in]eKey

security key of type security_key_t

uint8_t[in]endpoint

0 - root 1 - X endpoint number