Z-Wave Protocol Controller Reference
zwave_s2_internal.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
22#ifndef ZWAVE_S2_INTERNAL_H
23#define ZWAVE_S2_INTERNAL_H
24
25#include "S2.h"
26#include "zwave_rx.h"
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32extern struct S2 *s2_ctx;
33
34#define COMMAND_CLASS_SECURITY_2 0x9F
35#define COMMAND_CLASS_SECURITY_2_VERSION 1
36
60 uint16_t data_length,
61 const uint8_t *cmd_data,
62 const zwave_tx_options_t *tx_options,
63 const on_zwave_tx_send_data_complete_t on_send_complete,
64 void *user,
65 zwave_tx_session_id_t parent_session_id);
66
81 const zwave_controller_connection_info_t *connection_info,
82 const zwave_rx_receive_options_t *rx_options,
83 const uint8_t *frame_data,
84 uint16_t frame_length);
85
93
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif //ZWAVE_S2_INTERNAL_H
uint32_t sl_status_t
Definition: sl_status.h:139
uint8_t zwave_multicast_group_id_t
Definition: zwave_controller_types.h:43
sl_status_t zwave_s2_send_data(const zwave_controller_connection_info_t *connection, uint16_t data_length, const uint8_t *cmd_data, const zwave_tx_options_t *tx_options, const on_zwave_tx_send_data_complete_t on_send_complete, void *user, zwave_tx_session_id_t parent_session_id)
Sending an S2 encapsulated frame.
Definition: zwave_s2_transport.c:643
sl_status_t zwave_s2_on_frame_received(const zwave_controller_connection_info_t *connection_info, const zwave_rx_receive_options_t *rx_options, const uint8_t *frame_data, uint16_t frame_length)
Entry point of S2 frames received from the PHY/radio stack.
Definition: zwave_s2_transport.c:765
sl_status_t zwave_s2_abort_send_data(zwave_tx_session_id_t session_id)
Z-Wave controller transport callback function which will be triggered when S2 frame tranmission is ab...
Definition: zwave_s2_transport.c:852
struct S2 * s2_ctx
Definition: zwave_s2_transport.c:63
void zwave_s2_on_on_multicast_group_deleted(zwave_multicast_group_id_t group_id)
Asks LibS2 to erase an MPAN entry.
Definition: zwave_s2_transport.c:846
void * zwave_tx_session_id_t
Handle that can be used for aborting ongoing transmissions or identifying TX Queue elements.
Definition: zwave_tx_definitions.h:77
void(* on_zwave_tx_send_data_complete_t)(uint8_t status, const zwapi_tx_report_t *tx_info, void *user)
Function signature for callbacks invoked when send data has completed.
Definition: zwave_tx.h:168
Structure holding information about the source and destination when transmitting and receiving Z-Wave...
Definition: zwave_controller_connection_info.h:87
Describing receive parameters of a frame.
Definition: zwave_rx_definitions.h:35
Definition: zwave_tx_definitions.h:131