EZR

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

Fork of smartRamalKW by Equipe Firmware V2COM

announce.h

Committer:
fprado
Date:
2016-06-16
Revision:
35:78614a27b9e6
Parent:
26:03c9ca836c79

File content as of revision 35:78614a27b9e6:

#ifndef ANNOUNCE_H
#define ANNOUNCE_H

#include "ggs.h"
#include "pima.h"
#include "appCommands.h"
#include "debug.h"

class Announce{
    int announceDelayAngCoef;
    int announceDelayLinCoef;
    int announceIntervalSec;
    int silenceIntervalSec;
    int delay;
    Timeout announceTimeout;
    bool sendNow;
    char announceBuffer[30];
    void triggerAnnounceSending();
    
  public:
    Announce();
    void setDelayCoefs(int delayAngCoef, int delayLinCoef);
    void setIntervals(int announce, int silence);
    void startAnnounceTimer();
    void stopAnnounceTimer();
    void handleAnnounceSending();

};

extern SerialNumber sn;
extern CommandExecutor exec;
#ifndef RAMAL
extern Pima pima;
#endif
extern void enviaRespostaGGS(char * dados, int tamanho);

#endif