HIT Project #3 https://community.freescale.com/docs/DOC-99621

Dependencies:   EthernetInterface WebSocketClient mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IO.h Source File

IO.h

00001 #include "System.h"
00002 #include "EthernetInterface.h"
00003 
00004 #ifndef _IO_H
00005 #define _IO_H
00006 
00007 
00008 extern DigitalOut SSR_HIGH_CURRENT_1;
00009 extern DigitalOut SSR_HIGH_CURRENT_2;
00010 
00011 extern DigitalOut SSR_LOW_CURRENT_1;
00012 extern DigitalOut SSR_LOW_CURRENT_2;
00013 
00014 extern AnalogIn  TempSensor;
00015 
00016 #define ENABLE_HIGH_CURRENT_RELAY   SSR_HIGH_CURRENT_1 = 1; SSR_HIGH_CURRENT_2 = 1;
00017 #define DISABLE_HIGH_CURRENT_RELAY   SSR_HIGH_CURRENT_1 = 0; SSR_HIGH_CURRENT_2 = 0;
00018 
00019 #define ENABLE_LOW_CURRENT_RELAY   SSR_LOW_CURRENT_1 = 1; SSR_LOW_CURRENT_2 = 1;
00020 #define DISABLE_LOW_CURRENT_RELAY   SSR_LOW_CURRENT_1 = 0; SSR_LOW_CURRENT_2 = 0;
00021 
00022 
00023 extern Serial PC;
00024 
00025 extern EthernetInterface eth;
00026 
00027 
00028 #endif