Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
usb_cdc.h
Go to the documentation of this file.
1 #pragma once
3 #include <stdint.h>
4 
5 namespace modules {
6 
8 namespace usb {
9 
10 class CDC {
11 public:
12  constexpr inline CDC() = default;
13 
15  void Init();
16 
18  void Step();
19 };
20 
22 extern CDC cdc;
23 
24 } // namespace usb
25 } // namespace modules
26 
27 namespace mu = modules::usb;
Definition: usb_cdc.h:10
void Step()
Calls USB_USBTask from the LUFA library - basically takes care about the runtime of USB CDC operation...
Definition: usb_cdc.cpp:100
void Init()
Calls USB_Init from the LUFA library.
Definition: usb_cdc.cpp:92
The usb namespace provides all necessary facilities related to the USB interface.
Definition: usb_cdc.cpp:88
CDC cdc
The one and only instance of USB CDC in the FW.
Definition: usb_cdc.cpp:90
The modules namespace contains models of MMU's components.
Definition: command_base.h:8