![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
power_source_monitoring.h
- Committer:
- klauss
- Date:
- 2015-09-01
- Revision:
- 132:05cd37f7e007
- Parent:
- 128:3ae1c74773a8
File content as of revision 132:05cd37f7e007:
#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" %: include "config_manager.h" %: include "shared_variables.h" %: include "string.h" const uint16_t u16_POWER_SOURCE_PORT = 4000; const uint8_t u8_WAIT_TO_WARN = 60; const uint8_t u8_POWER_MSG_LENGTH = strlen ( "mainpowerisdown" ); extern Timer power_source_timer; extern DigitalIn pwr_src_in; extern UDPSocket power_source_client; extern Endpoint pwr_src_server; extern uint8_t power_source_status; /* Inicializacao da comunicacao UDP com o servidor para monitoramento de fonte de alimentacao */ int init_power_source (); int reconnect_power_source ( void ); #endif