diff --git a/fsfw_hal b/fsfw_hal index a0f698ff..2fe1a668 160000 --- a/fsfw_hal +++ b/fsfw_hal @@ -1 +1 @@ -Subproject commit a0f698fffa4dd5c9f86337c5d6170f9321cb8de7 +Subproject commit 2fe1a6683606eddb76aa810f88e5cf5d8cea94e5 diff --git a/mission/devices/CMakeLists.txt b/mission/devices/CMakeLists.txt index 4088d98b..56b191d9 100644 --- a/mission/devices/CMakeLists.txt +++ b/mission/devices/CMakeLists.txt @@ -15,6 +15,7 @@ target_sources(${TARGET_NAME} PUBLIC IMTQHandler.cpp PlocHandler.cpp RadiationSensorHandler.cpp + GyroADIS16507Handler.cpp ) diff --git a/mission/devices/GyroADIS16507Handler.cpp b/mission/devices/GyroADIS16507Handler.cpp new file mode 100644 index 00000000..7fb92ce6 --- /dev/null +++ b/mission/devices/GyroADIS16507Handler.cpp @@ -0,0 +1,41 @@ +#include "GyroADIS16507Handler.h" + +GyroADIS16507Handler::GyroADIS16507Handler(object_id_t objectId, + object_id_t deviceCommunication, CookieIF * comCookie): + DeviceHandlerBase(objectId, deviceCommunication, comCookie) { +} + +void GyroADIS16507Handler::doStartUp() { +} + +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() { +} diff --git a/mission/devices/GyroADIS16507Handler.h b/mission/devices/GyroADIS16507Handler.h new file mode 100644 index 00000000..1245a5a2 --- /dev/null +++ b/mission/devices/GyroADIS16507Handler.h @@ -0,0 +1,29 @@ +#ifndef MISSION_DEVICES_GYROADIS16507HANDLER_H_ +#define MISSION_DEVICES_GYROADIS16507HANDLER_H_ + +#include + +class GyroADIS16507Handler: public DeviceHandlerBase { +public: + GyroADIS16507Handler(object_id_t objectId, object_id_t deviceCommunication, CookieIF * comCookie); + + /* DeviceHandlerBase abstract function implementation */ + void doStartUp() override; + void doShutDown() override; + ReturnValue_t buildNormalDeviceCommand(DeviceCommandId_t * id) override; + ReturnValue_t buildTransitionDeviceCommand(DeviceCommandId_t * id) override; + ReturnValue_t buildCommandFromCommand(DeviceCommandId_t deviceCommand, + const uint8_t * commandData, size_t commandDataLen) override; + void fillCommandAndReplyMap() override; + ReturnValue_t scanForReply(const uint8_t *start, size_t remainingSize, + DeviceCommandId_t *foundId, size_t *foundLen) override; + ReturnValue_t interpretDeviceReply(DeviceCommandId_t id, + const uint8_t *packet) override; + void setNormalDatapoolEntriesInvalid() override; + +private: +}; + + + +#endif /* MISSION_DEVICES_GYROADIS16507HANDLER_H_ */