Vanetza
 
Loading...
Searching...
No Matches
vanetza::geonet::DccMcoField Class Reference

#include <dcc_mco_field.hpp>

Public Types

using ChannelLoad = dcc::ChannelLoad
 

Public Member Functions

 DccMcoField (const DccMcoField &)=default
 
DccMcoFieldoperator= (const DccMcoField &)=default
 
 DccMcoField (uint32_t)
 
DccMcoFieldoperator= (uint32_t)
 
 operator uint32_t () const
 
void local_cbr (const ChannelLoad &)
 
ChannelLoad local_cbr () const
 
void neighbour_cbr (const ChannelLoad &)
 
ChannelLoad neighbour_cbr () const
 
void output_power (unsigned dbm)
 
unsigned output_power () const
 

Private Types

using cbr_type = uint8_t
 
using power_type = BitNumber< unsigned, 5 >
 

Private Attributes

cbr_type m_cbr_l0_hop
 
cbr_type m_cbr_l1_hop
 
power_type m_output_power
 

Detailed Description

DCC-MCO (Multi Channel Operations) is specified in TS 102 636-4-2 V1.1.1 DccMcoField implements the SHB header field extension.

Definition at line 17 of file dcc_mco_field.hpp.

Member Typedef Documentation

◆ cbr_type

using vanetza::geonet::DccMcoField::cbr_type = uint8_t
private

Definition at line 47 of file dcc_mco_field.hpp.

◆ ChannelLoad

◆ power_type

Definition at line 48 of file dcc_mco_field.hpp.

Constructor & Destructor Documentation

◆ DccMcoField() [1/2]

vanetza::geonet::DccMcoField::DccMcoField ( )

Definition at line 10 of file dcc_mco_field.cpp.

◆ DccMcoField() [2/2]

vanetza::geonet::DccMcoField::DccMcoField ( uint32_t  field)
explicit

Definition at line 15 of file dcc_mco_field.cpp.

Member Function Documentation

◆ local_cbr() [1/2]

dcc::ChannelLoad vanetza::geonet::DccMcoField::local_cbr ( ) const

Definition at line 41 of file dcc_mco_field.cpp.

◆ local_cbr() [2/2]

void vanetza::geonet::DccMcoField::local_cbr ( const ChannelLoad cbr)

Definition at line 36 of file dcc_mco_field.cpp.

◆ neighbour_cbr() [1/2]

dcc::ChannelLoad vanetza::geonet::DccMcoField::neighbour_cbr ( ) const

Definition at line 51 of file dcc_mco_field.cpp.

◆ neighbour_cbr() [2/2]

void vanetza::geonet::DccMcoField::neighbour_cbr ( const ChannelLoad cbr)

Definition at line 46 of file dcc_mco_field.cpp.

◆ operator uint32_t()

vanetza::geonet::DccMcoField::operator uint32_t ( ) const
explicit

Definition at line 22 of file dcc_mco_field.cpp.

◆ output_power() [1/2]

unsigned vanetza::geonet::DccMcoField::output_power ( ) const

Definition at line 61 of file dcc_mco_field.cpp.

◆ output_power() [2/2]

void vanetza::geonet::DccMcoField::output_power ( unsigned  dbm)

Output power of packet transmission

Returns
[0; 31] dBm (values are cramped at limits)

Definition at line 56 of file dcc_mco_field.cpp.

Member Data Documentation

◆ m_cbr_l0_hop

cbr_type vanetza::geonet::DccMcoField::m_cbr_l0_hop
private

Definition at line 50 of file dcc_mco_field.hpp.

◆ m_cbr_l1_hop

cbr_type vanetza::geonet::DccMcoField::m_cbr_l1_hop
private

Definition at line 51 of file dcc_mco_field.hpp.

◆ m_output_power

power_type vanetza::geonet::DccMcoField::m_output_power
private

Definition at line 52 of file dcc_mco_field.hpp.


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