37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/*
|
|
* Title: ArduinoCookie.h
|
|
* Author: Marco Modè
|
|
* Last version: 24/09/2021
|
|
* Project: ESBO-DS
|
|
*
|
|
* @ brief: Simple cookie which initializes the variables
|
|
* for the Linux serial port.
|
|
* The cookie tells to device handler which is the device
|
|
* to communicate with, if more devices are connected.
|
|
* In this case only one device, the Arduino board, is connected.
|
|
* @ details: The ArduinoCookie is instantiated in the generic factory.
|
|
* @ ingroup: mission/DeviceHandler
|
|
*-------------------------------------------------------------------------------------------------------------------
|
|
*
|
|
*/
|
|
|
|
#ifndef MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_
|
|
#define MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_
|
|
|
|
#include <fsfw/devicehandlers/CookieIF.h>
|
|
#include <cstddef>
|
|
|
|
|
|
class ArduinoCookie: public CookieIF {
|
|
public:
|
|
ArduinoCookie();
|
|
virtual ~ArduinoCookie();
|
|
|
|
/* Serial port for the communication with Arduino board is here initialized.
|
|
* It will be exploited in the ComIF and DH to manage the computer serial port.
|
|
*/
|
|
int Serial_port_number;
|
|
};
|
|
|
|
#endif /* MISSION_DEVICEHANDLER_ARDUINOCOOKIE_H_ */
|