-
Notifications
You must be signed in to change notification settings - Fork 8
/
thymio_natives.h
157 lines (121 loc) · 5.36 KB
/
thymio_natives.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/*
Thymio-II Firmware
Copyright (C) 2011 Philippe Retornaz <philippe dot retornaz at epfl dot ch>,
Mobots group (http://mobots.epfl.ch), Robotics system laboratory (http://lsro.epfl.ch)
EPFL Ecole polytechnique federale de Lausanne (http://www.epfl.ch)
See authors.txt for more details about other contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _THYMIO_NATIVES_H_
#define _THYMIO_NATIVES_H_
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_led;
void set_led(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_record;
void sound_record(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_play;
void sound_playback(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_replay;
void sound_replay(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_sound_system;
void sound_system(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_led_circle;
void set_led_circle(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_led_rgb_top;
void set_rgb_top(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_led_rgb_bl;
void set_rgb_bl(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_led_rgb_br;
void set_rgb_br(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_play_freq;
void play_freq(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_led_buttons;
void set_buttons_leds(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_hprox_leds;
void set_hprox_leds(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_vprox_leds;
void set_vprox_leds(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_rc_leds;
void set_rc_leds(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_sound_leds;
void set_sound_leds(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_ntc_leds;
void set_ntc_leds(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_set_wave;
void set_wave(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_prox_network;
void prox_network(AsebaVMState *vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_sd_open;
void thymio_native_sd_open(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_sd_write;
void thymio_native_sd_write(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_sd_read;
void thymio_native_sd_read(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_sd_seek;
void thymio_native_sd_seek(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_rf_nodeid;
void set_rf_nodeid(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_rf_setup;
void set_rf_setup(AsebaVMState * vm);
extern AsebaNativeFunctionDescription AsebaNativeDescription_duration;
void sound_duration(AsebaVMState *vm);
#define THYMIO_NATIVES_DESCRIPTIONS \
&AsebaNativeDescription_set_led, \
&AsebaNativeDescription_record, \
&AsebaNativeDescription_play, \
&AsebaNativeDescription_replay, \
&AsebaNativeDescription_sound_system, \
&AsebaNativeDescription_set_led_circle, \
&AsebaNativeDescription_set_led_rgb_top, \
&AsebaNativeDescription_set_led_rgb_bl, \
&AsebaNativeDescription_set_led_rgb_br, \
&AsebaNativeDescription_play_freq, \
&AsebaNativeDescription_set_led_buttons, \
&AsebaNativeDescription_set_hprox_leds, \
&AsebaNativeDescription_set_vprox_leds, \
&AsebaNativeDescription_set_rc_leds, \
&AsebaNativeDescription_set_sound_leds, \
&AsebaNativeDescription_set_ntc_leds, \
&AsebaNativeDescription_set_wave, \
&AsebaNativeDescription_prox_network, \
&AsebaNativeDescription_sd_open, \
&AsebaNativeDescription_sd_write, \
&AsebaNativeDescription_sd_read, \
&AsebaNativeDescription_sd_seek, \
&AsebaNativeDescription_rf_nodeid, \
&AsebaNativeDescription_rf_setup, \
&AsebaNativeDescription_duration
#define THYMIO_NATIVES_FUNCTIONS \
set_led, \
sound_record, \
sound_playback, \
sound_replay, \
sound_system, \
set_led_circle, \
set_rgb_top, \
set_rgb_bl, \
set_rgb_br, \
play_freq, \
set_buttons_leds, \
set_hprox_leds, \
set_vprox_leds, \
set_rc_leds, \
set_sound_leds, \
set_ntc_leds, \
set_wave, \
prox_network, \
thymio_native_sd_open, \
thymio_native_sd_write, \
thymio_native_sd_read, \
thymio_native_sd_seek, \
set_rf_nodeid, \
set_rf_setup, \
sound_duration
#endif