Nintendo R.O.B. Control Library
v1.1.2
Library to control the Nintendo Robotic Operating Buddy
src
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
14
enum class
pulse_driver_error
15
{
16
success
= 0,
17
hal_clock
,
18
hal_gpio_config
,
19
hal_gpio_state
,
20
hal_init
21
};
22
23
#ifndef __AVR__
24
25
typedef
std::error_code
error_code
;
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
nes::rob::pulse_driver_error
pulse_driver_error
Pulse Driver Errors.
Definition:
pulse_driver_error.hpp:15
nes::rob::pulse_driver_error::hal_clock
@ hal_clock
nes::rob::pulse_driver_error::success
@ success
nes::rob::pulse_driver_error::hal_gpio_state
@ hal_gpio_state
nes::rob::pulse_driver_error::hal_init
@ hal_init
nes::rob::pulse_driver_error::hal_gpio_config
@ hal_gpio_config
nes::rob::error_code
std::error_code error_code
Definition:
hal_error.hpp:24
nes
Definition:
arduino_debug_driver.hpp:6
Generated by
1.9.1