Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PollSwitch.h Source File

PollSwitch.h

00001 #ifndef _FILE_POLLSWITCH_H
00002 #define _FILE_POLLSWITCH_H
00003 
00004 #include "mbed.h"
00005 
00006 class PollSwitch{
00007     public:
00008         PollSwitch(DigitalIn *sw, int numSwitches);
00009         
00010         // Returns new state, 0 means all Closed, 1=first sense line (fuse), 12=last (TSMS)
00011         char poll();
00012     
00013     private:
00014         DigitalIn *sw;
00015         int numSwitches;
00016 };
00017 #endif