2021-05-24 00:30:46 +02:00
|
|
|
#include "GyroADIS16507Handler.h"
|
|
|
|
|
|
|
|
GyroADIS16507Handler::GyroADIS16507Handler(object_id_t objectId,
|
|
|
|
object_id_t deviceCommunication, CookieIF * comCookie):
|
|
|
|
DeviceHandlerBase(objectId, deviceCommunication, comCookie) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void GyroADIS16507Handler::doStartUp() {
|
2021-05-24 01:20:44 +02:00
|
|
|
if(internalState == InternalState::STARTUP) {
|
|
|
|
if(commandExecuted) {
|
|
|
|
commandExecuted = false;
|
|
|
|
internalState = InternalState::IDLE;
|
|
|
|
}
|
|
|
|
}
|
2021-05-24 00:30:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void GyroADIS16507Handler::doShutDown() {
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GyroADIS16507Handler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GyroADIS16507Handler::buildTransitionDeviceCommand(DeviceCommandId_t *id) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GyroADIS16507Handler::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
|
|
|
|
const uint8_t *commandData, size_t commandDataLen) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GyroADIS16507Handler::fillCommandAndReplyMap() {
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GyroADIS16507Handler::scanForReply(const uint8_t *start, size_t remainingSize,
|
|
|
|
DeviceCommandId_t *foundId, size_t *foundLen) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GyroADIS16507Handler::interpretDeviceReply(DeviceCommandId_t id,
|
|
|
|
const uint8_t *packet) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GyroADIS16507Handler::setNormalDatapoolEntriesInvalid() {
|
|
|
|
}
|
2021-05-24 01:20:44 +02:00
|
|
|
|
|
|
|
uint32_t GyroADIS16507Handler::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) {
|
|
|
|
return 5000;
|
|
|
|
}
|