2014-11-26 22:30:25 +01:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
2015-12-08 11:07:45 +01:00
|
|
|
#include <xsinit.h>
|
2014-11-26 22:30:25 +01:00
|
|
|
#include "libslic3r/GCodeSender.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::GCode::Sender} class GCodeSender {
|
2014-12-31 19:10:46 +01:00
|
|
|
GCodeSender();
|
2014-11-26 22:30:25 +01:00
|
|
|
~GCodeSender();
|
|
|
|
|
2014-12-31 19:10:46 +01:00
|
|
|
bool connect(std::string port, unsigned int baud_rate);
|
|
|
|
void disconnect();
|
2015-11-02 20:34:36 +01:00
|
|
|
bool is_connected();
|
|
|
|
bool wait_connected(unsigned int timeout = 3);
|
|
|
|
int queue_size();
|
2015-01-04 18:17:15 +01:00
|
|
|
void send(std::string s, bool priority = false);
|
2015-01-03 23:25:55 +01:00
|
|
|
void pause_queue();
|
|
|
|
void resume_queue();
|
2015-11-08 10:10:54 +01:00
|
|
|
void purge_queue(bool priority = false);
|
2015-01-04 23:18:23 +01:00
|
|
|
std::vector<std::string> purge_log();
|
|
|
|
std::string getT();
|
|
|
|
std::string getB();
|
2014-11-26 22:30:25 +01:00
|
|
|
};
|