Upload service interface.
更多...
#include <upload.h>
Upload service interface.
- Swsid
- SWS_DM_00794
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- class
- 符号
- UploadService
- 范围
- namespace ara::diag
- 基类
- N/A
- 分类
- ara
- 头文件
- ara/diag/upload.h
- 注解
- The UploadService service is used to transfer the value in the specified memory of the ECU to the tester.
- 模板参数
-
在文件 第 行定义.
◆ UploadService()
| ara::diag::UploadService::UploadService |
( |
const ara::core::InstanceSpecifier & |
specifier, |
|
|
ReentrancyType |
reentrancyType |
|
) |
| |
|
explicit |
Class for an UploadService.
- 模板参数
-
- 参数
-
| [in] | specifier | InstanceSpecifier to an PortPrototype of an DownloadServiceInterface |
| [in] | reentrancyType | specifies if interface is callable fully- or non-reentrant |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00797
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- N/A
- 头文件
- ara/diag/upload.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ ~UploadService()
| ara::diag::UploadService::~UploadService |
( |
| ) |
|
|
virtualnoexcept |
Destructor of class UploadService.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00798
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- N/A
- 头文件
- ara/diag/upload.h
- 异常安全
- noexcept
- 分类
- ara
在文件 第 行定义.
◆ Offer()
| ara::core::Result< void > ara::diag::UploadService::Offer |
( |
| ) |
|
This Offer will enable the DM to forward request messages to this handler.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Result<void>
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00802
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagErrorDomain::DiagReportingErrc::kGenericError
- 错误
- DiagErrorDomain::DiagOfferErrc::kAlreadyOffered
- 头文件
- ara/diag/upload.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
引用了 ara::diag::kAlreadyOffered.
◆ RequestUpload()
| virtual ara::core::Future<void> ara::diag::UploadService::RequestUpload |
( |
std::uint8_t |
dataFormatIdentifier, |
|
|
std::uint8_t |
addressAndLengthFormatIdentifier, |
|
|
ara::core::Span< std::uint8_t > |
memoryAddressAndSize, |
|
|
MetaInfo & |
metaInfo, |
|
|
CancellationHandler & |
cancellationHandler |
|
) |
| |
|
pure virtual |
Called for RequestUpload.
- 模板参数
-
- 参数
-
| [in] | dataFormatIdentifier | UDS dataFormat Identifier. |
| [in] | addressAndLengthFormatIdentifier | UDS addressAndLengthFormatIdentifier. |
| [in] | memoryAddressAndSize | memoryAddress and memorySize part of the request. |
| [in] | metaInfo | contains additional meta information. |
| [in] | cancellationHandler | informs if the current conversation is canceled. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Future<void>
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00799
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kIncorrectMessageLengthOrInvalidFormat
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kConditionsNotCorrect
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestOutOfRange
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kSecurityAccessDenied
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kUploadDownloadNotAccepted
- 头文件
- ara/diag/upload.h
- 异常安全
- N/A
- 分类
- ara
◆ RequestUploadExit()
| virtual ara::core::Future<OperationOutput> ara::diag::UploadService::RequestUploadExit |
( |
ara::core::Span< std::uint8_t > |
transferRequestParameterRecord, |
|
|
MetaInfo & |
metaInfo, |
|
|
CancellationHandler & |
cancellationHandler |
|
) |
| |
|
pure virtual |
Called for RequestTransferExit.
- 模板参数
-
- 参数
-
| [in] | transferRequestParameterRecord | This parameter record contains parameter(s), which are required by the server to support the transfer of data. Format and length of this parameter(s) are vehicle manufacturer specific. |
| [in] | metaInfo | contains additional meta information. |
| [in] | cancellationHandler | informs if the current conversation is canceled. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Future<OperationOutput>
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00801
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kIncorrectMessageLengthOrInvalidFormat
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestSequenceError
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestOutOfRange
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kGeneralProgrammingFailure
- 头文件
- ara/diag/upload.h
- 异常安全
- N/A
- 分类
- ara
◆ StopOffer()
| void ara::diag::UploadService::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_00803
- 符合标准
- no
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- N/A
- 头文件
- ara/diag/upload.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ UploadData()
Called for TransferData following a previous RequestUpload.
- 模板参数
-
- 参数
-
| [in] | numBytesToReturn | number of bytes DM accepts (due to its internalbuffer) for this chunk. |
| [in] | metaInfo | contains additional meta information. |
| [in] | cancellationHandler | informs if the current conversation is canceled. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Future<OperationOutput>
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00800
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kIncorrectMessageLengthOrInvalidFormat
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestSequenceError
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestOutOfRange
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kTransferDataSuspended
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kGeneralProgrammingFailure
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kWrongBlockSequenceCounter
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kVoltageTooHigh
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kVoltageTooLow
- 头文件
- ara/diag/upload.h
- 异常安全
- N/A
- 分类
- ara