Nintendo R.O.B. Control Library  v1.1.2
Library to control the Nintendo Robotic Operating Buddy
signal_generator_error.hpp
Go to the documentation of this file.
1 #ifndef SIGNAL_GENERATOR_ERROR_HPP
2 #define SIGNAL_GENERATOR_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  driver_error,
19 };
20 
21 #ifndef __AVR__
22 
24 std::error_condition make_error_condition(signal_generator_error e);
25 
26 #else // __AVR__
27 
28 typedef int error_code;
29 
30 #endif // not __AVR__
31 
32 error_code make_error_code(signal_generator_error e);
33 
34 }} // namespace nes::rob
35 
36 #ifndef __AVR__
37 
38 namespace std {
39 
40 template <>
41 struct is_error_code_enum<nes::rob::signal_generator_error> : true_type {};
42 
43 }
44 
45 #endif // not __AVR__
46 
47 #endif // SIGNAL_GENERATOR_ERROR_HPP
std::error_code error_code
Definition: hal_error.hpp:24
signal_generator_error
Signal Generator Errors.
Definition: signal_generator_error.hpp:15
Definition: arduino_debug_driver.hpp:6