upstream changes taken over

This commit is contained in:
Robin Müller 2020-12-15 22:57:14 +01:00
parent f99bf6d75c
commit 8706d663d5
3 changed files with 17 additions and 5 deletions

View File

@ -0,0 +1,11 @@
target_sources(${LIB_FSFW_NAME}
PRIVATE
AssemblyBase.cpp
ChildHandlerBase.cpp
ChildHandlerFDIR.cpp
DeviceHandlerBase.cpp
DeviceHandlerFailureIsolation.cpp
DeviceHandlerMessage.cpp
DeviceTmReportingWrapper.cpp
HealthDevice.cpp
)

View File

@ -746,6 +746,7 @@ protected:
/**
* Helper function to get pending command. This is useful for devices
* like SPI sensors to identify the last sent command.
* This only returns the command sent in the last SEND_WRITE cycle.
* @return
*/
DeviceCommandId_t getPendingCommand() const;

View File

@ -22,10 +22,10 @@ using DeviceCommandId_t = uint32_t;
*/
class DeviceHandlerIF {
public:
static const DeviceCommandId_t NO_COMMAND = -1;
static constexpr DeviceCommandId_t NO_COMMAND = -1;
static const uint8_t TRANSITION_MODE_CHILD_ACTION_MASK = 0x20;
static const uint8_t TRANSITION_MODE_BASE_ACTION_MASK = 0x10;
static constexpr uint8_t TRANSITION_MODE_CHILD_ACTION_MASK = 0x20;
static constexpr uint8_t TRANSITION_MODE_BASE_ACTION_MASK = 0x10;
using dh_heater_request_t = uint8_t;
using dh_thermal_state_t = int8_t;