Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::e2e::Profile11 Class Reference

E2E Profile11 variant A implementation. More...

#include <profile11.h>

Inheritance diagram for ara::com::e2e::Profile11:
ara::com::e2e::Profile

Public Member Functions

bool TryProtect (const std::vector< uint8_t > &unprotectedData, std::vector< uint8_t > &protectedData) override
 Try to protect a message payload by inserting a CRC header. More...
 
bool TryForward (const std::vector< uint8_t > &unprotectedData, std::vector< uint8_t > &protectedData) override
 Try to protect a message payload by inserting a CRC header while replicating the E2E status. More...
 
CheckStatusType Check (const std::vector< uint8_t > &protectedData) override
 Check whether a message is received correctly or not. More...
 

Detailed Description

E2E Profile11 variant A implementation.

Remarks
The CRC calculation is based on CRC table without any hardware acceleration.

Member Function Documentation

◆ Check()

CheckStatusType ara::com::e2e::Profile11::Check ( const std::vector< uint8_t > &  protectedData)
overridevirtual

Check whether a message is received correctly or not.

Parameters
protectedDataMessage payload containing the CRC protection to be checked
Returns
The result of checking the message protection
Remarks
The profile internal state (e.g., counter delta) can be changed after calling the function.

Implements ara::com::e2e::Profile.

◆ TryForward()

bool ara::com::e2e::Profile11::TryForward ( const std::vector< uint8_t > &  unprotectedData,
std::vector< uint8_t > &  protectedData 
)
overridevirtual

Try to protect a message payload by inserting a CRC header while replicating the E2E status.

Parameters
[in]unprotectedDataMessage payload without any protection
[out]protectedDataMessage payload containing the CRC protection
Returns
True if the protected data is generated successfully; otherwise false
Remarks
The 'protectedData' should be ignored in case of getting 'false' as the return value.
The profile internal state (e.g., counter) can be changed in case of getting 'true' as the return value.
See also
TryProtect

Implements ara::com::e2e::Profile.

◆ TryProtect()

bool ara::com::e2e::Profile11::TryProtect ( const std::vector< uint8_t > &  unprotectedData,
std::vector< uint8_t > &  protectedData 
)
overridevirtual

Try to protect a message payload by inserting a CRC header.

Parameters
[in]unprotectedDataMessage payload without any protection
[out]protectedDataMessage payload containing the CRC protection
Returns
True if the protected data is generated successfully; otherwise false
Remarks
The 'protectedData' should be ignored in case of getting 'false' as the return value.
The profile internal state (e.g., counter) can be changed in case of getting 'true' as the return value.

Implements ara::com::e2e::Profile.