2021-09-10 17:08:38 +02:00
|
|
|
/*
|
|
|
|
* ArduinoCookie.h
|
|
|
|
*
|
2021-09-23 21:48:32 +02:00
|
|
|
* Last Modify: 20/09/2021
|
2021-09-10 17:08:38 +02:00
|
|
|
* Author: Marco Modè
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_
|
|
|
|
#define MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_
|
|
|
|
|
|
|
|
#include <fsfw/devicehandlers/CookieIF.h>
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
/**
|
2021-09-15 17:31:20 +02:00
|
|
|
* @brief Simple cookie which initialize the variables
|
2021-09-10 17:08:38 +02:00
|
|
|
* for the Linux serial port.
|
2021-09-23 21:48:32 +02:00
|
|
|
* @details The ArduinoCookie is instantiated in the generic factory.
|
|
|
|
* @author: Marco Modè
|
|
|
|
* @ingroup mission/DeviceHandler
|
2021-09-10 17:08:38 +02:00
|
|
|
*/
|
|
|
|
class ArduinoCookie: public CookieIF {
|
|
|
|
public:
|
|
|
|
ArduinoCookie();
|
|
|
|
virtual ~ArduinoCookie();
|
|
|
|
|
2021-09-23 21:48:32 +02:00
|
|
|
// Serial port for the communication with Arduino board is here initialized.
|
|
|
|
// It will be exploited in the ComIF to manage the computer serial port.
|
2021-09-10 17:08:38 +02:00
|
|
|
int Serial_port_number;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_ */
|