Collaboration diagram for ZAF_Transport_Endpoint:Data Structures | |
| struct | _MULTICHAN_NODE_INFO_ |
| struct | _MULTICHAN_NODE_INFO_PACKED_ |
| struct | destination_info_t |
| struct | MULTICHAN_NODE_ID_PACKED |
| Destination info packed for the file system. More... | |
| struct | _TRANSMIT_OPTIONS_TYPE_EX_ |
| struct | _TRANSMIT_OPTIONS_TYPE_SINGLE_EX_ |
Typedefs | |
| typedef struct _MULTICHAN_NODE_INFO_ | MULTICHAN_NODE_INFO |
| typedef struct _MULTICHAN_NODE_INFO_PACKED_ | MULTICHAN_NODE_INFO_PACKED |
| typedef destination_info_t | MULTICHAN_NODE_ID |
| typedef struct _TRANSMIT_OPTIONS_TYPE_EX_ | TRANSMIT_OPTIONS_TYPE_EX |
| typedef struct _TRANSMIT_OPTIONS_TYPE_SINGLE_EX_ | TRANSMIT_OPTIONS_TYPE_SINGLE_EX |
| typedef enum _ENDPOINT_ | ENDPOINT |
Enumerations | |
| enum | EZAF_EnqueueStatus_t { ZAF_ENQUEUE_STATUS_SUCCESS = 0 , ZAF_ENQUEUE_STATUS_TIMEOUT = 1 , ZAF_ENQUEUE_STATUS_BUFFER_OVERRUN = 2 } |
| enum | _ENDPOINT_ { ENDPOINT_ROOT = 0 , ENDPOINT_1 , ENDPOINT_2 , ENDPOINT_3 , ENDPOINT_4 , ENDPOINT_5 , ENDPOINT_6 , ENDPOINT_7 , ENDPOINT_8 , ENDPOINT_9 } |
Functions | |
| void | ZW_TransportEndpoint_Init (void) |
| zaf_cc_list_t * | GetEndpointcmdClassList (bool secList, uint8_t endpoint) |
| Get endpoint non-secure or secure command class list. | |
| EZAF_EnqueueStatus_t | ZAF_Transmit (uint8_t *pData, size_t dataLength, TRANSMIT_OPTIONS_TYPE_SINGLE_EX *pTxOptionsEx, ZAF_TX_Callback_t pCallback) |
| Send data. This function is used both as response to a command and for sending unsolicited frames Encapsulate data for endpoint support and call protocol ZW_SendDataEx. | |
| received_frame_status_t | Transport_ApplicationCommandHandlerEx (RECEIVE_OPTIONS_TYPE_EX *rxOpt, ZW_APPLICATION_TX_BUFFER *pCmd, uint8_t cmdLength) |
| void | RxToTxOptions (RECEIVE_OPTIONS_TYPE_EX *rxopt, TRANSMIT_OPTIONS_TYPE_SINGLE_EX **txopt) |
| Helper function to switching endpoints for SendData. | |
| bool | Check_not_legal_response_job (RECEIVE_OPTIONS_TYPE_EX *rxOpt) |
| Validate destination endpoint use bit-addressing. This function must only be used to check jobs that return response (Get <-> Report). | |
| bool | is_multicast (RECEIVE_OPTIONS_TYPE_EX *rxOpt) |
| This function indicates if the frame was received using multicast addressing The Z-Wave Multicast frame, the broadcast NodeID and the Multi Channel multi-End Point destination are all considered multicast addressing methods. | |
| void | SetFlagSupervisionEncap (bool flag) |
| Set supervision-encapsulated-frame flag. The Command class call Check_not_legal_response_job() Use the flag to discard current job if a Get<->Response job (CC:006C.01.00.13.002). | |
| typedef enum _ENDPOINT_ ENDPOINT |
| typedef destination_info_t MULTICHAN_NODE_ID |
| typedef struct _MULTICHAN_NODE_INFO_ MULTICHAN_NODE_INFO |
MULTICHAN_NODE_INFO should include feature node informations as CRC, security etc.
| typedef struct _MULTICHAN_NODE_INFO_PACKED_ MULTICHAN_NODE_INFO_PACKED |
| typedef struct _TRANSMIT_OPTIONS_TYPE_EX_ TRANSMIT_OPTIONS_TYPE_EX |
| typedef struct _TRANSMIT_OPTIONS_TYPE_SINGLE_EX_ TRANSMIT_OPTIONS_TYPE_SINGLE_EX |
| enum _ENDPOINT_ |
| enum EZAF_EnqueueStatus_t |
Defines return values for ZAF_Transmit. They match the enum values defined in EQueueNotifyingStatus (i.e., EQUEUENOTIFYING_STATUS_SUCCESS and EQUEUENOTIFYING_STATUS_TIMEOUT, respectively).
| bool Check_not_legal_response_job | ( | RECEIVE_OPTIONS_TYPE_EX * | rxOpt | ) |
Validate destination endpoint use bit-addressing. This function must only be used to check jobs that return response (Get <-> Report).
| [in] | rxOpt | pointer of type RECEIVE_OPTIONS_TYPE_EX |
| zaf_cc_list_t * GetEndpointcmdClassList | ( | bool | secList, |
| uint8_t | endpoint ) |
Get endpoint non-secure or secure command class list.
| [in] | secList | true if secure list else false for non-secure list |
| [in] | endpoint | parameter |
| bool is_multicast | ( | RECEIVE_OPTIONS_TYPE_EX * | rxOpt | ) |
This function indicates if the frame was received using multicast addressing The Z-Wave Multicast frame, the broadcast NodeID and the Multi Channel multi-End Point destination are all considered multicast addressing methods.
| [in] | rxOpt | pointer of type RECEIVE_OPTIONS_TYPE_EX |
| void RxToTxOptions | ( | RECEIVE_OPTIONS_TYPE_EX * | rxopt, |
| TRANSMIT_OPTIONS_TYPE_SINGLE_EX ** | txopt ) |
Helper function to switching endpoints for SendData.
| [in] | rxopt | Receive options to convert. |
| [out] | txopt | Converted transmit options |
| void SetFlagSupervisionEncap | ( | bool | flag | ) |
Set supervision-encapsulated-frame flag. The Command class call Check_not_legal_response_job() Use the flag to discard current job if a Get<->Response job (CC:006C.01.00.13.002).
| [in] | flag | supervision-encapsulated-frame true if active and false if deactive. |
| received_frame_status_t Transport_ApplicationCommandHandlerEx | ( | RECEIVE_OPTIONS_TYPE_EX * | rxOpt, |
| ZW_APPLICATION_TX_BUFFER * | pCmd, | ||
| uint8_t | cmdLength ) |
Invokes a command class handler based on the first byte in the frame.
Must be defined in the application.
| [in] | rxOpt | IN receive options of type RECEIVE_OPTIONS_TYPE_EX. |
| [in] | pCmd | IN Payload from the received frame. |
| [in] | cmdLength | IN Number of command bytes including command. |
| EZAF_EnqueueStatus_t ZAF_Transmit | ( | uint8_t * | pData, |
| size_t | dataLength, | ||
| TRANSMIT_OPTIONS_TYPE_SINGLE_EX * | pTxOptionsEx, | ||
| ZAF_TX_Callback_t | pCallback ) |
Send data. This function is used both as response to a command and for sending unsolicited frames Encapsulate data for endpoint support and call protocol ZW_SendDataEx.
| [in] | pData | IN Data buffer pointer. |
| [in] | dataLength | IN Data buffer length. |
| [in] | pTxOptionsEx | transmit options pointer. |
| [out] | pCallback | is a callback function-pointer returning result of the job. Please note that both bStatus TRANSMIT_COMPLETE_OK and TRANSMIT_COMPLETE_VERIFIED indicates successful transmission. |
| void ZW_TransportEndpoint_Init | ( | void | ) |
Initializes the ZAF Transport Layer.