Diagnostic event class that represents a fault path of a system. More...
#include <event.h>
Public Member Functions | |
| Event (const ara::core::InstanceSpecifier &specifier) | |
| Constructor. More... | |
| ara::core::Result< EventStatusByte > | GetEventStatus () |
| Get the event status. More... | |
| void | SetEventStatusBits (std::map< EventStatusBit, bool > statusBits) |
| Set the bits of the event status. More... | |
| ara::core::Result< void > | SetEventStatusChangedNotifier (std::function< void(EventStatusByte)> notifier) |
| Set a notifier on the event status changed. More... | |
| ara::core::Result< bool > | GetLatchedWIRStatus () |
| Get the Warning Indicator Requested bit status. More... | |
| ara::core::Result< void > | SetLatchedWIRStatus (bool status) |
| Set the Warning Indicator Requested bit status. More... | |
| ara::core::Result< uint32_t > | GetDTCNumber (DTCFormatType dtcFormat) |
| Get the Diagnostic Trouble Code (DTC) number relates to the event. More... | |
| void | SetDTCNumber (uint32_t dtcNumber) noexcept |
| Set the Diagnostic Trouble Code (DTC) number relates to the event. More... | |
| ara::core::Result< DebouncingState > | GetDebouncingStatus () |
| Get the event debounding state. More... | |
| ara::core::Result< bool > | GetTestComplete () |
| Indicates whether the event has matured to test completed or not. More... | |
| ara::core::Result< int8_t > | GetFaultDetectionCounter () |
| Get the event Fault Detection Counter (FDC) value. More... | |
| void | SetFaultDetectionCounter (int8_t fdc) noexcept |
| Set the event Fault Detection Counter (FDC) value. More... | |
Diagnostic event class that represents a fault path of a system.
|
explicit |
Constructor.
| specifier | Instance specifier which owns the event |
| ara::core::Result< DebouncingState > ara::diag::Event::GetDebouncingStatus | ( | ) |
Get the event debounding state.
| ara::core::Result< uint32_t > ara::diag::Event::GetDTCNumber | ( | DTCFormatType | dtcFormat | ) |
Get the Diagnostic Trouble Code (DTC) number relates to the event.
| dtcFormat | DTC number format |
| ara::core::Result< EventStatusByte > ara::diag::Event::GetEventStatus | ( | ) |
Get the event status.
| ara::core::Result< int8_t > ara::diag::Event::GetFaultDetectionCounter | ( | ) |
Get the event Fault Detection Counter (FDC) value.
| ara::core::Result< bool > ara::diag::Event::GetLatchedWIRStatus | ( | ) |
Get the Warning Indicator Requested bit status.
| ara::core::Result< bool > ara::diag::Event::GetTestComplete | ( | ) |
Indicates whether the event has matured to test completed or not.
|
noexcept |
Set the Diagnostic Trouble Code (DTC) number relates to the event.
| dtcNumber | DTC number in the UDS format |
| void ara::diag::Event::SetEventStatusBits | ( | std::map< EventStatusBit, bool > | statusBits | ) |
Set the bits of the event status.
| statusBits | A dictionary of event status bits and their corresponding values |
| std::out_of_range | Throws if a bit is out of range |
| ara::core::Result< void > ara::diag::Event::SetEventStatusChangedNotifier | ( | std::function< void(EventStatusByte)> | notifier | ) |
Set a notifier on the event status changed.
| notifier | Callback to be invoked when the event status is changed |
|
noexcept |
Set the event Fault Detection Counter (FDC) value.
| fdc | Current FDC value byte |
| ara::core::Result< void > ara::diag::Event::SetLatchedWIRStatus | ( | bool | status | ) |
Set the Warning Indicator Requested bit status.
| status | Current warning indicator status |