changed all table parsing to use gom space API
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:
38
mission/csp/CspCookie.cpp
Normal file
38
mission/csp/CspCookie.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
#include "CspCookie.h"
|
||||
|
||||
CspCookie::CspCookie(uint16_t maxReplyLength_, uint8_t cspAddress_, uint32_t 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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
uint32_t CspCookie::getTimeout() const {
|
||||
return timeoutMs;
|
||||
}
|
||||
|
||||
void CspCookie::setCspPort(uint8_t port) {
|
||||
cspPort = port;
|
||||
}
|
||||
|
||||
size_t CspCookie::getReplyLen() const {
|
||||
return replyLen;
|
||||
}
|
Reference in New Issue
Block a user