OpenChargeMicro/Software/src/ioController.h

42 lines
737 B
C
Raw Normal View History

2018-11-21 23:17:31 +01:00
/*
* ioController.h
*
* Created on: 20.11.2018
* Author: Hendrik Schutter
*/
#ifndef SRC_IOCONTROLLER_H_
#define SRC_IOCONTROLLER_H_
class ioController {
private:
2018-11-28 15:16:59 +01:00
2018-11-26 22:04:00 +01:00
void setWS2812(const unsigned char red, const unsigned char green,
const unsigned char blue);
2018-11-28 15:16:59 +01:00
void stopBuzzer();
2018-11-21 23:17:31 +01:00
public:
ioController();
~ioController();
double get5VProbe();
double get15VProbe();
void ports_init();
void activateChargers();
void deactivateChargers();
void setActiveLED(bool pBool);
2018-11-28 15:16:59 +01:00
2018-11-21 23:17:31 +01:00
void adc_init(void);
int readAdc(char chan);
void setMultiplexer(bool pS2, bool pS1, bool pS0);
2018-11-24 14:55:51 +01:00
2018-11-26 22:04:00 +01:00
void setWS2812_clear(void);
void setWS2812_green(void);
void setWS2812_red(void);
2018-11-28 15:16:59 +01:00
void startBuzzer();
2018-11-21 23:17:31 +01:00
};
#endif /* SRC_IOCONTROLLER_H_ */