demo new haven display

Dependencies:   LCD Menu ButtonCtrl TimeManagement EventLog AddressMap emic2

ESCM 2000 Control and Display application provides interface for the LPC1768 processor boards with the ECSM 2000 system.

This application implements SW interface : - RX 485 Receive from physical system - RX 485 Interface to send toECOM / ESCM board - CAN Interface to send to ECOM / ESCM board - 4x40 LCD with menu controls - RTC configuration -EMIC2 Sound Card - GPIO Extender to push buttons etc

ESCMControlApp.h

Committer:
foxbrianr
Date:
2019-07-25
Revision:
3:ecaf9963341b
Child:
5:65f21c0b6b79

File content as of revision 3:ecaf9963341b:

#ifndef _ESCM_CONTROL_APP_
#define _ESCM_CONTROL_APP_


#include "mbed.h"
#include "Menu.h"
#include "Navigator.h"
#include "Selection.h"
#include "LCD.h"
#include "AddressMap.h"
#include "EventLog.h"
#include "TimeUtilities.h"

#include "emic2.h"


extern LCD   lcd;

extern ESCM_EventLog escmEventLog;

extern RealTimeClock rtc;

extern Serial rs485port1;
extern DigitalOut rs485port1mode; 

extern Serial rs485port2; 
extern DigitalOut rs485port2mode; 

extern CAN canport;       
extern DigitalOut canportmode; 

extern emic2 speaker;


class ESCMControlApp 
{
    
    public:
        Menu getAddressMenu();
        
        void init(void);
        void update(void);
        
        //void rx485Message();
        void tx485Message(int address); 
        void txCanMessage501 (int address);
        void txCanMessage502 (int address);

        static void say (char *format, ...);
        
        int dataRxCnt;
        int cur_address;
        
    
        char fault[4];
};

#endif