work1

Dependencies:   mbed MAX44009 mbed-os Si7021

Committer:
danaeb
Date:
Wed May 27 12:34:37 2020 +0000
Revision:
1:3656b45f17a8
Parent:
AppCommand.h@0:d3e390d62607
app_create

Who changed what in which revision?

UserRevisionLine numberNew contents of line
danaeb 0:d3e390d62607 1 #ifndef APP_COMMAND_H
danaeb 0:d3e390d62607 2 #define APP_COMMAND_H
danaeb 0:d3e390d62607 3
danaeb 0:d3e390d62607 4 #include "CommandParser.h"
danaeb 0:d3e390d62607 5 #include "SensorManager.h"
danaeb 0:d3e390d62607 6 namespace liboo{
danaeb 0:d3e390d62607 7 class AppCommand{
danaeb 0:d3e390d62607 8 public:
danaeb 0:d3e390d62607 9
danaeb 0:d3e390d62607 10 /*
danaeb 0:d3e390d62607 11 *
danaeb 0:d3e390d62607 12 * Register all needed command callbacks into the command parser
danaeb 0:d3e390d62607 13 */
danaeb 0:d3e390d62607 14 static void configure(SensorManager* sensor_manager);
danaeb 0:d3e390d62607 15
danaeb 0:d3e390d62607 16 static void process_command(u8 command_id, u8 *command_data,
danaeb 0:d3e390d62607 17 u16 command_size);
danaeb 0:d3e390d62607 18
danaeb 0:d3e390d62607 19 static bool get_pump_state();
danaeb 0:d3e390d62607 20 protected:
danaeb 0:d3e390d62607 21
danaeb 0:d3e390d62607 22 AppCommand(void){}
danaeb 0:d3e390d62607 23
danaeb 0:d3e390d62607 24 static u16 _rtc_set_time(u8 command_id, u8* command_data,
danaeb 0:d3e390d62607 25 u16 command_data_size);
danaeb 0:d3e390d62607 26
danaeb 0:d3e390d62607 27 static u16 _set_pump(u8 command_id, u8* command_data,
danaeb 0:d3e390d62607 28 u16 command_data_size);
danaeb 0:d3e390d62607 29
danaeb 0:d3e390d62607 30
danaeb 0:d3e390d62607 31 static CommandParser *_parser;
danaeb 0:d3e390d62607 32 static SensorManager *_sensor_manager;
danaeb 0:d3e390d62607 33 static bool _is_intialized;
danaeb 0:d3e390d62607 34 static bool _is_pump_on;
danaeb 0:d3e390d62607 35
danaeb 0:d3e390d62607 36 };
danaeb 0:d3e390d62607 37 }
danaeb 0:d3e390d62607 38 #endif
danaeb 0:d3e390d62607 39