eive-obsw/linux/csp/CspCookie.h

27 lines
535 B
C
Raw Normal View History

#ifndef LINUX_CSP_CSPCOOKIE_H_
#define LINUX_CSP_CSPCOOKIE_H_
2020-12-14 08:42:48 +01:00
#include <fsfw/devicehandlers/CookieIF.h>
2022-01-17 13:48:55 +01:00
2020-12-29 13:59:31 +01:00
#include <cstdint>
2020-12-14 08:42:48 +01:00
/**
* @brief This is the cookie for devices supporting the CSP (CubeSat Space
* Protocol).
* @author J. Meier
*/
2022-01-17 13:48:55 +01:00
class CspCookie : public CookieIF {
public:
CspCookie(uint16_t maxReplyLength_, uint8_t cspAddress_);
virtual ~CspCookie();
2020-12-14 08:42:48 +01:00
2022-01-17 13:48:55 +01:00
uint16_t getMaxReplyLength();
uint8_t getCspAddress();
2020-12-14 08:42:48 +01:00
2022-01-17 13:48:55 +01:00
private:
uint16_t maxReplyLength;
uint8_t cspAddress;
2020-12-14 08:42:48 +01:00
};
#endif /* LINUX_CSP_CSPCOOKIE_H_ */