Wirepas SDK
control_node_int.h File Reference

Go to the source code of this file.

Data Structures

struct  control_diag_t
 DA Diagnostic packet. More...
 
struct  control_fwd_diag_t
 Forwarded (by router to Sink) Diagnostic packet. More...
 

Enumerations

enum  control_node_ret_e {
  CONTROL_RET_OK, CONTROL_RET_ERROR, CONTROL_RET_INVALID_STATE, CONTROL_RET_INVALID_PARAM,
  CONTROL_RET_INVALID_ROLE, CONTROL_RET_SEND_ERROR
}
 Return codes of control functions. More...
 

Macros

#define MAX_PAYLOAD   102
 
#define CONTROL_DIAG_SRC_EP   237
 
#define CONTROL_DIAG_DEST_EP   237
 

Data Structure Documentation

◆ control_diag_t

struct control_diag_t

DA Diagnostic packet.

Definition at line 38 of file control_node_int.h.

Data Fields
uint16_t error

Number of diag packet sending error.

uint8_t proc_otap_seq

lib_otap->getProcessedSeq().

uint8_t stored_otap_seq

lib_otap->getSeq().

uint16_t success

Number of diag packet sent successfully.

uint32_t timing_us

Time from Control_Node_send call to ack received for packet n-1. 0xFFFFFFFF means last diag packet was not sent (error).

◆ control_fwd_diag_t

struct control_fwd_diag_t

Forwarded (by router to Sink) Diagnostic packet.

Definition at line 55 of file control_node_int.h.

Data Fields
app_addr_t address

Control node source address.

control_diag_t diag

Diag packet sent by control node.

Enumeration Type Documentation

◆ control_node_ret_e

Return codes of control functions.

Enumerator
CONTROL_RET_OK 

Operation is a success.

CONTROL_RET_ERROR 

Generic Error.

CONTROL_RET_INVALID_STATE 

Library not initialized.

CONTROL_RET_INVALID_PARAM 

Invalid parameters.

CONTROL_RET_INVALID_ROLE 

Invalid node role.

CONTROL_RET_SEND_ERROR 

Error when sending packet.

Definition at line 21 of file control_node_int.h.

Macro Definition Documentation

◆ CONTROL_DIAG_DEST_EP

#define CONTROL_DIAG_DEST_EP   237

Destination endpoint used for DA diagnostics.

Definition at line 18 of file control_node_int.h.

◆ CONTROL_DIAG_SRC_EP

#define CONTROL_DIAG_SRC_EP   237

Source endpoint used for DA diagnostics.

Definition at line 15 of file control_node_int.h.

◆ MAX_PAYLOAD

#define MAX_PAYLOAD   102

Maximum packet size.

Definition at line 12 of file control_node_int.h.

CONTROL_RET_ERROR
@ CONTROL_RET_ERROR
Definition: control_node_int.h:26
CONTROL_RET_INVALID_STATE
@ CONTROL_RET_INVALID_STATE
Definition: control_node_int.h:28
CONTROL_RET_OK
@ CONTROL_RET_OK
Definition: control_node_int.h:24
CONTROL_RET_SEND_ERROR
@ CONTROL_RET_SEND_ERROR
Definition: control_node_int.h:34
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