GCodeSender.xsp 600 B

123456789101112131415161718192021222324
  1. %module{Slic3r::XS};
  2. %{
  3. #include <xsinit.h>
  4. #include "libslic3r/GCodeSender.hpp"
  5. %}
  6. %name{Slic3r::GCode::Sender} class GCodeSender {
  7. GCodeSender();
  8. ~GCodeSender();
  9. bool connect(std::string port, unsigned int baud_rate);
  10. void disconnect();
  11. bool is_connected();
  12. bool wait_connected(unsigned int timeout = 3);
  13. int queue_size();
  14. void send(std::string s, bool priority = false);
  15. void pause_queue();
  16. void resume_queue();
  17. void purge_queue(bool priority = false);
  18. std::vector<std::string> purge_log();
  19. std::string getT();
  20. std::string getB();
  21. };