YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
src
boards
boostxl_eduMKII_base.cpp
1
#include "boostxl_eduMKII_base.h"
2
#include <cassert>
3
4
gpio_interface
& boostxl_eduMKII_base::button1() {
5
assert(_button1);
6
return
*_button1;
7
}
8
9
gpio_interface
& boostxl_eduMKII_base::button2(){
10
assert(_button2);
11
return
*_button2;
12
}
13
14
gpio_interface
& boostxl_eduMKII_base::led_red(){
15
assert(_led_red);
16
return
*_led_red;
17
}
18
19
gpio_interface
& boostxl_eduMKII_base::led_green(){
20
assert(_led_green);
21
return
*_led_green;
22
}
23
24
gpio_interface
& boostxl_eduMKII_base::led_blue(){
25
assert(_led_blue);
26
return
*_led_blue;
27
}
28
29
gpio_interface
& boostxl_eduMKII_base::buzzer(){
30
assert(_buzzer);
31
return
*_buzzer;
32
}
33
34
gpio_interface
& boostxl_eduMKII_base::gator(){
35
assert(_gator);
36
return
*_gator;
37
}
38
39
gpio_interface
& boostxl_eduMKII_base::servo(){
40
assert(_servo);
41
return
*_servo;
42
}
43
44
spi_interface
& boostxl_eduMKII_base::lcd_spi(){
45
assert(_lcd_spi);
46
return
*_lcd_spi;
47
}
48
49
gpio_interface
& boostxl_eduMKII_base::lcd_cs(){
50
assert(_lcd_cs);
51
return
*_lcd_cs;
52
}
53
54
gpio_interface
& boostxl_eduMKII_base::lcd_rst(){
55
assert(_lcd_rst);
56
return
*_lcd_rst;
57
}
58
59
gpio_interface
& boostxl_eduMKII_base::lcd_dc(){
60
assert(_lcd_dc);
61
return
*_lcd_dc;
62
}
63
64
i2c_interface
& boostxl_eduMKII_base::sensor_i2c(){
65
assert(_sensor_i2c);
66
return
*_sensor_i2c;
67
}
68
69
gpio_interface
& boostxl_eduMKII_base::opt3001_int(){
70
assert(_opt3001_int);
71
return
*_opt3001_int;
72
}
73
74
gpio_interface
& boostxl_eduMKII_base::tmp006_int(){
75
assert(_tmp006_int);
76
return
*_tmp006_int;
77
}
78
79
adc_channel
& boostxl_eduMKII_base::joy_x(){
80
assert(_joy_x);
81
return
*_joy_x;
82
}
83
84
adc_channel
& boostxl_eduMKII_base::joy_y(){
85
assert(_joy_y);
86
return
*_joy_y;
87
}
88
89
gpio_interface
& boostxl_eduMKII_base::joy_button(){
90
assert(_joy_button);
91
return
*_joy_button;
92
}
93
94
adc_channel
& boostxl_eduMKII_base::mic(){
95
assert(_mic);
96
return
*_mic;
97
}
98
99
adc_channel
& boostxl_eduMKII_base::acc_x(){
100
assert(_acc_x);
101
return
*_acc_x;
102
}
103
104
adc_channel
& boostxl_eduMKII_base::acc_y(){
105
assert(_acc_y);
106
return
*_acc_y;
107
}
108
109
adc_channel
& boostxl_eduMKII_base::acc_z(){
110
assert(_acc_z);
111
return
*_acc_z;
112
}
adc_channel
Definition
adc_interface.h:66
gpio_interface
Definition
gpio_interface.h:83
i2c_interface
Definition
i2c_interface.h:22
spi_interface
Definition
spi_interface.h:25
Generated by
1.12.0