#ifndef CONST_CURRENT_OUTPUT_H_
#define CONST_CURRENT_OUTPUT_H_

/**** Includes ****/
#include <stdint.h>
#include "../bsp/ain.h"
#include "cv_output.h"

namespace hw {

/**** Public definitions ****/

class CCoutput : public CVoutput
{
	protected:
	bsp::AnalogIn* out_voltage;
	bsp::AnalogIn* out_currnet;
	
	public:
	CCoutput(bsp::Hafbridge* hbridge, bsp::AnalogIn* supply_u, bsp::AnalogIn* out_u, bsp::AnalogIn* out_i);
	
	void update(void);
	
	uint16_t out_impedance;
	uint16_t target_voltage;
};

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

#ifdef TESTING
#endif

} //namespace

#endif /* CONST_VOLTAGE_OUTPUT_H_ */