Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GCodeSender.xsp « xsp « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c55194e56ef5742f817380b3b26ae234c8e7792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%module{Slic3r::XS};

#ifdef BOOST_LIBS

%{
#include <xsinit.h>
#include "libslic3r/GCodeSender.hpp"
%}

%name{Slic3r::GCode::Sender} class GCodeSender {
    GCodeSender();
    ~GCodeSender();
    
    bool connect(std::string port, unsigned int baud_rate);
    void disconnect();
    bool is_connected();
    bool wait_connected(unsigned int timeout = 3);
    int queue_size();
    void send(std::string s, bool priority = false);
    void pause_queue();
    void resume_queue();
    void purge_queue(bool priority = false);
    std::vector<std::string> purge_log();
    std::string getT();
    std::string getB();
};

#endif