C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ht_color.h
Go to the documentation of this file.
1 #ifndef HT_COLOR_H
2 #define HT_COLOR_H
3 
4 #include "ev3_sensors.h"
5 
6 #define HT_COLOR_SENSOR_V2_DEFAULT_MODE 0
7 #define HT_COLOR_SENSOR_V2_PASSIVE_MODE 1
8 #define HT_COLOR_SENSOR_V2_RAW_MODE 3
9 
10 extern SensorHandler * HTColorV2;
11 
16 
17 typedef enum HTColorV2ReadingMode {
22 
23 typedef struct RGBA {
24  int red;
25  int blue;
26  int green;
27  int white;
28 } RGBA;
29 
30 int ReadHTColorSensorV2(int port);
31 
38 
40 
41 
42 #endif //EV3_API_HT_COLOR_H
Definition: ht_color.h:14
Definition: ht_color.h:23
Definition: ht_color.h:13
Definition: ht_color.h:20
int white
Definition: ht_color.h:27
Definition: ht_color.h:18
int red
Definition: ht_color.h:24
HTColorV2ReadingMode
Definition: ht_color.h:17
RGBA ReadHTColorSensorV2RGBA(int port, HTColorV2ReadingMode mode)
HTColorV2PowerMainsFrequency
Definition: ht_color.h:12
SensorHandler * HTColorV2
int ReadHTColorSensorV2(int port)
int green
Definition: ht_color.h:26
Imports all the c4ev3 supported sensors.
int blue
Definition: ht_color.h:25
Definition: ev3_sensors.h:15
Definition: ht_color.h:19
void SetHTColorV2PowerMainsFrequency(int port, HTColorV2PowerMainsFrequency frequency)
struct RGBA RGBA