Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

power_source_monitoring.h

Committer:
klauss
Date:
2015-05-25
Revision:
128:3ae1c74773a8
Child:
132:05cd37f7e007

File content as of revision 128:3ae1c74773a8:

#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