Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: power_source_monitoring.h
- Revision:
- 128:3ae1c74773a8
- Child:
- 132:05cd37f7e007
diff -r e7160a463b6c -r 3ae1c74773a8 power_source_monitoring.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/power_source_monitoring.h Mon May 25 13:11:00 2015 +0000 @@ -0,0 +1,21 @@ +#ifndef __POWER_SOURCE_MONITORING_H__ +#define __POWER_SOURCE_MONITORING_H__ + +#include "mbed.h" +#include "bits.h" +#include "EthernetInterface.h" +#include "debug.h" +#include "vz_protocol.h" + +const uint16_t PWR_SRC_PORT = 4000; + +extern Timer pwr_src_timer; +extern DigitalIn pwr_src_in; +extern UDPSocket pwr_src_client; +extern Endpoint pwr_src_server; +extern uint8_t pwr_src_status; + +/* Inicializacao da comunicacao UDP com o servidor para monitoramento de fonte de alimentacao */ +int init_pwr_src(); + +#endif \ No newline at end of file