EV3RT CXX API Reference [English]
An RTOS-based development platform for LEGO Mindstorms EV3.
ev3cxx Namespace Reference

Data Structures

class  Bluetooth
 Class Bluetooth. API for working with bluetooth. More...
 
class  BrickButton
 Class BrickButton. API for working with brick buttons. More...
 
class  ColorSensor
 Class ColorSensor. API for working with color sensor. More...
 
class  File
 Class File. API for working with file. More...
 
class  GyroSensor
 Class GyroSensor. API for working with gyro sensor. More...
 
class  Motor
 Class Motor. API for working with motor. More...
 
class  MotorTank
 Class MotorTank. API for working with two motors together. More...
 
class  Sensor
 Class Sensor. API for working with sensor. More...
 
struct  StopWatch
 
struct  Timeout
 
class  TouchSensor
 Class TouchSensor. API for working with touch sensor. More...
 
class  UltrasonicSensor
 Class UltrasonicSensor. API for working with ultrasonic sensor. More...
 

Enumerations

enum  BrickButtons {
  LEFT = LEFT_BUTTON,
  RIGHT = RIGHT_BUTTON,
  UP = UP_BUTTON,
  DOWN = DOWN_BUTTON,
  ENTER = ENTER_BUTTON,
  BACK = BACK_BUTTON
}
 Enum with index of sensor port. More...
 
enum  StatusLightColor {
  OFF = LED_OFF,
  RED = LED_RED,
  GREEN = LED_GREEN,
  ORANGE = LED_ORANGE
}
 
enum  MotorPort {
  A = 0,
  B,
  C,
  D
}
 Enum with index of motor port (A - D) More...
 
enum  MotorType {
  MEDIUM = 1,
  LARGE,
  UNREGULATED
}
 Enum with index of motor type. More...
 
enum  SensorPort {
  S1 = 0,
  S2,
  S3,
  S4
}
 Enum with index of sensor port. More...
 

Functions

template<typename Stream >
void send (Stream &s, char const *str)
 
template<typename Stream >
void send (Stream &s, const std::string &str)
 
template<typename Stream >
void send_bool (Stream &s, bool value)
 
template<typename Stream , typename Unsigned >
void send_bin_text (Stream &s, Unsigned v, uint8_t width=0, char fill='0')
 
template<typename Stream , typename Unsigned >
void send_hex (Stream &s, Unsigned v, uint8_t width=0, char fill='0')
 
template<typename Stream , typename Signed >
void send_shex (Stream &s, Signed v, uint8_t width=0, char fill=' ')
 
template<typename Stream , typename Integer >
void send_int (Stream &s, Integer v, uint8_t width=0, char fill=' ')
 
template<typename Stream , typename T >
void send_bin (Stream &s, T const &t)
 
template<typename Stream >
uint8_t readline (Stream &s, uint8_t *buffer, uint8_t len)
 
template<typename Stream >
detail::format_impl< Stream, detail::string_literal_rangeformat (Stream &out, char const *pattern)
 
void wait (detail::us_counter_t::time_type time)
 
template<typename Process >
void wait (detail::us_counter_t::time_type time, Process process)
 
template<typename Process >
void wait (detail::us_counter_t::time_type time, Process process, int)
 
void delayMs (const unsigned int &ms)
 
void delayUs (const unsigned int &us)
 
detail::us_counter_t::time_type usec (detail::us_counter_t::time_type t)
 
detail::us_counter_t::time_type msec (detail::us_counter_t::time_type t)
 
detail::us_counter_t::time_type sec (detail::us_counter_t::time_type t)
 
template<typename T >
abs (T v)
 

Variables

extern ::ev3cxx::detail::Display display
 
extern ::ev3cxx::detail::BrickLED statusLight
 

Detailed Description

EV3 hardware independent libraries EV3 hardware dependent libraries EV3CXX global objects

TOPPERS API

Enumeration Type Documentation

◆ BrickButtons

enum BrickButtons
strong

Enum with index of sensor port.

Enumerator
LEFT 

Left brick button.

RIGHT 

Right brick button.

UP 

Up brick button.

DOWN 

Down brick button.

ENTER 

Enter brick button.

BACK 

Back brick button.

Definition at line 20 of file ev3cxx_brick_button.h.

20  {
21  LEFT = LEFT_BUTTON,
22  RIGHT = RIGHT_BUTTON,
23  UP = UP_BUTTON,
24  DOWN = DOWN_BUTTON,
25  ENTER = ENTER_BUTTON,
26  BACK = BACK_BUTTON
27 };
Enter brick button.
Up brick button.
Back brick button.
Right brick button.
Left brick button.
Down brick button.

◆ MotorPort

enum MotorPort
strong

Enum with index of motor port (A - D)

Enumerator

Motor port A.

Motor port B.

Motor port C.

Motor port D.

Definition at line 17 of file ev3cxx_motor.h.

17  {
18  A = 0,
19  B,
20  C,
21  D
22 };
Motor port B.
Motor port C.
Motor port A.
Motor port D.

◆ MotorType

enum MotorType
strong

Enum with index of motor type.

Enumerator
MEDIUM 

Medium servo motor.

LARGE 

Large servo motor.

UNREGULATED 

Unregulated motor.

Definition at line 28 of file ev3cxx_motor.h.

28  {
29  MEDIUM = 1,
30  LARGE,
31  UNREGULATED,
32 };
Large servo motor.
Medium servo motor.

◆ SensorPort

enum SensorPort
strong

Enum with index of sensor port.

Enumerator
S1 

Sensor port 1.

S2 

Sensor port 2.

S3 

Sensor port 3.

S4 

Sensor port 4.

Definition at line 19 of file ev3cxx_sensor.h.

19  {
20  S1 = 0,
21  S2,
22  S3,
23  S4
24 };
Sensor port 2.
Sensor port 4.
Sensor port 1.
Sensor port 3.