Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
30:91af74a299e1
Parent:
24:f58a3c0071c3
Child:
31:7eaa5e881b56
--- a/CANController/FanPump/FanPump.h	Fri Nov 07 21:26:46 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#ifndef _FILE_FANPUMP_H
-#define _FILE_FANPUMP_H
-
-#include "mbed.h"
-
-class FanPump{
-public:
-    // Takes Pwmout pin, period (seconds), duty cycle slew rate in second^-1 (1 means duty 0 to 1 occurs over 1 second, 0 means no slew)
-    // Use slew rate to implement soft start
-    FanPump(PinName pin, float period, float slew);
-    void write(float duty);
-    float read();       // Read the last setpoint
-    float readRaw();    // Read the raw current duty (may be mid-transition)
-    void directOff();   // Turn off the channel immediately (no slew)
-    int slew();         // Slew rate callback function
-private:
-    PwmOut pwm;         // mbed PWM out
-    volatile int chan;                  // pwm channel#
-    static uint32_t period_us;          // Period in microseconds (shared by all channels)
-    volatile uint32_t setPoint_us;
-    volatile uint32_t maxChange_us;     // Max pulsewidth change allowed to achieve the slew rate
-};
-
-#endif
\ No newline at end of file