Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
B
 BUTTON_BACK
 BUTTON_CENTER
 BUTTON_DOWN
 BUTTON_LEFT
 BUTTON_RIGHT
 BUTTON_UP
E
 Enumerations
 ev3_bin_data_format_enum
 ev3_button_identifier
 ev3_button_pressed
 ev3_circle_lcd
 ev3_circle_lcd_out
 ev3_clear_lcd
 ev3_close_motor
 ev3_close_sensor
 ev3_command_motor
 ev3_command_motor_by_name
 ev3_delete_motors
 ev3_delete_sensors
 ev3_ellipse_lcd
 ev3_ellipse_lcd_out
 ev3_get_duty_cycle
 ev3_get_duty_cycle_sp
 ev3_get_led
 ev3_get_polarity
 ev3_get_position
 ev3_get_position_sp
 ev3_get_ramp_down_sp
 ev3_get_ramp_up_sp
 ev3_get_speed
 ev3_get_speed_sp
 ev3_get_time_sp
 ev3_init_buttion
 ev3_init_lcd
 ev3_init_led
 ev3_led_color
 ev3_led_name
 ev3_line_lcd
 ev3_load_motors
 ev3_load_sensors
 ev3_mode_sensor
 ev3_mode_sensor_by_name
 ev3_motor
 ev3_motor_identifier
 ev3_motor_state
 ev3_open_motor
 ev3_open_sensor
 ev3_quit_button
 ev3_quit_led
 ev3_rectangle_lcd
 ev3_rectangle_lcd_out
 ev3_reset_motor
 EV3_S_LCD
 ev3_search_motor_by_identifier
 ev3_search_motor_by_port
 ev3_search_sensor_by_name
 ev3_search_sensor_by_port
 ev3_sensor
 ev3_set_duty_cycle_sp
 ev3_set_led
 ev3_set_polarity
 ev3_set_position
 ev3_set_position_sp
 ev3_set_ramp_down_sp
 ev3_set_ramp_up_sp
 ev3_set_speed_sp
 ev3_set_time_sp
 ev3_stop_action_motor
 ev3_stop_action_motor_by_name
 ev3_string
 EV3_STRING_LENGTH
 EV3_SY_LCD
 ev3_text_lcd_large
 ev3_text_lcd_normal
 ev3_text_lcd_small
 ev3_text_lcd_tiny
 ev3_update_sensor_bin
 ev3_update_sensor_val
 EV3_X_LCD
 EV3_Y_LCD
 ev3c
 ev3c_battery
 ev3c_button
 ev3c_core
 ev3c_current
 ev3c_lcd
 ev3c_led
 ev3c_motor
 ev3c_sensor
 ev3c_voltage
