started BPX handler
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
parent
71c5aa4df0
commit
384122f811
@ -144,6 +144,9 @@ void ObjectFactory::produce(void* args) {
|
||||
new IMTQHandler(objects::IMTQ_HANDLER, objects::I2C_COM_IF, imtqI2cCookie);
|
||||
createReactionWheelComponents(gpioComIF);
|
||||
|
||||
I2cCookie* bpxI2cCookie =
|
||||
new I2cCookie(addresses::BPX_BATTERY, 100, q7s::I2C_DEFAULT_DEV);
|
||||
|
||||
#if OBSW_ADD_PLOC_MPSOC == 1
|
||||
UartCookie* plocMpsocCookie =
|
||||
new UartCookie(objects::PLOC_MPSOC_HANDLER, q7s::UART_PLOC_MPSOC_DEV,
|
||||
|
@ -45,6 +45,7 @@ enum logicalAddresses : address_t {
|
||||
};
|
||||
|
||||
enum i2cAddresses : address_t {
|
||||
BPX_BATTERY = 0x07,
|
||||
IMTQ = 16,
|
||||
TMP1075_TCS_1 = 72,
|
||||
TMP1075_TCS_2 = 73,
|
||||
|
30
mission/devices/BpxBatteryHandler.h
Normal file
30
mission/devices/BpxBatteryHandler.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef MISSION_DEVICES_BPXBATTERYHANDLER_H_
|
||||
#define MISSION_DEVICES_BPXBATTERYHANDLER_H_
|
||||
|
||||
#include <fsfw/devicehandlers/DeviceHandlerBase.h>
|
||||
|
||||
class BpxBatteryHandler: public DeviceHandlerBase {
|
||||
public:
|
||||
BpxBatteryHandler(object_id_t objectId, object_id_t comIF, CookieIF* comCookie);
|
||||
virtual ~BpxBatteryHandler();
|
||||
protected:
|
||||
void doStartUp() override;
|
||||
void doShutDown() override;
|
||||
ReturnValue_t buildNormalDeviceCommand(DeviceCommandId_t* id) override;
|
||||
ReturnValue_t buildTransitionDeviceCommand(DeviceCommandId_t* id) override;
|
||||
void fillCommandAndReplyMap() override;
|
||||
ReturnValue_t buildCommandFromCommand(DeviceCommandId_t deviceCommand, const uint8_t* commandData,
|
||||
size_t commandDataLen) override;
|
||||
ReturnValue_t scanForReply(const uint8_t* start, size_t remainingSize, DeviceCommandId_t* foundId,
|
||||
size_t* foundLen) override;
|
||||
ReturnValue_t interpretDeviceReply(DeviceCommandId_t ixd, const uint8_t* packet) override;
|
||||
void setNormalDatapoolEntriesInvalid() override;
|
||||
virtual LocalPoolDataSetBase* getDataSetHandle(sid_t sid) override;
|
||||
uint32_t getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) override;
|
||||
ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
||||
LocalDataPoolManager& poolManager) override;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* MISSION_DEVICES_BPXBATTERYHANDLER_H_ */
|
Loading…
Reference in New Issue
Block a user