Wirepas SDK
waps_frames.h File Reference

Go to the source code of this file.

Typedefs

typedef uint8_t ep_t
 
typedef uint32_t w_addr_t
 
typedef uint16_t attr_t
 
typedef uint16_t pduid_t
 

Data Structures

struct  simple_cnf_t
 
struct  frame_header_t
 
union  waps_frame_payload_t
 
struct  waps_frame_t
 
union  waps_frame_t.__unnamed__
 

Macros

#define WAPS_MIN_FRAME_LENGTH   (uint16_t)(sizeof(frame_header_t))
 
#define WAPS_MAX_FRAME_PAYLOAD   (uint16_t)(sizeof(waps_frame_payload_t))
 
#define WAPS_MAX_FRAME_LENGTH   (uint16_t)(sizeof(waps_frame_t))
 

Typedef Documentation

◆ attr_t

typedef uint16_t attr_t

Precision of "attribute id" fields

Definition at line 20 of file waps_frames.h.

◆ ep_t

typedef uint8_t ep_t

Precision of "end point" fields

Definition at line 14 of file waps_frames.h.

◆ pduid_t

typedef uint16_t pduid_t

Precision of "PDU id" fields

Definition at line 23 of file waps_frames.h.

◆ w_addr_t

typedef uint32_t w_addr_t

Precision of "node id" fields

Definition at line 17 of file waps_frames.h.


Data Structure Documentation

◆ simple_cnf_t

struct simple_cnf_t

Many methods have a simple one byte confirmation

Definition at line 40 of file waps_frames.h.

Data Fields
uint8_t result

◆ frame_header_t

struct frame_header_t

Definition at line 45 of file waps_frames.h.

Data Fields
uint8_t sfid
uint8_t sfunc
uint8_t splen

◆ waps_frame_payload_t

union waps_frame_payload_t

Definition at line 55 of file waps_frames.h.

Data Fields
frame_attr attr
frame_csap csap
frame_dsap dsap
frame_msap msap
simple_cnf_t simple_cnf

◆ waps_frame_t

struct waps_frame_t

Definition at line 64 of file waps_frames.h.

Data Fields
union waps_frame_t __unnamed__
uint8_t sfid
uint8_t sfunc
uint8_t splen

Macro Definition Documentation

◆ WAPS_MAX_FRAME_LENGTH

#define WAPS_MAX_FRAME_LENGTH   (uint16_t)(sizeof(waps_frame_t))

Length of frame headers and payload

Definition at line 37 of file waps_frames.h.

◆ WAPS_MAX_FRAME_PAYLOAD

#define WAPS_MAX_FRAME_PAYLOAD   (uint16_t)(sizeof(waps_frame_payload_t))

Length of frame payload

Definition at line 34 of file waps_frames.h.

◆ WAPS_MIN_FRAME_LENGTH

#define WAPS_MIN_FRAME_LENGTH   (uint16_t)(sizeof(frame_header_t))

Length of frame header

Definition at line 31 of file waps_frames.h.