Vanetza
Loading...
Searching...
No Matches
pppp.hpp
1
#
pragma
once
2
#
include
<
vanetza
/
access
/
access_category
.
hpp
>
3
#
include
<
cstdint
>
4
5
namespace
vanetza
6
{
7
namespace
access
8
{
9
10
/**
11
* \brief map access category to PPPP for C-V2X
12
*
13
* Mapping is according to EN 303 613 V1.1.1 Table B.7
14
*
15
* \param ac access category from 802.11
16
* \return matching PPPP value
17
*/
18
constexpr
std::uint8_t pppp_from_ac(AccessCategory ac)
19
{
20
switch
(ac) {
21
case
AccessCategory::VO:
22
return
2;
23
case
AccessCategory::VI:
24
return
4;
25
case
AccessCategory::BE:
26
return
5;
27
case
AccessCategory::BK:
28
default
:
29
return
7;
30
}
31
}
32
33
}
// namespace access
34
}
// namespace vanetza
vanetza::MacAddress
Definition
mac_address.hpp:19
vanetza::dcc::ChannelLoad
Definition
channel_load.hpp:12
vanetza::rpc::LinkLayerClient
Definition
link_layer_client.hpp:24
vanetza::rpc::Logger
Definition
logger.hpp:9
VANETZA_RPC_LOG_DEBUG
#define VANETZA_RPC_LOG_DEBUG(logger, module, message)
Definition
logger.hpp:21
VANETZA_RPC_LOG_ERROR
#define VANETZA_RPC_LOG_ERROR(logger, module, message)
Definition
logger.hpp:17
vanetza::access::DataRequest
Definition
data_request.hpp:14
vanetza::rpc::LinkLayerClient::Identity
Definition
link_layer_client.hpp:52
vanetza::rpc::LinkLayerClient::Indication
Definition
link_layer_client.hpp:42
vanetza
access
pppp.hpp
Generated on
for Vanetza by
1.16.1