added test to retrieve pdu config
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:
@ -1,38 +1,28 @@
|
||||
#include "CspCookie.h"
|
||||
|
||||
CspCookie::CspCookie(uint16_t maxReplyLength_, uint8_t cspAddress_, uint32_t timeoutMs)
|
||||
: maxReplyLength(maxReplyLength_), cspAddress(cspAddress_), timeoutMs(timeoutMs),
|
||||
: maxReplyLength(maxReplyLength_),
|
||||
cspAddress(cspAddress_),
|
||||
timeoutMs(timeoutMs),
|
||||
reqType(GOMSPACE::DEFAULT_COM_IF) {}
|
||||
|
||||
CspCookie::~CspCookie() {}
|
||||
|
||||
uint16_t CspCookie::getMaxReplyLength() { return maxReplyLength; }
|
||||
|
||||
uint8_t CspCookie::getCspAddress() {
|
||||
return cspAddress;
|
||||
}
|
||||
uint8_t CspCookie::getCspAddress() { return cspAddress; }
|
||||
|
||||
GOMSPACE::SpecialRequestTypes CspCookie::getRequest() const {
|
||||
return reqType;
|
||||
}
|
||||
GOMSPACE::SpecialRequestTypes CspCookie::getRequest() const { return reqType; }
|
||||
|
||||
void CspCookie::setRequest(GOMSPACE::SpecialRequestTypes request, size_t replyLen_) {
|
||||
reqType = request;
|
||||
replyLen = replyLen_;
|
||||
}
|
||||
|
||||
uint8_t CspCookie::getCspPort() const {
|
||||
return cspPort;
|
||||
}
|
||||
uint8_t CspCookie::getCspPort() const { return cspPort; }
|
||||
|
||||
uint32_t CspCookie::getTimeout() const {
|
||||
return timeoutMs;
|
||||
}
|
||||
uint32_t CspCookie::getTimeout() const { return timeoutMs; }
|
||||
|
||||
void CspCookie::setCspPort(uint8_t port) {
|
||||
cspPort = port;
|
||||
}
|
||||
void CspCookie::setCspPort(uint8_t port) { cspPort = port; }
|
||||
|
||||
size_t CspCookie::getReplyLen() const {
|
||||
return replyLen;
|
||||
}
|
||||
size_t CspCookie::getReplyLen() const { return replyLen; }
|
||||
|
@ -2,9 +2,11 @@
|
||||
#define LINUX_CSP_CSPCOOKIE_H_
|
||||
|
||||
#include <fsfw/devicehandlers/CookieIF.h>
|
||||
#include "mission/devices/devicedefinitions/GomspaceDefinitions.h"
|
||||
#include <cstdint>
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#include "mission/devices/devicedefinitions/GomspaceDefinitions.h"
|
||||
|
||||
/**
|
||||
* @brief This is the cookie for devices supporting the CSP (CubeSat Space
|
||||
@ -13,7 +15,6 @@
|
||||
*/
|
||||
class CspCookie : public CookieIF {
|
||||
public:
|
||||
|
||||
CspCookie(uint16_t maxReplyLength_, uint8_t cspAddress_, uint32_t timeoutMs);
|
||||
virtual ~CspCookie();
|
||||
|
||||
|
Reference in New Issue
Block a user