#ifndef HV_DIN_H_
#define HV_DIN_H_

/**** Includes ****/
#include <stdint.h>

namespace board {

/**** Public definitions ****/
const uint8_t HVDIN_LOW  = 0;
const uint8_t HVDIN_HIGH = 1;

class HVDigitalIn
{
	protected:
	uint8_t gpio_ch;
	
	public:
	HVDigitalIn(uint8_t gpio_ch, uint8_t init_read);
	~HVDigitalIn(void);
	
	uint8_t last_read;
	
	uint8_t read(void);
};

/**** Public function declarations ****/

#ifdef TESTING
#endif

} //namespace

#endif /* HV_DIN_H_ */