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: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
power_source_monitoring.h
00001 #ifndef __POWER_SOURCE_MONITORING_H__ 00002 #define __POWER_SOURCE_MONITORING_H__ 00003 00004 #include "mbed.h" 00005 #include "bits.h" 00006 #include "EthernetInterface.h" 00007 #include "debug.h" 00008 #include "vz_protocol.h" 00009 %: include "config_manager.h" 00010 %: include "shared_variables.h" 00011 %: include "string.h" 00012 00013 const uint16_t u16_POWER_SOURCE_PORT = 4000; 00014 const uint8_t u8_WAIT_TO_WARN = 60; 00015 const uint8_t u8_POWER_MSG_LENGTH = strlen ( "mainpowerisdown" ); 00016 00017 extern Timer power_source_timer; 00018 extern DigitalIn pwr_src_in; 00019 extern UDPSocket power_source_client; 00020 extern Endpoint pwr_src_server; 00021 extern uint8_t power_source_status; 00022 00023 /* Inicializacao da comunicacao UDP com o servidor para monitoramento de fonte de alimentacao */ 00024 int init_power_source (); 00025 int reconnect_power_source ( void ); 00026 00027 #endif
Generated on Tue Jul 12 2022 16:25:06 by
