Class to implement operations on diagnostic Events. 更多...
#include <event.h>

Public 类型 | |
| enum | DebouncingState : uint8_t { DebouncingState::kNeutral = 0x00, DebouncingState::kTemporarilyDefective = 0x01, DebouncingState::kFinallyDefective = 0x02, DebouncingState::kTemporarilyHealed = 0x04, DebouncingState::kFinallyHealed = 0x08 } |
| Debounce status of event . 更多... | |
| using | EventStatusByte = std::uint8_t |
| Current event status bit-encoded. 更多... | |
Public 成员函数 | |
| Event (const ara::core::InstanceSpecifier &specifier) | |
| Constructor fct. for objects of class Event. 更多... | |
| ~Event () noexcept=default | |
| Destructor of class Event. 更多... | |
| ara::core::Result< EventStatusByte > | GetEventStatus () |
| Returns the current diagnostic event status. 更多... | |
| ara::core::Result< void > | SetEventStatusChangedNotifier (std::function< void(EventStatusByte)> notifier) |
| Register a notifier function which is called if a diagnostic event is changed. 更多... | |
| ara::core::Result< std::uint32_t > | GetDTCNumber (DTCFormatType dtcFormat) |
| Returns the DTC-ID related to this event instance. 更多... | |
| ara::core::Result< DebouncingState > | GetDebouncingStatus () |
| Get the current debouncing status. 更多... | |
| ara::core::Result< std::int8_t > | GetFaultDetectionCounter () |
| Returns the current value of fault detection counter of this event. 更多... | |
Class to implement operations on diagnostic Events.
| N/A |
在文件 第 行定义.
| using ara::diag::Event::EventStatusByte = std::uint8_t |
Current event status bit-encoded.
在文件 第 行定义.
|
strong |
Debounce status of event .
在文件 第 行定义.
|
explicit |
Constructor fct. for objects of class Event.
| N/A |
| [in] | specifier | InstanceSpecifier to an PortPrototype of an DiagnosticEventInterface. |
| [out] | N/A | |
| [in,out] | N/A |
| N/A |
在文件 第 行定义.
|
defaultnoexcept |
Destructor of class Event.
| N/A |
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A |
| N/A |
| ara::core::Result< ara::diag::Event::DebouncingState > ara::diag::Event::GetDebouncingStatus | ( | ) |
Get the current debouncing status.
| N/A |
| [in] | N/A | |
| [out] | ara::core::Result<DebouncingState> | Return the current debouncing state of this event. |
| [in,out] | N/A |
| N/A |
在文件 第 行定义.
| ara::core::Result< std::uint32_t > ara::diag::Event::GetDTCNumber | ( | DTCFormatType | dtcFormat | ) |
Returns the DTC-ID related to this event instance.
| N/A |
| [in] | dtc_format | Define DTC format for the return value. |
| [out] | ara::core::Result<std::uint32_t> | DTC number in respective DTCFormatType. |
| [in,out] | N/A |
| N/A |
在文件 第 行定义.
| ara::core::Result< ara::diag::Event::EventStatusByte > ara::diag::Event::GetEventStatus | ( | ) |
Returns the current diagnostic event status.
| N/A |
| [in] | N/A | |
| [out] | ara::core::Result<EventStatusByte> | the current diagnostic event status. |
| [in,out] | N/A |
| N/A |
在文件 第 行定义.
| ara::core::Result< std::int8_t > ara::diag::Event::GetFaultDetectionCounter | ( | ) |
Returns the current value of fault detection counter of this event.
| N/A |
| [in] | N/A | |
| [out] | ara::core::Result<std::int8_t> | current faultDetectionCounter value. |
| [in,out] | N/A |
| N/A |
在文件 第 行定义.
| ara::core::Result< void > ara::diag::Event::SetEventStatusChangedNotifier | ( | std::function< void(EventStatusByte)> | notifier | ) |
Register a notifier function which is called if a diagnostic event is changed.
| N/A |
| [in] | notifier | The function to be called if a diagnostic event is changed. |
| [out] | ara::core::Result<void> | |
| [in,out] | N/A |
| N/A |
在文件 第 行定义.