DESERT 3.5.1
Loading...
Searching...
No Matches
uwpolling_cmn_hdr.h File Reference
#include <mmac.h>
#include <module.h>
#include <packet.h>
#include <list>
Include dependency graph for uwpolling_cmn_hdr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  POLL_ID
 
struct  hdr_TRIGGER
 
struct  hdr_POLL
 
struct  hdr_PROBE
 
struct  hdr_PROBE_SINK
 
struct  hdr_AUV_MULE
 
struct  hdr_ACK_SINK
 

Macros

#define HDR_PROBE(p)    (hdr_PROBE::access(p))
 
#define HDR_TRIGGER(p)    (hdr_TRIGGER::access(p))
 
#define HDR_POLL(p)    (hdr_POLL::access(p))
 
#define HDR_AUV_MULE(p)    (hdr_AUV_MULE::access(p)
 
#define HDR_ACK_SINK(p)    (hdr_ACK_SINK::access(p)
 
#define HDR_PROBE_SINK(p)    (hdr_PROBE_SINK::access(p)
 

Typedefs

typedef struct POLL_ID id_poll
 
typedef struct hdr_TRIGGER hdr_TRIGGER
 
typedef struct hdr_POLL hdr_POLL
 
typedef struct hdr_PROBE hdr_PROBE
 
typedef struct hdr_PROBE_SINK hdr_PROBE_SINK
 
typedef struct hdr_AUV_MULE hdr_AUV_MULE
 
typedef struct hdr_ACK_SINK hdr_ACK_SINK
 

Variables

packet_t PT_TRIGGER
 
packet_t PT_POLL
 
packet_t PT_PROBE
 
packet_t PT_PROBE_SINK
 
packet_t PT_AUV_MULE
 
packet_t PT_ACK_SINK
 
static const int MAX_POLLED_NODE = 4000
 
static const double MIN_T_POLL = 5
 
static const double MIN_T_DATA = 5
 
static const int MAX_BUFFER_SIZE
 
static const int prop_speed
 

Detailed Description

Common structures and variables in the protocol.

Author
Federico Favaro
Version
1.0.0

Definition in file uwpolling_cmn_hdr.h.

Macro Definition Documentation

◆ HDR_ACK_SINK

#define HDR_ACK_SINK (   p)     (hdr_ACK_SINK::access(p)

alias defined to access the ACK SINK HEADER

Definition at line 65 of file uwpolling_cmn_hdr.h.

◆ HDR_AUV_MULE

#define HDR_AUV_MULE (   p)     (hdr_AUV_MULE::access(p)

alias defined to access the AUV MULE HEADER

Definition at line 61 of file uwpolling_cmn_hdr.h.

◆ HDR_POLL

#define HDR_POLL (   p)     (hdr_POLL::access(p))

alias defined to access the POLL HEADER

Definition at line 58 of file uwpolling_cmn_hdr.h.

◆ HDR_PROBE

#define HDR_PROBE (   p)     (hdr_PROBE::access(p))

alias defined to access the PROBE HEADER

Definition at line 51 of file uwpolling_cmn_hdr.h.

◆ HDR_PROBE_SINK

#define HDR_PROBE_SINK (   p)     (hdr_PROBE_SINK::access(p)

alias defined to access the ACK SINK HEADER

Definition at line 68 of file uwpolling_cmn_hdr.h.

◆ HDR_TRIGGER

#define HDR_TRIGGER (   p)     (hdr_TRIGGER::access(p))

alias defined to access the TRIGGER HEADER \

Definition at line 55 of file uwpolling_cmn_hdr.h.

Typedef Documentation

◆ hdr_ACK_SINK

typedef struct hdr_ACK_SINK hdr_ACK_SINK

Header of the ACK sent by the SINK.

◆ hdr_AUV_MULE

typedef struct hdr_AUV_MULE hdr_AUV_MULE

Header of the data sent from AUV MULE to SINK.

◆ hdr_POLL

typedef struct hdr_POLL hdr_POLL

Header of the POLL message.

◆ hdr_PROBE

typedef struct hdr_PROBE hdr_PROBE

Header of the PROBE message.

◆ hdr_PROBE_SINK

Header of the PROBE message.

◆ hdr_TRIGGER

typedef struct hdr_TRIGGER hdr_TRIGGER

Header of the TRIGGER message.

◆ id_poll

typedef struct POLL_ID id_poll

Single location of the POLL vector.

Each POLL_ID represent a polled node

Variable Documentation

◆ MAX_BUFFER_SIZE

const int MAX_BUFFER_SIZE
static
Initial value:
=
100

Maximum size of the queue in number of packets.

Definition at line 80 of file uwpolling_cmn_hdr.h.

◆ MAX_POLLED_NODE

const int MAX_POLLED_NODE = 4000
static

Maximum number of node to POLL.

Definition at line 77 of file uwpolling_cmn_hdr.h.

◆ MIN_T_DATA

const double MIN_T_DATA = 5
static

Minimum duration of the DATA timer.

Definition at line 79 of file uwpolling_cmn_hdr.h.

◆ MIN_T_POLL

const double MIN_T_POLL = 5
static

Minimum duration of the POLL timer.

Definition at line 78 of file uwpolling_cmn_hdr.h.

◆ prop_speed

const int prop_speed
static
Initial value:
=
1500

Typical underwater sound propagation speed.

Definition at line 82 of file uwpolling_cmn_hdr.h.

◆ PT_ACK_SINK

packet_t PT_ACK_SINK
extern

◆ PT_AUV_MULE

packet_t PT_AUV_MULE
extern

◆ PT_POLL

packet_t PT_POLL
extern

◆ PT_PROBE

packet_t PT_PROBE
extern

◆ PT_PROBE_SINK

packet_t PT_PROBE_SINK
extern

◆ PT_TRIGGER

packet_t PT_TRIGGER
extern