C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Structures | Macros | Typedefs | Functions
ev3_sensors.h File Reference

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)
 

Detailed Description

Imports all the c4ev3 supported sensors.

Macro Definition Documentation

#define NONE_MODE   -1

Typedef Documentation

typedef struct SensorHandler SensorHandler

Function Documentation

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

Parameters
port
sensor
Returns
true if the initialization was successful