libkovan  1
The kovan standard library
create.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright 2012 KISS Institute for Practical Robotics *
3  * *
4  * This file is part of libkovan. *
5  * *
6  * libkovan is free software: you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation, either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * libkovan is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with libkovan. Check the LICENSE file in the project root. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  **************************************************************************/
20 
29 #ifndef _CREATE_H_
30 #define _CREATE_H_
31 
32 #include "export.h"
33 #include "vtable.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
47 
55 
62 
67 
72 
77 
82 
87 
92 
96 VF EXPORT_SYM void create_demo(int d);
97 
102 
107 
112 
117 
122 
127 
132 
137 
142 
147 
152 
157 
162 
167 
172 
177 
182 
187 
192 
197 
201 VF EXPORT_SYM void set_create_total_angle(int angle);
202 
207 
211 VF EXPORT_SYM void set_create_distance(int dist);
212 
217 
222 
227 
232 
237 
242 
247 
252 
257 
262 
267 
272 
277 
282 
287 
292 
297 
302 
307 
312 
316 VF EXPORT_SYM void create_stop();
317 
321 VF EXPORT_SYM void create_drive(int speed, int radius);
322 
326 VF EXPORT_SYM void create_drive_straight(int speed);
327 
331 VF EXPORT_SYM void create_spin_CW(int speed);
332 
336 VF EXPORT_SYM void create_spin_CCW(int speed);
337 
341 VF EXPORT_SYM void create_drive_direct(int l_speed, int r_speed);
342 
346 VF EXPORT_SYM void create_spin_block(int speed, int angle);
347 
351 VF EXPORT_SYM int _create_get_raw_encoders(long *lenc, long *renc);
352 
356 VF EXPORT_SYM void create_advance_led(int on);
357 
361 VF EXPORT_SYM void create_play_led(int on) ;
362 
366 VF EXPORT_SYM void create_power_led(int color, int brightness);
367 
371 VF EXPORT_SYM void create_digital_output(int bits);
372 
376 VF EXPORT_SYM void create_pwm_low_side_drivers(int pwm2, int pwm1, int pwm0);
377 
381 VF EXPORT_SYM void create_low_side_drivers(int pwm2, int pwm1, int pwm0);
382 
386 VF EXPORT_SYM void create_load_song(int num);
387 
391 VF EXPORT_SYM void create_play_song(int num);
392 
396 VF EXPORT_SYM int create_read_block(char *data, int count);
397 
401 VF EXPORT_SYM void create_write_byte(char byte);
402 
407 
409 {
412 };
413 
418 
422 VF EXPORT_SYM void set_create_baud_rate(const enum BaudRate baudRate);
423 
424 VFL
425 
426 #ifdef __cplusplus
427 }
428 #endif
429 
430 #endif
VF EXPORT_SYM void create_spin_CW(int speed)
VF EXPORT_SYM int get_create_song_playing()
VF EXPORT_SYM void set_create_normalized_angle(int angle)
VF EXPORT_SYM void create_cover_dock()
VF EXPORT_SYM void create_write_byte(char byte)
VF EXPORT_SYM int get_create_play_button()
VF EXPORT_SYM int get_create_battery_voltage()
VF EXPORT_SYM void create_demo(int d)
VF EXPORT_SYM void set_create_baud_rate(const enum BaudRate baudRate)
VF EXPORT_SYM int get_create_distance()
VF EXPORT_SYM void create_play_led(int on)
VF EXPORT_SYM int create_read_block(char *data, int count)
VF EXPORT_SYM void create_advance_led(int on)
VF EXPORT_SYM int get_create_total_angle()
VF EXPORT_SYM int get_create_rfcliff()
VF EXPORT_SYM int get_create_overcurrents()
VF EXPORT_SYM int get_create_requested_radius()
VF EXPORT_SYM void create_drive_straight(int speed)
VF EXPORT_SYM int create_connect_once()
VF EXPORT_SYM int get_create_bay_DI()
VF EXPORT_SYM void create_cover()
VF EXPORT_SYM void create_play_song(int num)
VF EXPORT_SYM void create_start()
VF EXPORT_SYM int get_create_rfcliff_amt()
VF EXPORT_SYM int get_create_lfcliff_amt()
VF EXPORT_SYM int get_create_lwdrop()
VF EXPORT_SYM int get_create_song_number()
VF EXPORT_SYM int get_create_infrared()
VF EXPORT_SYM int get_create_rcliff()
VF EXPORT_SYM int get_create_battery_temp()
VF EXPORT_SYM int get_create_requested_velocity()
VF EXPORT_SYM int _create_get_raw_encoders(long *lenc, long *renc)
VF EXPORT_SYM int get_create_rbump()
VF EXPORT_SYM void create_pwm_low_side_drivers(int pwm2, int pwm1, int pwm0)
VF EXPORT_SYM void create_full()
VF EXPORT_SYM int get_create_mode()
VF EXPORT_SYM int get_create_requested_right_velocity()
VF EXPORT_SYM void create_spot()
VF EXPORT_SYM int get_create_vwall()
VF EXPORT_SYM int get_create_wall()
VF EXPORT_SYM void create_drive(int speed, int radius)
VF EXPORT_SYM void create_digital_output(int bits)
VF EXPORT_SYM void create_clear_serial_buffer()
VF EXPORT_SYM void create_drive_direct(int l_speed, int r_speed)
VF EXPORT_SYM int get_create_bay_AI()
VF EXPORT_SYM void create_power_led(int color, int brightness)
#define VF
Definition: vtable.h:10
VF EXPORT_SYM void create_stop()
VF EXPORT_SYM int get_create_advance_button()
VF EXPORT_SYM int get_create_battery_charging_state()
#define VFL
Definition: vtable.h:11
VF EXPORT_SYM void create_passive()
Definition: create.h:411
VF EXPORT_SYM void set_create_distance(int dist)
VF EXPORT_SYM void create_spin_CCW(int speed)
VF EXPORT_SYM void create_safe()
#define EXPORT_SYM
Definition: export.h:7
VF EXPORT_SYM void set_create_total_angle(int angle)
VF EXPORT_SYM int get_create_battery_capacity()
VF EXPORT_SYM int get_create_wall_amt()
VF EXPORT_SYM int get_create_lfcliff()
VF EXPORT_SYM int get_create_lbump()
VF EXPORT_SYM int get_create_normalized_angle()
Definition: create.h:410
VF EXPORT_SYM int get_create_lcliff()
VF EXPORT_SYM int get_create_cwdrop()
VF EXPORT_SYM int create_connect()
VF EXPORT_SYM void create_low_side_drivers(int pwm2, int pwm1, int pwm0)
VF EXPORT_SYM int get_create_battery_charge()
VF EXPORT_SYM void create_spin_block(int speed, int angle)
VF EXPORT_SYM int get_create_rwdrop()
VF EXPORT_SYM int get_create_number_of_stream_packets()
VF EXPORT_SYM enum BaudRate get_create_baud_rate()
VF EXPORT_SYM int get_create_lcliff_amt()
BaudRate
Definition: create.h:408
VF EXPORT_SYM int get_create_rcliff_amt()
VF EXPORT_SYM void create_disconnect()
VF EXPORT_SYM int get_create_battery_current()
VF EXPORT_SYM int get_create_requested_left_velocity()
VF EXPORT_SYM void create_load_song(int num)