MBED Framework with communication to be tested

Dependencies:   mbed

PROTOTYPES.h

Committer:
AndrewLouw
Date:
2017-07-23
Revision:
3:5995028595d2
Parent:
2:64443528f6bb

File content as of revision 3:5995028595d2:

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]);