Wirepas SDK
control_node_int.h
Go to the documentation of this file.
1 /* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 #ifndef _CONTROL_NODE_INT_H_
7 #define _CONTROL_NODE_INT_H_
8 
9 #include "api.h"
10 
12 #define MAX_PAYLOAD 102
13 
15 #define CONTROL_DIAG_SRC_EP 237
16 
18 #define CONTROL_DIAG_DEST_EP 237
19 
21 typedef enum
22 {
36 
38 typedef struct __attribute__ ((packed))
39 {
41  uint8_t proc_otap_seq;
43  uint8_t stored_otap_seq;
45  uint16_t success;
47  uint16_t error;
51  uint32_t timing_us;
53 
55 typedef struct __attribute__ ((packed))
56 {
62 
63 #endif //_CONTROL_NODE_INT_H_
control_diag_t::stored_otap_seq
uint8_t stored_otap_seq
Definition: control_node_int.h:43
control_diag_t::proc_otap_seq
uint8_t proc_otap_seq
Definition: control_node_int.h:41
control_diag_t::success
uint16_t success
Definition: control_node_int.h:45
control_diag_t::error
uint16_t error
Definition: control_node_int.h:47
control_fwd_diag_t::diag
control_diag_t diag
Definition: control_node_int.h:60
control_diag_t
DA Diagnostic packet.
Definition: control_node_int.h:38
CONTROL_RET_ERROR
@ CONTROL_RET_ERROR
Definition: control_node_int.h:26
control_fwd_diag_t::address
app_addr_t address
Definition: control_node_int.h:58
CONTROL_RET_INVALID_STATE
@ CONTROL_RET_INVALID_STATE
Definition: control_node_int.h:28
control_fwd_diag_t
Forwarded (by router to Sink) Diagnostic packet.
Definition: control_node_int.h:55
CONTROL_RET_OK
@ CONTROL_RET_OK
Definition: control_node_int.h:24
app_addr_t
uint32_t app_addr_t
Definition: wms_app.h:228
CONTROL_RET_SEND_ERROR
@ CONTROL_RET_SEND_ERROR
Definition: control_node_int.h:34
control_diag_t::timing_us
uint32_t timing_us
Definition: control_node_int.h:51
CONTROL_RET_INVALID_ROLE
@ CONTROL_RET_INVALID_ROLE
Definition: control_node_int.h:32
control_node_ret_e
control_node_ret_e
Return codes of control functions.
Definition: control_node_int.h:21
CONTROL_RET_INVALID_PARAM
@ CONTROL_RET_INVALID_PARAM
Definition: control_node_int.h:30
api.h