Imports all the c4ev3 supported sensors. More...
#include <stdbool.h>#include "../../include/ev3_constants.h"#include "ev3_touch.h"#include "ev3_color.h"#include "ev3_ir.h"#include "ht_ir.h"#include "ev3_ultrasonic.h"#include "ev3_gyro.h"#include "nxt_temperature.h"#include "nxt_sound.h"#include "ht_compass.h"#include "ht_color.h"#include "pixy_cam.h"#include "back_compatibility.h"Go to the source code of this file.
Data Structures | |
| struct | SensorHandler |
Macros | |
| #define | NONE_MODE -1 |
Typedefs | |
| typedef struct SensorHandler | SensorHandler |
Functions | |
| bool | SetSensor (int port, SensorHandler *sensor) |
| SensorHandler * | GetSensor (int port) |
| bool | SetAllSensors (SensorHandler *port1, SensorHandler *port2, SensorHandler *port3, SensorHandler *port4) |
Imports all the c4ev3 supported sensors.
| #define NONE_MODE -1 |
| typedef struct SensorHandler SensorHandler |
| SensorHandler* GetSensor | ( | int | port | ) |
| bool SetAllSensors | ( | SensorHandler * | port1, |
| SensorHandler * | port2, | ||
| SensorHandler * | port3, | ||
| SensorHandler * | port4 | ||
| ) |
| bool SetSensor | ( | int | port, |
| SensorHandler * | sensor | ||
| ) |
Initializes the specified sensor connected to the specified port
| port | |
| sensor |
1.8.6