RASTREADOR SATELITAÑ GSM
RASTREADOR SATELITAL USANDO MODULO BLUEPILL CHINO STM32F103 Y CELULAR SIEMENS A56I COMO MODEM GSM. SE PUEDE EMULAR GPS CON UN GPS VIRTUAL DE PROTEUS.
DebouncedIn.h@0:f7598e776b3c, 2019-04-12 (annotated)
- Committer:
- tony63
- Date:
- Fri Apr 12 05:51:33 2019 +0000
- Revision:
- 0:f7598e776b3c
RSTREADOR SATELITAL USANDO MUDULO BLUEPILL STM32F103 Y CELULAR SIEMENS A56I ENVIA COORDENADAS EN UNA TRAMA DE GOOGLE MAPS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tony63 | 0:f7598e776b3c | 1 | #include "mbed.h" |
tony63 | 0:f7598e776b3c | 2 | |
tony63 | 0:f7598e776b3c | 3 | class DebouncedIn { |
tony63 | 0:f7598e776b3c | 4 | public: |
tony63 | 0:f7598e776b3c | 5 | DebouncedIn(PinName in); |
tony63 | 0:f7598e776b3c | 6 | |
tony63 | 0:f7598e776b3c | 7 | int read (void); |
tony63 | 0:f7598e776b3c | 8 | operator int(); |
tony63 | 0:f7598e776b3c | 9 | |
tony63 | 0:f7598e776b3c | 10 | int rising(void); |
tony63 | 0:f7598e776b3c | 11 | int falling(void); |
tony63 | 0:f7598e776b3c | 12 | int steady(void); |
tony63 | 0:f7598e776b3c | 13 | |
tony63 | 0:f7598e776b3c | 14 | private : |
tony63 | 0:f7598e776b3c | 15 | // objects |
tony63 | 0:f7598e776b3c | 16 | DigitalIn _in; |
tony63 | 0:f7598e776b3c | 17 | Ticker _ticker; |
tony63 | 0:f7598e776b3c | 18 | |
tony63 | 0:f7598e776b3c | 19 | // function to take a sample, and update flags |
tony63 | 0:f7598e776b3c | 20 | void _sample(void); |
tony63 | 0:f7598e776b3c | 21 | |
tony63 | 0:f7598e776b3c | 22 | // counters and flags |
tony63 | 0:f7598e776b3c | 23 | int _samples; |
tony63 | 0:f7598e776b3c | 24 | int _output; |
tony63 | 0:f7598e776b3c | 25 | int _output_last; |
tony63 | 0:f7598e776b3c | 26 | int _rising_flag; |
tony63 | 0:f7598e776b3c | 27 | int _falling_flag; |
tony63 | 0:f7598e776b3c | 28 | int _state_counter; |
tony63 | 0:f7598e776b3c | 29 | |
tony63 | 0:f7598e776b3c | 30 | }; |
tony63 | 0:f7598e776b3c | 31 |