GCodeSender.xsp 627 B

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