Class to implement operations on diagnostic Monitor interface.
更多...
#include <monitor.h>
|
| struct | CounterBased |
| | Represents the parameters for counter-based debouncing. 更多...
|
| |
| struct | TimeBased |
| | Represents the parameters for time-based debouncing. 更多...
|
| |
|
| | Monitor (const ara::core::InstanceSpecifier &specifier, std::function< void(InitMonitorReason)> initMonitor, std::function< std::int8_t()> getFaultDetectionCounter) |
| | Monitor constructor for Monitors with Monitor-internal debouncing. 更多...
|
| |
| | Monitor (const ara::core::InstanceSpecifier &specifier, std::function< void(InitMonitorReason)> initMonitor, CounterBased defaultValues) |
| | Monitor constructor for Monitors with counter-based debouncing. 更多...
|
| |
| | Monitor (const ara::core::InstanceSpecifier &specifier, std::function< void(InitMonitorReason)> initMonitor, TimeBased defaultValues) |
| | Monitor constructor for Monitors with time-based debouncing. 更多...
|
| |
| void | ReportMonitorAction (MonitorAction action) |
| | Function to report the status information being relevant for error monitoring paths. 更多...
|
| |
| ara::core::Result< void > | Offer () |
| | This Offer will enable the DM to forward request messages to this handler. 更多...
|
| |
| void | StopOffer () |
| | This StopOffer will disable the forwarding of request messages from DM. 更多...
|
| |
Class to implement operations on diagnostic Monitor interface.
- Swsid
- SWS_DM_00542
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- class
- 符号
- ara::diag::Monitor
- 范围
- namespace ara::diag
- 基类
- N/A
- 分类
- ara
- 头文件
- ara/diag/monitor.h
- 注解
- Class to implement operations on diagnostic Monitor interface.
- 模板参数
-
在文件 第 行定义.
◆ Monitor() [1/3]
| ara::diag::Monitor::Monitor |
( |
const ara::core::InstanceSpecifier & |
specifier, |
|
|
std::function< void(InitMonitorReason)> |
initMonitor, |
|
|
std::function< std::int8_t()> |
getFaultDetectionCounter |
|
) |
| |
Monitor constructor for Monitors with Monitor-internal debouncing.
- 模板参数
-
- 参数
-
| [in] | specifier | InstanceSpecifier to an PortPrototype of an DiagnosticMonitorInterface. |
| [in] | initMonitor | Possibility to register an InitMonitor callback. |
| [in] | getFaultDetectionCounter | Possibility to register a function to get the current FDC for this event. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00548
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- N/A
- Fireandforget
- N/A
- 错误
- N/A
- 头文件
- ara/diag/monitor.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ Monitor() [2/3]
| ara::diag::Monitor::Monitor |
( |
const ara::core::InstanceSpecifier & |
specifier, |
|
|
std::function< void(InitMonitorReason)> |
initMonitor, |
|
|
CounterBased |
defaultValues |
|
) |
| |
Monitor constructor for Monitors with counter-based debouncing.
- 模板参数
-
- 参数
-
| [in] | specifier | InstanceSpecifier to an PortPrototype of an DiagnosticMonitorInterface. |
| [in] | initMonitor | Possibility to register an InitMonitor callback. |
| [in] | defaultValues | Default values for CounterBased debouncing. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00549
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- N/A
- Fireandforget
- N/A
- 错误
- N/A
- 头文件
- ara/diag/monitor.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ Monitor() [3/3]
| ara::diag::Monitor::Monitor |
( |
const ara::core::InstanceSpecifier & |
specifier, |
|
|
std::function< void(InitMonitorReason)> |
initMonitor, |
|
|
TimeBased |
defaultValues |
|
) |
| |
Monitor constructor for Monitors with time-based debouncing.
- 模板参数
-
- 参数
-
| [in] | specifier | InstanceSpecifier to an PortPrototype of an DiagnosticMonitorInterface. |
| [in] | initMonitor | Possibility to register an InitMonitor callback. |
| [in] | defaultValues | Default values for TimeBased debouncing. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00550
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- N/A
- Fireandforget
- N/A
- 错误
- N/A
- 头文件
- ara/diag/monitor.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ Offer()
| ara::core::Result< void > ara::diag::Monitor::Offer |
( |
| ) |
|
This Offer will enable the DM to forward request messages to this handler.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | ara::core::Result<void> | |
| [in,out] | N/A | |
- 返回
- ara::core::Result<void>
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_01088
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- N/A
- Fireandforget
- N/A
- 错误
- DiagErrorDomain::DiagOfferErrc::kAlreadyOffered This service was already offered.
- 错误
- DiagErrorDomain::DiagReportingErrc::kGenericError Connection to DM lost
- 头文件
- ara/diag/monitor.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
引用了 ara::diag::kAlreadyOffered.
◆ ReportMonitorAction()
| void ara::diag::Monitor::ReportMonitorAction |
( |
MonitorAction |
action | ) |
|
Function to report the status information being relevant for error monitoring paths.
- 模板参数
-
- 参数
-
| [in] | action | Contains either the last (un-)qualified test result of the diagnostic monitor or commands to control the debouncing or to force a prestorage. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00543
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- N/A
- Fireandforget
- N/A
- 错误
- N/A
- 头文件
- ara/diag/monitor.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ StopOffer()
| void ara::diag::Monitor::StopOffer |
( |
| ) |
|
This StopOffer will disable the forwarding of request messages from DM.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_01089
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- N/A
- Fireandforget
- N/A
- 错误
- N/A
- 头文件
- ara/diag/monitor.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.