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

Go to the source code of this file.

Data Structures

struct  RGBA
 

Macros

#define HT_COLOR_SENSOR_V2_DEFAULT_MODE   0
 
#define HT_COLOR_SENSOR_V2_PASSIVE_MODE   1
 
#define HT_COLOR_SENSOR_V2_RAW_MODE   3
 

Typedefs

typedef enum
HTColorV2PowerMainsFrequency 
HTColorV2PowerMainsFrequency
 
typedef enum HTColorV2ReadingMode HTColorV2ReadingMode
 
typedef struct RGBA RGBA
 

Enumerations

enum  HTColorV2PowerMainsFrequency { PowerMains50Hz, PowerMains60Hz }
 
enum  HTColorV2ReadingMode { HTColorSensorDefaultMode, HTColorSensorPassiveMode, HTColorSensorRawMode }
 

Functions

int ReadHTColorSensorV2 (int port)
 
RGBA ReadHTColorSensorV2RGBA (int port, HTColorV2ReadingMode mode)
 
void SetHTColorV2PowerMainsFrequency (int port, HTColorV2PowerMainsFrequency frequency)
 

Variables

SensorHandler * HTColorV2
 

Macro Definition Documentation

#define HT_COLOR_SENSOR_V2_DEFAULT_MODE   0
#define HT_COLOR_SENSOR_V2_PASSIVE_MODE   1
#define HT_COLOR_SENSOR_V2_RAW_MODE   3

Typedef Documentation

typedef struct RGBA RGBA

Enumeration Type Documentation

Enumerator
PowerMains50Hz 
PowerMains60Hz 
Enumerator
HTColorSensorDefaultMode 
HTColorSensorPassiveMode 
HTColorSensorRawMode 

Function Documentation

int ReadHTColorSensorV2 ( int  port)
RGBA ReadHTColorSensorV2RGBA ( int  port,
HTColorV2ReadingMode  mode 
)

Read RGBA values. Each value ranges from 0 to 1023

Parameters
port
Returns
void SetHTColorV2PowerMainsFrequency ( int  port,
HTColorV2PowerMainsFrequency  frequency 
)

Variable Documentation

SensorHandler* HTColorV2