Frederico Prado / smartRamalEZR

Dependencies:   CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04

Fork of smartRamalKW by Equipe Firmware V2COM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers announce.h Source File

announce.h

00001 #ifndef ANNOUNCE_H
00002 #define ANNOUNCE_H
00003 
00004 #include "ggs.h"
00005 #include "pima.h"
00006 #include "appCommands.h"
00007 #include "debug.h"
00008 
00009 class Announce{
00010     int announceDelayAngCoef;
00011     int announceDelayLinCoef;
00012     int announceIntervalSec;
00013     int silenceIntervalSec;
00014     int delay;
00015     Timeout announceTimeout;
00016     bool sendNow;
00017     char announceBuffer[30];
00018     void triggerAnnounceSending();
00019     
00020   public:
00021     Announce();
00022     void setDelayCoefs(int delayAngCoef, int delayLinCoef);
00023     void setIntervals(int announce, int silence);
00024     void startAnnounceTimer();
00025     void stopAnnounceTimer();
00026     void handleAnnounceSending();
00027 
00028 };
00029 
00030 extern SerialNumber sn;
00031 extern CommandExecutor exec;
00032 #ifndef RAMAL
00033 extern Pima pima;
00034 #endif
00035 extern void enviaRespostaGGS(char * dados, int tamanho);
00036 
00037 #endif