ECE4760 - Laser Projector (ipb7, jcc384, pfc38)  1
Raster Laser Projection
color.h
Go to the documentation of this file.
1 
9 #ifndef COLOR_H
10 #define COLOR_H
11 
12 /*******************************/
13 /* Includes */
14 /*******************************/
16 
17 #include "include.h"
18 
19 #include "parameters.h"
20 
22 
23 /*******************************/
24 /* GLOBAL Macro Definitions */
25 /*******************************/
27 
29 
30 /*********************************/
31 /* GLOBAL Type(def) Declarations */
32 /*********************************/
34 
40 #pragma pack(1)
41 struct color {
42  char red : 2;
43  char blue : 2;
44  char green : 2;
45 };
46 
48 
49 /*******************************/
50 /* GLOBAL Variable Definitions */
51 /*******************************/
53 
55 
56 /********************************/
57 /* GLOBAL Variable Declarations */
58 /********************************/
60 
61 extern struct color const color_blank;
62 
66 extern struct color const color_purest_red;
67 
71 extern struct color const color_purest_green;
72 
76 extern struct color const color_purest_blue;
77 
79 
80 /********************************/
81 /* GLOBAL Function Declarations */
82 /********************************/
84 
91 bool color_equal(struct color const a,
92  struct color const b);
93 
95 
96 #endif // COLOR_H
97 
char blue
Definition: color.h:43
char red
Definition: color.h:42
bool color_equal(struct color const a, struct color const b)
Return true if a and b represent exactly the same color.
Definition: color.c:71
Definition: color.h:41
struct color const color_purest_red
Maximum intensity red, no other colors.
Definition: color.c:32
char green
Definition: color.h:44
struct color const color_purest_blue
Maximum intensity blue, no other colors.
Definition: color.c:44
struct color const color_blank
Definition: color.c:30
struct color const color_purest_green
Maximum intensity green, no other colors.
Definition: color.c:38
Compile-time parameters to control system.