Prusa3d Marlin fork
mmu2_serial.h
1 #pragma once
2 #include <stdint.h>
3 #include <stddef.h>
4 
5 namespace MMU2 {
6 
8 class MMU2Serial {
9 public:
10  MMU2Serial() = default;
11  void begin(uint32_t baud);
12  void close();
13  int read();
14  void flush();
15  void write(const uint8_t *buffer, size_t size);
16 };
17 
18 extern MMU2Serial mmu2Serial;
19 
20 } // namespace MMU2
A minimal serial interface for the MMU.
Definition: mmu2_serial.h:8
New MMU2 protocol logic.
Definition: mmu2.cpp:26