37 lines
660 B
C++
37 lines
660 B
C++
/*
|
|
* ArduinoCookie.h
|
|
*
|
|
* Created on: 02/06/2021
|
|
* Author: Marco Modè
|
|
*
|
|
*/
|
|
|
|
#ifndef MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_
|
|
#define MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_
|
|
|
|
|
|
#include <fsfw/devicehandlers/CookieIF.h>
|
|
#include <cstddef>
|
|
|
|
/**
|
|
* @brief Simple cookie which initialie the variables
|
|
* for the Linux serial port.
|
|
*/
|
|
class ArduinoCookie: public CookieIF {
|
|
public:
|
|
ArduinoCookie();
|
|
virtual ~ArduinoCookie();
|
|
|
|
address_t getAddress() const;
|
|
size_t getReplyMaxLen() const;
|
|
int getSerialPort() const;
|
|
int Serial_port_number;
|
|
|
|
private:
|
|
address_t address = 0;
|
|
size_t replyMaxLen = 0;
|
|
};
|
|
|
|
|
|
#endif /* MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_ */
|