Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Libs/PollSwitch/PollSwitch.h

Committer:
pspatel321
Date:
2015-01-22
Revision:
36:0afc0fc8f86b
Parent:
30:91af74a299e1

File content as of revision 36:0afc0fc8f86b:

#ifndef _FILE_POLLSWITCH_H
#define _FILE_POLLSWITCH_H

#include "mbed.h"

class PollSwitch{
    public:
        PollSwitch(DigitalIn *sw, int numSwitches);
        
        // Returns new state, 0 means all Closed, 1=first sense line (fuse), 12=last (TSMS)
        char poll();
    
    private:
        DigitalIn *sw;
        int numSwitches;
};
#endif