Version FC
Dependencies: DmTftLibrary eeprom SX1280Lib filesystem mbed
Fork of MSNV2-Terminal_V1-5 by
Diff: Controller.hpp
- Revision:
- 24:92c30dabfda4
- Parent:
- 21:8524d815c587
- Child:
- 38:9b43b2415093
- Child:
- 41:5a436163dddf
--- a/Controller.hpp Tue Sep 11 21:11:35 2018 +0000 +++ b/Controller.hpp Tue Sep 11 21:45:52 2018 +0000 @@ -1,8 +1,8 @@ /* - * Controller.h + * Controller.hpp * - * Created on: Jun 3, 2016 - * Author: Adrian + * Created on: August 18, 2018 + * Author: Francis Chatain */ #ifndef __CONTROLLER_HPP__ @@ -27,40 +27,48 @@ class misnet::Controller { - -public: - Controller (); - virtual ~Controller (); + + public: + // Terminal type + enum TERMINAL_TYPE { + SMART_TOOL = 0, + GENERIC = 1, + IOT = 2, + BROADCAST = 3 + }; + + Controller (); + virtual ~Controller (); #ifndef TEST_ENVIRONMENT - // @brief Get timer of scheduling mode - void getScheduling (uint16_t &TimerPayload, uint16_t &TimerGoodhealth, uint16_t &TimerSynchro, uint16_t &TimerListening ); + // @brief Get timer of scheduling mode + void getScheduling (uint16_t &TimerPayload, uint16_t &TimerGoodhealth, uint16_t &TimerSynchro, uint16_t &TimerListening ); - void start (); // @brief Start the Controller - void manageSensors (); // @brief - void manageGoodhealth (); // @brief - void manageSynchro (); // @brief - void manageConfiguration (); // @brief - void manageListening (); // @brief + void start (); // @brief Start the Controller + void manageSensors (); // @brief + void manageGoodhealth (); // @brief + void manageSynchro (); // @brief + void manageConfiguration (); // @brief + void manageListening (); // @brief #endif -private: + private: #ifndef TEST_ENVIRONMENT - RawSerial * debugSerial ; // Serial Instance - - // BME280* bme280; Examples - - void initInterfaces (); // @brief Initializes all Interfaces such as I2C, UART and a Debug Serial via USB - void readMemory (); // @brief Read memory to know the list of sensor availables Initializes the Database - - void initSensors (); // @brief Initializes (builds) all Sensors in their specific modes - void readSensors (); // @brief Request the sensors according to they SensorMode specific parameter + RawSerial * debugSerial ; // Serial Instance + + // BME280* bme280; Examples + + void initInterfaces (); // @brief Initializes all Interfaces such as I2C, UART and a Debug Serial via USB + void readMemory (); // @brief Read memory to know the list of sensor availables Initializes the Database + + void initSensors (); // @brief Initializes (builds) all Sensors in their specific modes + void readSensors (); // @brief Request the sensors according to they SensorMode specific parameter - void initActuators (); // @brief Initializes (builds) all Actuator in their specific modes - void writeActuators (); // @brief Request the Actuators according to they ActuatorrMode specific parameters - - void sendMessage (); // @brief Send Message + void initActuators (); // @brief Initializes (builds) all Actuator in their specific modes + void writeActuators (); // @brief Request the Actuators according to they ActuatorrMode specific parameters + + void sendMessage (); // @brief Send Message #endif };