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.
alarma.h
- Committer:
- pcolla
- Date:
- 2013-11-16
- Revision:
- 0:f42f18c56a88
File content as of revision 0:f42f18c56a88:
#ifndef ALARMA_H
#define ALARMA_H
#include "mbed.h"
extern AnalogIn Ref; //Pot 1
extern DigitalIn Pulsador; //Joystick Center
extern DigitalOut Buzzer; //Sirena
extern AnalogIn Valor; //Pot 2 (Sensor Analogo)
extern DigitalOut Alive; //KeepAlive signal
extern DigitalOut Indicador; //LED de encendido
extern DigitalOut Luz; //RGB red
extern DigitalIn Estado; //Sensor Digital
extern int i;
extern int j;
extern int Titila;
extern int On;
extern int Off;
extern bool check;
extern bool testResult;
extern int delaySirena; //Factory configuration.
extern int testSirena;
extern int delayLuz; //Factory configuration.
extern int delayFactory; //Factory configuration.
extern int AStatus;
extern int DStatus;
extern int An;
extern int Di;
extern int Prog;
extern int Auto;
/**
*
*
*
*
*/
int Test(void);
/**
*
*
*
*
*/
void LED(int a);
/**
*
*
*
*
*/
void KeepAlive(void);
/**
*
*
*
*
*/
void Config(void);
/**
*
*
*
*
*/
void Armar(void);
/**
*
*
*
*
*/
int SensorAnalogico(void);
/**
*
*
*
*
*/
int SensorDigital(void);
/**
*
*
*
*
*/
void Sirena(int Ds);
/**
*
*
*
*
*/
void LuzDisparo(int Dl);
/**
*
*
*
*
*/
float Filtro(void);
/**
*
*
*
*
*/
void Pip(int p);
#endif