2022-06-05 12:54:13 +02:00
|
|
|
#include "DeviceFdirMock.h"
|
|
|
|
|
2022-07-18 11:58:55 +02:00
|
|
|
#include "devicehandler/DeviceFdirMock.h"
|
2022-06-05 12:54:13 +02:00
|
|
|
|
|
|
|
DeviceFdirMock::DeviceFdirMock(object_id_t owner, object_id_t parent)
|
|
|
|
: DeviceHandlerFailureIsolation(owner, parent) {}
|
|
|
|
|
|
|
|
DeviceFdirMock::~DeviceFdirMock() {}
|
|
|
|
|
|
|
|
uint32_t DeviceFdirMock::getMissedReplyCount() {
|
|
|
|
ParameterWrapper parameterWrapper;
|
|
|
|
this->getParameter(MISSED_REPLY_DOMAIN_ID,
|
|
|
|
static_cast<uint8_t>(FaultCounter::ParameterIds::FAULT_COUNT),
|
|
|
|
¶meterWrapper, nullptr, 0);
|
|
|
|
uint32_t missedReplyCount = 0;
|
|
|
|
parameterWrapper.getElement(&missedReplyCount);
|
|
|
|
return missedReplyCount;
|
|
|
|
}
|