back button
center button
down button
left button
right button
up button
the format of the binary raw data of the sensors.
The different buttons types
int32_t ev3_button_pressed(enum ev3_button_identifier button)
Tells you, whether the named button is pressed or not.
void ev3_circle_lcd(int32_t x,
int32_t y,
int32_t r,
int32_t bit)
Draws a filled circle
void ev3_circle_lcd_out(int32_t x,
int32_t y,
int32_t r,
int32_t bit)
Draws a circle frame
void ev3_clear_lcd()
Blanks the screen
void ev3_close_motor(ev3_motor_ptr motor)
Closes the motor.
void ev3_close_sensor(ev3_sensor_ptr sensor)
Closes the sensor.
ev3_motor_ptr ev3_command_motor(ev3_motor_ptr motor,
int32_t command)
Sets the command of the motor, e.g.
ev3_motor_ptr ev3_command_motor_by_name(ev3_motor_ptr motor,
char *command)
Sets the command of the motor, e.g.
void ev3_delete_motors(ev3_motor_ptr motors)
Deletes the linked list of available motors.
void ev3_delete_sensors(ev3_sensor_ptr sensors)
Deletes the linked list of available sensors.
void ev3_ellipse_lcd(int32_t x,
int32_t y,
int32_t rx,
int32_t ry,
int32_t bit)
Draws a filled ellipse
void ev3_ellipse_lcd_out(int32_t x,
int32_t y,
int32_t rx,
int32_t ry,
int32_t bit)
Draws a ellipse frame
int32_t ev3_get_duty_cycle(ev3_motor_ptr motor)
Returns the duty cycle of a motor
int32_t ev3_get_duty_cycle_sp(ev3_motor_ptr motor)
Returns the duty cycle set point of a motor
int32_t ev3_get_led(enum ev3_led_name led,
enum ev3_led_color color)
Returns the brightness of an led.
int32_t ev3_get_polarity(ev3_motor_ptr motor)
Returns the polarity of a motor
int32_t ev3_get_position(ev3_motor_ptr motor)
Returns the position of a motor
int32_t ev3_get_position_sp(ev3_motor_ptr motor)
Returns the position set point of a motor
int32_t ev3_get_ramp_down_sp(ev3_motor_ptr motor)
Returns the ramp down set point of a motor
int32_t ev3_get_ramp_up_sp(ev3_motor_ptr motor)
Returns the ramp up set point of a motor
int32_t ev3_get_speed(ev3_motor_ptr motor)
Returns the speed of a motor
int32_t ev3_get_speed_sp(ev3_motor_ptr motor)
Returns the speed set point of a motor
int32_t ev3_get_time_sp(ev3_motor_ptr motor)
Returns the time set point of a motor
Initializes the button functions.
void ev3_init_lcd()
Initializes the lcd.
void ev3_init_led()
Initializes the led functions.
color of an led
name of an led
void ev3_line_lcd(int32_t x0,
int32_t y0,
int32_t x1,
int32_t y1,
int32_t bit)
Draws a line
ev3_motor_ptr ev3_load_motors(void)
ev3_sensor_ptr ev3_load_sensors(void)
ev3_sensor_ptr ev3_mode_sensor(ev3_sensor_ptr sensor,
int32_t mode)
Sets the mode of the sensor, e.g.
ev3_sensor_ptr ev3_mode_sensor_by_name(ev3_sensor_ptr sensor,
char *mode)
Sets the mode of the sensor, e.g.
A struct for every loaded motor.
a number for supported tacho motor in ev3dev.
int32_t ev3_motor_state(ev3_motor_ptr motor)
Returns the state of the motor.
ev3_motor_ptr ev3_open_motor(ev3_motor_ptr motor)
Opens the motor to be used.
ev3_sensor_ptr ev3_open_sensor(ev3_sensor_ptr sensor)
Opens the sensor to be used.
void ev3_quit_button()
Finishes the work with the buttons.
void ev3_quit_led()
Finishes the work with the leds.
void ev3_rectangle_lcd(int32_t x,
int32_t y,
int32_t w,
int32_t h,
int32_t bit)
Draws a filled rectangle
void ev3_rectangle_lcd_out(int32_t x,
int32_t y,
int32_t w,
int32_t h,
int32_t bit)
Draws a rectangle frame
ev3_motor_ptr ev3_reset_motor(ev3_motor_ptr motor)
Reset the motor to a default state.
length of the scanline of the EV3 screen in bytes (712)
ev3_motor_ptr ev3_search_motor_by_identifier(
   ev3_motor_ptr motors,
   enum ev3_motor_identifier identifier,
   int32_t not_ready
)
Searches for a motor in the linked list identified with the identifier.
ev3_motor_ptr ev3_search_motor_by_port(ev3_motor_ptr motors,
char port)
Searches for a motor in the linked list identified with the port.
ev3_sensor_ptr ev3_search_sensor_by_name(ev3_sensor_ptr sensors,
char *name,
int32_t not_ready)
Searches for a sensor in the linked list identified with the name.
ev3_sensor_ptr ev3_search_sensor_by_port(ev3_sensor_ptr sensors,
int32_t port)
Searches for a sensor in the linked list identified with the port.
A struct for every loaded sensor.
ev3_motor_ptr ev3_set_duty_cycle_sp(ev3_motor_ptr motor,
int32_t value)
Set the duty cycle set point of a motor.
void ev3_set_led(enum ev3_led_name led,
enum ev3_led_color color,
int32_t value)
Sets the brightness of an led.
ev3_motor_ptr ev3_set_polarity(ev3_motor_ptr motor,
int32_t value)
Set the polarity of a motor.
ev3_motor_ptr ev3_set_position(ev3_motor_ptr motor,
int32_t value)
Set the position of a motor.
ev3_motor_ptr ev3_set_position_sp(ev3_motor_ptr motor,
int32_t value)
Set the position set point of a motor.
ev3_motor_ptr ev3_set_ramp_down_sp(ev3_motor_ptr motor,
int32_t value)
Set the ramp down set point of a motor.
ev3_motor_ptr ev3_set_ramp_up_sp(ev3_motor_ptr motor,
int32_t value)
Set the ramp up set point of a motor.
ev3_motor_ptr ev3_set_speed_sp(ev3_motor_ptr motor,
int32_t value)
Set the speed set point of a motor.
ev3_motor_ptr ev3_set_time_sp(ev3_motor_ptr motor,
int32_t value)
Set the time set point of a motor.
ev3_motor_ptr ev3_stop_action_motor(ev3_motor_ptr motor,
int32_t stop_action)
Sets the stop_action of the motor, e.g.
ev3_motor_ptr ev3_stop_action_motor_by_name(ev3_motor_ptr motor,
char *stop_action)
Sets the stop_action of the motor, e.g.
type used for all strings used from the driver lile mode names, commands and similar.
length (magic number) for all strings of modes, commands and similar
product of the scanline length and the screen height as whole size of the screenbuffer array.
void ev3_text_lcd_large(int32_t x,
int32_t y,
const char *text)
Draws text in a large font (each letter 16x16)
void ev3_text_lcd_normal(int32_t x,
int32_t y,
const char *text)
Draws text in a normal font (each letter 8x9)
void ev3_text_lcd_small(int32_t x,
int32_t y,
const char *text)
Draws text in a small font (each letter 8x8)
void ev3_text_lcd_tiny(int32_t x,
int32_t y,
const char *text)
Draws text in a tiny font (each letter 5x7)
void ev3_update_sensor_bin(ev3_sensor_ptr sensor)
Updates the raw values of the sensor.
void ev3_update_sensor_val(ev3_sensor_ptr sensor)
Updates the formated values of the sensor.
x size of the EV3 screen (178)
y size of the EV3 screen (128)
ev3c is a C wrapper library for interacting with the
Some functions for getting the state of the battery.
A simple method to get the state of the buttons.
Some basic defines.
uint32_t ev3c_current()
Returns the current of the battery.
Some simple functions for drawing text and basic primitives to the lcd.
Some functions for using the leds
These functions are for reading motor values of the EV3 brick.
These functions are for reading sensor values of the EV3 brick.
uint32_t ev3c_voltage()
Returns the voltage of the battery.
Close