Logo
中文版
详情联系: neusar-support@reachauto.com
ara::diag::DoIPPowerMode类 参考abstract

DiagnosticDoIPPowerModeInterface. 更多...

#include <doip_power_mode.h>

ara::diag::DoIPPowerMode 的协作图:
Collaboration graph

Public 类型

enum  PowerModeType { PowerModeType::kNotReady = 0x00, PowerModeType::kReady = 0x01, PowerModeType::kNotSupported = 0x02 }
 PowerMode as defined in ISO13400-2. 更多...
 

Public 成员函数

 DoIPPowerMode (const ara::core::InstanceSpecifier &specifier, ReentrancyType reentrancyType)
 Constructor of DoIPPowerMode. 更多...
 
virtual ~DoIPPowerMode () noexcept
 Destructor of DoIPPowerMode. 更多...
 
virtual ara::core::Future< PowerModeTypeGetDoIPPowerMode ()=0
 Called to get the current Power Mode for the DoIP protocol. 更多...
 
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. 更多...
 

详细描述

DiagnosticDoIPPowerModeInterface.

Swsid
SWS_DM_00731
符合标准
Yes
非标原因
N/A
种类
class
符号
DoIPPowerMode
范围
namespace ara::diag
基类
N/A
分类
ara
头文件
ara/diag/doip_power_mode.h
注解
The DoIPPowerMode service is used by DM to obtain the current diagnostic status specified in ISO13400.
模板参数
N/A

在文件 第 行定义.

成员枚举类型说明

◆ PowerModeType

PowerMode as defined in ISO13400-2.

Swsid
SWS_DM_00730
符合标准
Yes
非标原因
N/A
种类
enumeration
符号
PowerModeType
范围
class ara::diag::DoIPPowerMode
分类
ara
头文件
ara/diag/doip_power_mode.h
注解
PowerModeType is a structure for the PowerMode enumeration type defined in ISO13400-2.
枚举值
kNotReady 

not all ECUs accessible via DoIP can communicate

kReady 

all ECUs accessible via DoIP can communicate

kNotSupported 

the Diagnostic Information Power Mode Information Request message is not supported

在文件 第 行定义.

构造及析构函数说明

◆ DoIPPowerMode()

ara::diag::DoIPPowerMode::DoIPPowerMode ( const ara::core::InstanceSpecifier &  specifier,
ReentrancyType  reentrancyType 
)
explicit

Constructor of DoIPPowerMode.

模板参数
N/A
参数
[in]specifierInstanceSpecifier to an PortPrototype of an DiagnosticDoIPPowerModeInterface
[in]specifierspecifies if interface is callable fully- or non-reentrant
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
异常
N/A
Swsid
SWS_DM_00732
符合标准
yes
非标原因
N/A
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
ara/diag/doip_power_mode.h
异常安全
N/A
分类
ara

在文件 第 行定义.

◆ ~DoIPPowerMode()

ara::diag::DoIPPowerMode::~DoIPPowerMode ( )
virtualnoexcept

Destructor of DoIPPowerMode.

模板参数
N/A
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
异常
N/A
Swsid
SWS_DM_00733
符合标准
yes
非标原因
N/A
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
ara/diag/doip_power_mode.h
异常安全
noexcept
分类
ara

在文件 第 行定义.

成员函数说明

◆ GetDoIPPowerMode()

virtual ara::core::Future<PowerModeType> ara::diag::DoIPPowerMode::GetDoIPPowerMode ( )
pure virtual

Called to get the current Power Mode for the DoIP protocol.

参数
[in]N/A
[out]N/A
[in,out]N/A
返回
ara::core::Future<PowerModeType>
注解
N/A
异常
N/A
Swsid
SWS_DM_00734
符合标准
yes
非标原因
N/A
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
ara/diag/doip_power_mode.h
异常安全
N/A
分类
ara

◆ Offer()

ara::core::Result< void > ara::diag::DoIPPowerMode::Offer ( )

This Offer will enable the DM to forward request messages to this handler.

模板参数
N/A
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
ara::core::Result<void>
注解
N/A
异常
N/A
Swsid
SWS_DM_00735
符合标准
yes
非标原因
N/A
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
DiagErrorDomain::DiagReportingErrc::kGenericError
错误
DiagErrorDomain::DiagOfferErrc::kAlreadyOffered
头文件
ara/diag/doip_power_mode.h
异常安全
N/A
分类
ara

在文件 第 行定义.

引用了 ara::diag::kAlreadyOffered.

◆ StopOffer()

void ara::diag::DoIPPowerMode::StopOffer ( )

This StopOffer will disable the forwarding of request messages from DM.

模板参数
N/A
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
异常
N/A
Swsid
SWS_DM_00736
符合标准
yes
非标原因
N/A
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
ara/diag/doip_power_mode.h
异常安全
N/A
分类
ara

在文件 第 行定义.