Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

PollSwitch/PollSwitch.h

Committer:
martydd3
Date:
2014-11-07
Revision:
24:f58a3c0071c3
Parent:
17:c9ce210f6654

File content as of revision 24:f58a3c0071c3:

#ifndef _FILE_POLLSWITCH_H
#define _FILE_POLLSWITCH_H

#include "LPCDigitalIn.h"

class PollSwitch{
    public:
        PollSwitch();
        
        // Returns new state, updates last known
        uint16_t poll();
        
        // Stores the last known state
        uint16_t switchState;
};
#endif