Vanetza
 
Loading...
Searching...
No Matches
vanetza::access::DataRateG5 Class Reference

Public Member Functions

constexpr DataRateG5 (unsigned kbps, unsigned cbits)
 
unsigned bytes_per_second () const
 
std::size_t data_length (std::size_t psdu) const
 

Private Attributes

unsigned m_bytes_per_second
 
unsigned m_coded_bits_per_symbol
 

Detailed Description

Definition at line 11 of file data_rates.hpp.

Constructor & Destructor Documentation

◆ DataRateG5()

constexpr vanetza::access::DataRateG5::DataRateG5 ( unsigned  kbps,
unsigned  cbits 
)
inlineconstexpr

Create data rate for ITS-G5 band

Parameters
kbpskilo-bits per second transfer rate
cbitsnumber of coded bits per symbol

Definition at line 19 of file data_rates.hpp.

Member Function Documentation

◆ bytes_per_second()

unsigned vanetza::access::DataRateG5::bytes_per_second ( ) const
inline

Get tranfer rate as number of bytes per second

Returns
transfer rate

Definition at line 27 of file data_rates.hpp.

◆ data_length()

std::size_t vanetza::access::DataRateG5::data_length ( std::size_t  psdu) const

Calculate length of PHY data length

Parameters
psdusize of PSDU, i.e. MPDU (MAC header + payload)
Returns
length in bytes

Definition at line 9 of file data_rates.cpp.

Member Data Documentation

◆ m_bytes_per_second

unsigned vanetza::access::DataRateG5::m_bytes_per_second
private

Definition at line 37 of file data_rates.hpp.

◆ m_coded_bits_per_symbol

unsigned vanetza::access::DataRateG5::m_coded_bits_per_symbol
private

Definition at line 38 of file data_rates.hpp.


The documentation for this class was generated from the following files: