Prusa3d Marlin fork
mmu2_error_converter.h
1 #pragma once
2 #include <stdint.h>
3 #include <stddef.h>
4 #ifdef __AVR__
5  #include "mmu2/buttons.h"
6  #include "mmu2/error_codes.h"
7 #else
8  #include "buttons.h"
9  #include "../../../../../../Prusa-Error-Codes/04_MMU/button_operations.h"
10  #include "../../../../../../Prusa-Firmware-MMU/src/logic/error_codes.h"
11 #endif
12 
13 namespace MMU2 {
14 
17 uint8_t PrusaErrorCodeIndex(ErrorCode ec);
18 
21 const char *PrusaErrorTitle(uint8_t i);
22 
25 const char *PrusaErrorDesc(uint8_t i);
26 
29 uint16_t PrusaErrorCode(uint8_t i);
30 
33 uint8_t PrusaErrorButtons(uint8_t i);
34 
37 const char *PrusaErrorButtonTitle(uint8_t bi);
38 
40 const char *PrusaErrorButtonMore();
41 
44 void SetButtonResponse(ButtonOperations rsp);
45 
48 Buttons ButtonPressed(ErrorCode ec);
49 
53 Buttons ButtonAvailable(ErrorCode ec);
54 
55 } // namespace MMU2
New MMU2 protocol logic.
Definition: mmu2.cpp:26
Buttons ButtonAvailable(ErrorCode ec)
Definition: mmu2_error_converter.cpp:200
const char * PrusaErrorTitle(uint8_t i)
Definition: mmu2_error_converter.cpp:168
uint8_t PrusaErrorCodeIndex(ErrorCode ec)
Definition: mmu2_error_converter.cpp:46
Buttons ButtonPressed(ErrorCode ec)
Definition: mmu2_error_converter.cpp:189
uint8_t PrusaErrorButtons(uint8_t i)
Definition: mmu2_error_converter.cpp:176
const char * PrusaErrorButtonMore()
Definition: mmu2_error_converter.cpp:185
uint16_t PrusaErrorCode(uint8_t i)
Definition: mmu2_error_converter.cpp:164
void SetButtonResponse(ButtonOperations rsp)
Definition: mmu2_error_converter.cpp:345
const char * PrusaErrorButtonTitle(uint8_t bi)
Definition: mmu2_error_converter.cpp:180
const char * PrusaErrorDesc(uint8_t i)
Definition: mmu2_error_converter.cpp:172