Steven Kay / BallastController
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BallastController.h Source File

BallastController.h

00001 /* #####################################################################
00002                                SD20.cpp
00003                                --------
00004                 
00005                           Surface Ship, Group 5
00006                           ---------------------
00007  
00008  Written by:        Steven Kay
00009  
00010  Date:              February 2016
00011  
00012  Function:          This 
00013  
00014  Version:           1.0
00015  
00016  Version History
00017  ---------------
00018  
00019  1.1                rgdfgdfgdfggdfgdg
00020  
00021  1.0                gdgddfdddgd
00022     
00023  ##################################################################### */
00024 
00025 #include "mbed.h"
00026 #include "Latch_FET_Driver.h"
00027 
00028 #ifndef BALLAST_CONTROLLER
00029 #define BALLAST_CONTROLLER
00030  
00031  class BallastController
00032 {
00033 
00034 public:
00035 
00036 BallastController(  PinName S1_D,PinName S1_CLK,
00037                     PinName S2_D,PinName S2_CLK, 
00038                     PinName S3_D,PinName S3_CLK, 
00039                     PinName S4_D,PinName S4_CLK     );
00040                     
00041 void outputToSolenoids(bool *states);
00042 
00043 private:
00044 
00045 
00046 protected:
00047 // Array of Latch_FET_Driver objects - each index is a solenoid valve object
00048 Latch_FET_Driver *Solenoids[4];
00049 
00050 };
00051 
00052 #endif