MBED Framework with communication to be tested

Dependencies:   mbed

PROTOTYPES.h

Committer:
AndrewLouw
Date:
2017-07-23
Revision:
4:85bc76bb6fdb
Parent:
3:5995028595d2

File content as of revision 4:85bc76bb6fdb:

typedef enum OpModesym {Setup, Canopy_on, Canopy_off, Manual, Error} OpModesym;
typedef enum Errorsym {False,Switch_Error} Errorsym;


OpModesym readswitches();
void checkLDR(float &LDR1,float &LDR2);
void checkMPPT(float *MMPT);
bool shouldmove(float *MMPT,float LDR1,float LDR2,double Upperlimit,double Lowelimit,uint8_t *panel_locations);
void getlocations(double Upperlimit, double Lowerlimit,uint8_t *panel_locations);
void sendlocations(uint8_t *panel_locations);
uint8_t toEncoder(double angle);
void interruptHandler();
void spi_send(uint8_t write_buf [8],uint8_t decoded_buf[7]);