Nintendo R.O.B. Control Library  v1.1.2
Library to control the Nintendo Robotic Operating Buddy
pulse_driver_error.hpp
Go to the documentation of this file.
1 #ifndef PULSE_DRIVER_ERROR_HPP
2 #define PULSE_DRIVER_ERROR_HPP
3 
4 #ifndef __AVR__
5  #include <system_error>
6  #include <type_traits>
7 #endif
8 
9 namespace nes { namespace rob {
10 
15 {
16  success = 0,
17  hal_clock,
20  hal_init
21 };
22 
23 #ifndef __AVR__
24 
26 std::error_condition make_error_condition(pulse_driver_error e);
27 
28 #else // __AVR__
29 
30 typedef int error_code;
31 
32 #endif // not __AVR__
33 
34 error_code make_error_code(pulse_driver_error e);
35 
36 }} // namespace nes::rob
37 
38 #ifndef __AVR__
39 
40 namespace std {
41 
42 template <>
43 struct is_error_code_enum<nes::rob::pulse_driver_error> : true_type {};
44 
45 }
46 
47 #endif // not __AVR__
48 
49 #endif // PULSE_DRIVER_ERROR_HPP
pulse_driver_error
Pulse Driver Errors.
Definition: pulse_driver_error.hpp:15
std::error_code error_code
Definition: hal_error.hpp:24
Definition: arduino_debug_driver.hpp:6