Z-Wave Protocol Controller Reference
zwave_multi_channel_transport.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_MULTI_CHANNEL_TRANSPORT_H
23#define ZWAVE_MULTI_CHANNEL_TRANSPORT_H
24
25#include "sl_status.h"
27
28// We allow to encapsulate the maximum minus our encapsulation command overhead
29#define MULTI_CHANNEL_ENCAPSULATION_OVERHEAD 4
30#define MULTI_CHANNEL_ENCAPSULATED_COMMAND_MAXIMUM_SIZE \
31 (ZWAVE_MAX_FRAME_SIZE - MULTI_CHANNEL_ENCAPSULATION_OVERHEAD)
32
33// Frame parsing define
34#define BIT_ADDRESS 0x80
35
36#define MULTI_CHANNEL_VERSION MULTI_CHANNEL_VERSION_V4
37#define ENDPOINT_MASK 0x7F
38
40 uint8_t command_class; /* The command class */
41 uint8_t command; /* The command */
45 [MULTI_CHANNEL_ENCAPSULATED_COMMAND_MAXIMUM_SIZE]; /* Encapsulated command */
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif //ZWAVE_MULTI_CHANNEL_TRANSPORT_H
uint32_t sl_status_t
Definition: sl_status.h:139
sl_status_t zwave_multi_channel_transport_init(void)
Initialize the Multi Channel Transport *.
Definition: zwave_multi_channel_transport.c:331
struct zwave_multi_channel_encapsulation_frame zwave_multi_channel_encapsulation_frame_t
#define MULTI_CHANNEL_ENCAPSULATED_COMMAND_MAXIMUM_SIZE
Definition: zwave_multi_channel_transport.h:30
SL Status Codes.
Definition: zwave_multi_channel_transport.h:39
uint8_t command_class
Definition: zwave_multi_channel_transport.h:40
uint8_t command
Definition: zwave_multi_channel_transport.h:41
uint8_t destination_endpoint
Definition: zwave_multi_channel_transport.h:43
uint8_t encapsulated_command[MULTI_CHANNEL_ENCAPSULATED_COMMAND_MAXIMUM_SIZE]
Definition: zwave_multi_channel_transport.h:45
uint8_t source_endpoint
Definition: zwave_multi_channel_transport.h:42