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: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
main.h
00001 #ifndef MAIN_H 00002 #define MAIN_H 00003 00004 #include "mbed.h" 00005 #include "settings.h" 00006 #include "debug.h" 00007 #include "version.h" 00008 #include "FreescaleWatchdog.h" 00009 #include "serialNumber.h" 00010 #include "parameters.h" 00011 #include "appParameters.h" 00012 #include "v2hardware.h" 00013 #include "ggs.h" 00014 #include "sensor.h" 00015 #include "memoriaMassa.h" 00016 #include "alarm.h" 00017 #include "boxAlarm.h" 00018 #include "pima.h" 00019 #include "announce.h" 00020 00021 ParametersBlock APP_PARAMETERS; 00022 00023 unsigned char medidor[MEDIDOR_LENGTH]; // Numero do Medidor com 7 bytes BCD (14 digitos) 00024 // Obs: protocolo Piminha usa 5 bytes BCD (completamos com zeros a esquerda os outros 2 bytes) 00025 // e ELO usa 14 bytes ASCII (transformamos em 7 bytes BCD) 00026 unsigned char totAtiva[ENERGIAS_LENGTH]; // Totalizador de Energia Ativa - 3 bytes BCD = 6 dígitos 00027 unsigned char totReativaIndutiva[ENERGIAS_LENGTH]; // Totalizador de Energia Reativa Indutiva - 3 bytes BCD = 6 dígitos 00028 unsigned char totReativaCapacitiva[ENERGIAS_LENGTH]; // Totalizador de Energia Reativa Capacitiva - 3 bytes BCD = 6 dígitos 00029 00030 void iniciaWd(); 00031 void feedWd(); 00032 void softReset(); 00033 void blinkLeds(); 00034 void printSerialNumber(); 00035 void printParameters(); 00036 void detectaCargaSemCorte(); 00037 00038 #endif
Generated on Thu Jul 14 2022 00:24:57 by
1.7.2
