|
@@ -127,47 +127,47 @@ class MarlinSerial { //: public Stream
|
127
|
127
|
|
128
|
128
|
public:
|
129
|
129
|
MarlinSerial();
|
130
|
|
- void begin(long);
|
131
|
|
- void end();
|
132
|
|
- int peek(void);
|
133
|
|
- int read(void);
|
134
|
|
- void flush(void);
|
135
|
|
- uint8_t available(void);
|
136
|
|
- void checkRx(void);
|
137
|
|
- void write(uint8_t c);
|
|
130
|
+ static void begin(long);
|
|
131
|
+ static void end();
|
|
132
|
+ static int peek(void);
|
|
133
|
+ static int read(void);
|
|
134
|
+ static void flush(void);
|
|
135
|
+ static uint8_t available(void);
|
|
136
|
+ static void checkRx(void);
|
|
137
|
+ static void write(uint8_t c);
|
138
|
138
|
#if TX_BUFFER_SIZE > 0
|
139
|
|
- uint8_t availableForWrite(void);
|
140
|
|
- void flushTX(void);
|
|
139
|
+ static uint8_t availableForWrite(void);
|
|
140
|
+ static void flushTX(void);
|
141
|
141
|
#endif
|
142
|
142
|
|
143
|
143
|
private:
|
144
|
|
- void printNumber(unsigned long, uint8_t);
|
145
|
|
- void printFloat(double, uint8_t);
|
|
144
|
+ static void printNumber(unsigned long, uint8_t);
|
|
145
|
+ static void printFloat(double, uint8_t);
|
146
|
146
|
|
147
|
147
|
public:
|
148
|
|
- FORCE_INLINE void write(const char* str) { while (*str) write(*str++); }
|
149
|
|
- FORCE_INLINE void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }
|
150
|
|
- FORCE_INLINE void print(const String& s) { for (int i = 0; i < (int)s.length(); i++) write(s[i]); }
|
151
|
|
- FORCE_INLINE void print(const char* str) { write(str); }
|
152
|
|
-
|
153
|
|
- void print(char, int = BYTE);
|
154
|
|
- void print(unsigned char, int = BYTE);
|
155
|
|
- void print(int, int = DEC);
|
156
|
|
- void print(unsigned int, int = DEC);
|
157
|
|
- void print(long, int = DEC);
|
158
|
|
- void print(unsigned long, int = DEC);
|
159
|
|
- void print(double, int = 2);
|
160
|
|
-
|
161
|
|
- void println(const String& s);
|
162
|
|
- void println(const char[]);
|
163
|
|
- void println(char, int = BYTE);
|
164
|
|
- void println(unsigned char, int = BYTE);
|
165
|
|
- void println(int, int = DEC);
|
166
|
|
- void println(unsigned int, int = DEC);
|
167
|
|
- void println(long, int = DEC);
|
168
|
|
- void println(unsigned long, int = DEC);
|
169
|
|
- void println(double, int = 2);
|
170
|
|
- void println(void);
|
|
148
|
+ static FORCE_INLINE void write(const char* str) { while (*str) write(*str++); }
|
|
149
|
+ static FORCE_INLINE void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }
|
|
150
|
+ static FORCE_INLINE void print(const String& s) { for (int i = 0; i < (int)s.length(); i++) write(s[i]); }
|
|
151
|
+ static FORCE_INLINE void print(const char* str) { write(str); }
|
|
152
|
+
|
|
153
|
+ static void print(char, int = BYTE);
|
|
154
|
+ static void print(unsigned char, int = BYTE);
|
|
155
|
+ static void print(int, int = DEC);
|
|
156
|
+ static void print(unsigned int, int = DEC);
|
|
157
|
+ static void print(long, int = DEC);
|
|
158
|
+ static void print(unsigned long, int = DEC);
|
|
159
|
+ static void print(double, int = 2);
|
|
160
|
+
|
|
161
|
+ static void println(const String& s);
|
|
162
|
+ static void println(const char[]);
|
|
163
|
+ static void println(char, int = BYTE);
|
|
164
|
+ static void println(unsigned char, int = BYTE);
|
|
165
|
+ static void println(int, int = DEC);
|
|
166
|
+ static void println(unsigned int, int = DEC);
|
|
167
|
+ static void println(long, int = DEC);
|
|
168
|
+ static void println(unsigned long, int = DEC);
|
|
169
|
+ static void println(double, int = 2);
|
|
170
|
+ static void println(void);
|
171
|
171
|
};
|
172
|
172
|
|
173
|
173
|
extern MarlinSerial customizedSerial;
|