1
BallastController.h@2:9164b1d0b53d, 2016-03-10 (annotated)
- Committer:
- sk398
- Date:
- Thu Mar 10 16:23:34 2016 +0000
- Revision:
- 2:9164b1d0b53d
- Parent:
- 0:8380ab528739
Initial working version including output command using state pointer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sk398 | 0:8380ab528739 | 1 | /* ##################################################################### |
sk398 | 0:8380ab528739 | 2 | SD20.cpp |
sk398 | 0:8380ab528739 | 3 | -------- |
sk398 | 0:8380ab528739 | 4 | |
sk398 | 0:8380ab528739 | 5 | Surface Ship, Group 5 |
sk398 | 0:8380ab528739 | 6 | --------------------- |
sk398 | 0:8380ab528739 | 7 | |
sk398 | 0:8380ab528739 | 8 | Written by: Steven Kay |
sk398 | 0:8380ab528739 | 9 | |
sk398 | 0:8380ab528739 | 10 | Date: February 2016 |
sk398 | 0:8380ab528739 | 11 | |
sk398 | 0:8380ab528739 | 12 | Function: This |
sk398 | 0:8380ab528739 | 13 | |
sk398 | 0:8380ab528739 | 14 | Version: 1.0 |
sk398 | 0:8380ab528739 | 15 | |
sk398 | 0:8380ab528739 | 16 | Version History |
sk398 | 0:8380ab528739 | 17 | --------------- |
sk398 | 0:8380ab528739 | 18 | |
sk398 | 0:8380ab528739 | 19 | 1.1 rgdfgdfgdfggdfgdg |
sk398 | 0:8380ab528739 | 20 | |
sk398 | 0:8380ab528739 | 21 | 1.0 gdgddfdddgd |
sk398 | 0:8380ab528739 | 22 | |
sk398 | 0:8380ab528739 | 23 | ##################################################################### */ |
sk398 | 0:8380ab528739 | 24 | |
sk398 | 0:8380ab528739 | 25 | #include "mbed.h" |
sk398 | 0:8380ab528739 | 26 | #include "Latch_FET_Driver.h" |
sk398 | 0:8380ab528739 | 27 | |
sk398 | 0:8380ab528739 | 28 | #ifndef BALLAST_CONTROLLER |
sk398 | 0:8380ab528739 | 29 | #define BALLAST_CONTROLLER |
sk398 | 0:8380ab528739 | 30 | |
sk398 | 0:8380ab528739 | 31 | class BallastController |
sk398 | 0:8380ab528739 | 32 | { |
sk398 | 0:8380ab528739 | 33 | |
sk398 | 0:8380ab528739 | 34 | public: |
sk398 | 0:8380ab528739 | 35 | |
sk398 | 0:8380ab528739 | 36 | BallastController( PinName S1_D,PinName S1_CLK, |
sk398 | 0:8380ab528739 | 37 | PinName S2_D,PinName S2_CLK, |
sk398 | 0:8380ab528739 | 38 | PinName S3_D,PinName S3_CLK, |
sk398 | 0:8380ab528739 | 39 | PinName S4_D,PinName S4_CLK ); |
sk398 | 0:8380ab528739 | 40 | |
sk398 | 2:9164b1d0b53d | 41 | void outputToSolenoids(bool *states); |
sk398 | 2:9164b1d0b53d | 42 | |
sk398 | 0:8380ab528739 | 43 | private: |
sk398 | 0:8380ab528739 | 44 | |
sk398 | 2:9164b1d0b53d | 45 | |
sk398 | 0:8380ab528739 | 46 | protected: |
sk398 | 2:9164b1d0b53d | 47 | // Array of Latch_FET_Driver objects - each index is a solenoid valve object |
sk398 | 0:8380ab528739 | 48 | Latch_FET_Driver *Solenoids[4]; |
sk398 | 0:8380ab528739 | 49 | |
sk398 | 0:8380ab528739 | 50 | }; |
sk398 | 0:8380ab528739 | 51 | |
sk398 | 0:8380ab528739 | 52 | #endif |