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
appCommands.h
- Committer:
- tpadovani
- Date:
- 2015-06-19
- Revision:
- 5:1bc98277c257
- Parent:
- 4:2d0c2643c641
- Child:
- 8:e8d86c66283c
File content as of revision 5:1bc98277c257:
#ifndef APPCOMMANDS_H
#define APPCOMMANDS_H
#include "ggs.h"
#include "parameters.h"
#include "appParameters.h"
#include "serialNumber.h"
#include "settings.h"
#define CMD_CORTAR 0x07
#define RESP_CORTAR 0x08
#define CMD_RELIGAR 0x09
#define RESP_RELIGAR 0x0a
#define CMD_ESTADO_FORNECIMENTO 0x0b
#define RESP_ESTADO_FORNECIMENTO 0x0c
#define CMD_LER_VERSAO 0x13
#define RESP_LER_VERSAO 0x14
#define CMD_RESET 0x15
#define RESP_RESET 0x16
#define CMD_LER_NUM_SERIE 0x17
#define RESP_LER_NUM_SERIE 0x18
#define CMD_GRAVAR_NUM_SERIE 0x19
#define RESP_GRAVAR_NUM_SERIE 0x1a
#define CMD_LER_PARAMETROS 0x1b
#define RESP_LER_PARAMETROS 0x1c
#define CMD_CONFIGURAR_PARAMETROS 0x1d
#define RESP_CONFIGURAR_PARAMETROS 0x1e
extern CommandExecutor exec;
extern Parameters param;
extern SerialNumber sn;
extern ParametersBlock APP_PARAMETERS;
extern void softReset();
void enviaRespostaGGS(unsigned char * dados, int tamanho);
void executaComando(unsigned char tamanho, unsigned char sequencia, unsigned char tipo, unsigned char * dados);
void cmdLerVersao();
void cmdLerNumeroSerie();
void cmdGravarNumeroSerie(unsigned char * dados, unsigned char tamanhoDados);
void cmdReset();
void cmdLerParametros();
void cmdConfigurarParametros(unsigned char * dados, unsigned char tamanhoDados);
void cmdCortar();
void cmdReligar();
void cmdEstadoFornecimento();
void atualizaEstadoRele(unsigned char estado);
unsigned char lerEstadoRele();
#endif
