/*
 * eCtrler.h
 *
 *  Created on: 2020. 5. 17.
 *      Author: stryx
 */

#ifndef ECTRLER_ECTRLER_H_
#define ECTRLER_ECTRLER_H_

#include <string>
#include <memory>
#include <SerialStream.h>

class eCtrler
{
public:
	eCtrler();
	eCtrler(std::string deviceFilePath);

	~eCtrler();

	bool AttatchTo(std::string deviceFilePath);
	void Detatch();
	void ForceTriggering();
	void EnableAutotriggering();
	void DisableAutotriggering();
private:
	std::string _deviceFilePath;
	std::shared_ptr<LibSerial::SerialStream> _ss;
};

#endif /* ECTRLER_ECTRLER_H_ */
