NetSim Source Code Help
Loading...
Searching...
No Matches
WSMP.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  wsmp_header
 
struct  wsmp_data
 

Macros

#define _NETSIM_WSMP_H_
 
#define WSMP_WSM_MAX_LENGTH_DEFAULT   1400
 
#define WSMP_HDR_LEN   11
 
#define GET_WSMP_DATA(devId)   ((PWSMP_DATA)DEVICE_TRXLayer(devId)->TransportProtocolVar)
 
#define GET_CURR_WSMP_DATA   GET_WSMP_DATA(pstruEventDetails->nDeviceId)
 
#define SET_WSMP_DATA(devId, data)   (DEVICE_TRXLayer(devId)->TransportProtocolVar=(void*)data)
 

Typedefs

typedef struct wsmp_header WSMP_HDR
 
typedef struct wsmp_headerPWSMP_HDR
 
typedef struct wsmp_data WSMP_DATA
 
typedef struct wsmp_dataPWSMP_DATA
 

Functions

static __inline PWSMP_HDR GET_WSMP_HDR (NetSim_PACKET *packet)
 
static __inline void SET_WSMP_HDR (NetSim_PACKET *packet, PWSMP_HDR hdr)
 

Macro Definition Documentation

◆ _NETSIM_WSMP_H_

#define _NETSIM_WSMP_H_

Definition at line 16 of file WSMP.h.

◆ GET_CURR_WSMP_DATA

#define GET_CURR_WSMP_DATA   GET_WSMP_DATA(pstruEventDetails->nDeviceId)

Definition at line 60 of file WSMP.h.

◆ GET_WSMP_DATA

#define GET_WSMP_DATA (   devId)    ((PWSMP_DATA)DEVICE_TRXLayer(devId)->TransportProtocolVar)

Definition at line 59 of file WSMP.h.

◆ SET_WSMP_DATA

#define SET_WSMP_DATA (   devId,
  data 
)    (DEVICE_TRXLayer(devId)->TransportProtocolVar=(void*)data)

Definition at line 61 of file WSMP.h.

◆ WSMP_HDR_LEN

#define WSMP_HDR_LEN   11

Definition at line 23 of file WSMP.h.

◆ WSMP_WSM_MAX_LENGTH_DEFAULT

#define WSMP_WSM_MAX_LENGTH_DEFAULT   1400

Definition at line 21 of file WSMP.h.

Typedef Documentation

◆ PWSMP_DATA

typedef struct wsmp_data * PWSMP_DATA

◆ PWSMP_HDR

typedef struct wsmp_header* PWSMP_HDR

◆ WSMP_DATA

typedef struct wsmp_data WSMP_DATA

◆ WSMP_HDR

typedef struct wsmp_header WSMP_HDR

Function Documentation

◆ GET_WSMP_HDR()

static __inline PWSMP_HDR GET_WSMP_HDR ( NetSim_PACKET packet)
static

Definition at line 38 of file WSMP.h.

◆ SET_WSMP_HDR()

static __inline void SET_WSMP_HDR ( NetSim_PACKET packet,
PWSMP_HDR  hdr 
)
static

Definition at line 46 of file WSMP.h.

Here is the caller graph for this function: