C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ev3.h
Go to the documentation of this file.
1 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #ifndef ev3_h
34 #define ev3_h
35 
36 #include <unistd.h>
37 #include <sys/time.h>
38 #include <signal.h>
39 #include <string.h>
40 #include <stdbool.h>
41 
42 #include "ev3_constants.h"
43 #include "ev3_timer.h"
44 #include "ev3_wait.h"
45 #include "ev3_output.h"
47 #include "ev3_button.h"
48 #include "ev3_lcd.h"
49 #include "ev3_sound.h"
50 #include "ev3_bluetooth.h"
51 
56 int InitEV3();
57 
62 int FreeEV3();
63 
64 
65 bool EV3IsInitialized();
66 
70 char* EV3GetC4ev3Version();
71 
72 
73 /* Students are lazy, so lets have the intialization happen automatically for them.
74  * This code is usually linked in as a static library and the linker will throw
75  * the InitEV3 function out if no one wants it, so lets reference it manually
76  * and have GCC warn if a user accesses it.
77  */
78 
79 #ifndef EV3_NO_CONSTRUCTORS
80 static int __attribute__((used,deprecated)) (* volatile __reference_InitEV3)(void) = InitEV3;
81 static int __attribute__((used,deprecated)) (* volatile __reference_FreeEV3)(void) = FreeEV3;
82 #endif
83 
84 #endif // ev3_h
85 
86 #ifdef __cplusplus
87 }
88 #endif
bool EV3IsInitialized()
int FreeEV3()
Constants for various EV3 modules.
Functions and constants for controlling EV3 sounds.
char * EV3GetC4ev3Version()
int InitEV3()
Functions and constants for controlling EV3 LCD.
Functions and constants for controlling EV3 timers.
Functions and constants for controlling EV3 outputs.
Imports all the c4ev3 supported sensors.
Functions and constants for controlling EV3 buttons and LEDs.