DESERT 4.0.0
probe_cicle_counters Struct Reference

#include <uwpolling_AUV.h>

Collaboration diagram for probe_cicle_counters:
Collaboration graph

Public Member Functions

void incrementCounters ()
 
void resetCounters ()
 
uint getNumberOfNeighbors ()
 

Public Attributes

uint n_probe_detected
 
uint n_probe_received
 

Detailed Description

Struct used for handling the number of probes detected and received to estimate the number of neighbors.

Member Function Documentation

◆ getNumberOfNeighbors()

uint probe_cicle_counters::getNumberOfNeighbors ( )
inline

Get estimate number of neighbors

References n_probe_detected, and n_probe_received.

Referenced by Uwpolling_AUV::getMaxBackoffTime().

◆ incrementCounters()

void probe_cicle_counters::incrementCounters ( )
inline

Increment both counters

References n_probe_detected, and n_probe_received.

Referenced by Uwpolling_AUV::Phy2MacEndRx().

◆ resetCounters()

void probe_cicle_counters::resetCounters ( )
inline

Reset both counters

References n_probe_detected, and n_probe_received.

Referenced by Uwpolling_AUV::stateTxTrigger(), and Uwpolling_AUV::Uwpolling_AUV().

Member Data Documentation

◆ n_probe_detected

uint probe_cicle_counters::n_probe_detected

Number of probe (prehamble) detected in a round by the MAC

Referenced by Uwpolling_AUV::getMaxBackoffTime(), getNumberOfNeighbors(), incrementCounters(), Uwpolling_AUV::Phy2MacEndRx(), and resetCounters().

◆ n_probe_received

uint probe_cicle_counters::n_probe_received

Number of probe received in a round (i.e., prehamble received)

Referenced by Uwpolling_AUV::getMaxBackoffTime(), getNumberOfNeighbors(), incrementCounters(), and resetCounters().


The documentation for this struct was generated from the following file: