Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BLE_API X_NUCLEO_IDB0XA1 MODSERIAL
Event.h
00001 #ifndef EVENT_H 00002 #define EVENT_H 00003 #define <queue> 00004 class event{ 00005 public: 00006 event * Instance(); 00007 void give_event(std::queue<char> vnt); 00008 bool has_new_event(); 00009 inline bool has_button_presed() const { return B_active; } 00010 inline bool has_J_pressed() const {return J_actice; } 00011 inline bool has_R_presed() const {return R_active; } 00012 inline bool has_T_active() const { return T_acive; } 00013 char get_val_B(); 00014 float get_val_J(); 00015 float get_val_R(); 00016 float get_val_T(); 00017 private: 00018 //fonction pour le traitement de la chaine recu 00019 char pull_c(); 00020 float deduce_val(); 00021 std::queue<char> tmp; //in treatement 00022 bool J_active,R_active,B_active,T_active; 00023 float J_val,R_val,T_val; 00024 char B_val; 00025 static event * _instance; 00026 bool created; 00027 event(); 00028 ~event(); 00029 }; 00030 00031 #endif
Generated on Thu Jul 14 2022 17:21:51 by
1.7.2