52 LoraTag(uint8_t sf = 0, uint8_t destroyedBy = 0);
56 virtual void Serialize(TagBuffer i)
const;
59 virtual void Print(std::ostream& os)
const;
Tag used to save various data about a packet, like its Spreading Factor and data about interference.
uint8_t m_sf
The Spreading Factor used by the packet.
double GetFrequency(void)
Get the frequency of the packet.
uint8_t m_modcod
The Modcod ID used by the packet.
void SetSpreadingFactor(uint8_t sf)
Set which Spreading Factor this packet was transmitted with.
static TypeId GetTypeId(void)
uint8_t m_dataRate
The Data Rate that needs to be used to send this.
uint8_t GetSpreadingFactor() const
Read which Spreading Factor this packet was transmitted with.
double m_receivePower
The reception power of this packet.
void SetDestroyedBy(uint8_t sf)
Set which Spreading Factor this packet was destroyed by.
uint8_t GetDataRate(void)
Get the data rate for this packet.
virtual TypeId GetInstanceTypeId(void) const
virtual uint32_t GetSerializedSize() const
void SetDataRate(uint8_t dataRate)
Set the data rate for this packet.
uint8_t GetModcod(void)
Get the modcod for this packet.
virtual void Serialize(TagBuffer i) const
void SetFrequency(double frequency)
Set the frequency of the packet.
double GetReceivePower() const
Read the power this packet arrived with.
virtual void Deserialize(TagBuffer i)
void SetReceivePower(double receivePower)
Set the power this packet was received with.
virtual void Print(std::ostream &os) const
double m_frequency
packet.
void SetModcod(uint8_t modcod)
Set the modcod for this packet.
LoraTag(uint8_t sf=0, uint8_t destroyedBy=0)
Create a LoraTag with a given spreading factor and collision.
uint8_t GetDestroyedBy() const
Read which Spreading Factor this packet was destroyed by.
uint8_t m_destroyedBy
The Spreading Factor that destroyed the packet.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.