#ifndef DIGITAL_IO_H_
#define DIGITAL_IO_H_

/**** Includes ****/
#include <stdint.h>
#include "din.h"
#include "dout.h"

namespace board {

/**** Public definitions ****/
const int8_t DIO_LOW  = 0;
const int8_t DIO_HIGH = 1;
const int8_t DIO_HIZ   = -1;

class DigitalIO : public DigitalIn, public DigitalOut
{
	public:
	DigitalIO(uint8_t gpio_ch, uint8_t init_value);
	~DigitalIO(void);
	
	uint8_t is_io_match(void);
};

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

#ifdef TESTING
#endif

} //namespace

#endif /* DIGITAL_IO_H_ */