Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
ZAF_Transport_Security
+ Collaboration diagram for ZAF_Transport_Security:

Macros

#define APPL_NODEPARM_MAX   35
 

Functions

void Transport_ApplicationCommandHandler (ZW_APPLICATION_TX_BUFFER *pCmd, uint8_t cmdLength, RECEIVE_OPTIONS_TYPE *rxOpt)
 
void ApplicationCommandHandler (void *pSubscriberContext, SZwaveReceivePackage *pRxPackage)
 
uint8_t Transport_OnApplicationInitSW (void)
 
uint8_t Transport_OnLearnCompleted (node_id_t nodeID)
 Register the new node id in the transport layer after learn mode completes.
 
void ZAF_Transport_OnLearnCompleted (void)
 
bool TransportCmdClassSupported (uint8_t commandClass, uint8_t command, enum SECURITY_KEY eKey)
 
enum SECURITY_KEY GetHighestSecureLevel (uint8_t protocolSecBits)
 Get highest secure level.
 
zaf_cc_list_tGetCommandClassList (bool included, security_key_t eKey, uint8_t endpoint)
 Get command class list from device.
 

Detailed Description

Macro Definition Documentation

◆ APPL_NODEPARM_MAX

#define APPL_NODEPARM_MAX   35

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

Function Documentation

◆ 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
pSubscriberContextA handle to the Transport layer
pRxPackageReceived package containing: payload from received frame, number of command bytes (including the command) and rxOpt struct

◆ GetCommandClassList()

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

Get command class list from device.

Parameters
[in]includedboolean value for node is included
[in]eKeysecurity key of type security_key_t
[in]endpoint0 - root 1 - X endpoint number

◆ GetHighestSecureLevel()

enum SECURITY_KEY GetHighestSecureLevel ( uint8_t protocolSecBits)

Get highest secure level.

Parameters
protocolSecBitssecure bits
Returns
secure level

◆ Transport_ApplicationCommandHandler()

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

Called when the frame is received

Parameters
pCmdPayload from the received frame, the command is the very first byte
cmdLengthNumber of command bytes including the command
rxOptStruct to use (may be partially filled out if parsing encapsulated command)

◆ Transport_OnApplicationInitSW()

uint8_t Transport_OnApplicationInitSW ( void )

Initializes the ZAF transport layer.

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.

This function must be called in LearnCompleted application function

Deprecated
Use ZAF_Transport_OnLearnCompleted().
Parameters
nodeIDThe newly assigned node id.
Returns
true on success.

◆ TransportCmdClassSupported()

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

Returns whether a given command is supported.

Parameters
commandClassCommand class to check for.
commandCommand to check for.
eKeySecurity key that the frame was received with.
Returns
Returns true if the command is supported and false otherwise.

◆ ZAF_Transport_OnLearnCompleted()

void ZAF_Transport_OnLearnCompleted ( void )

Updates the active NIF depending on learn mode result.

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