Rev 8403 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8403 | Rev 8426 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | #define RAW 2 |
39 | #define RAW 2 |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | //Read/Write data as type (int char, etc.) at address "addr" with offset "offset". eg DATA(int, buff, 8); |
41 | //Read/Write data as type (int char, etc.) at address "addr" with offset "offset". eg DATA(int, buff, 8); |
Line -... | Line 42... | ||
- | 42 | #define DATA(type, addr, offset) *((type*)((uint8_t*)addr+offset)) |
|
- | 43 | ||
- | 44 | typedef struct { |
|
- | 45 | uint8_t blue; |
|
- | 46 | uint8_t green; |
|
- | 47 | uint8_t red; |
|
42 | #define DATA(type, addr, offset) *((type*)((uint8_t*)addr+offset)) |
48 | }RGB; |
Line 43... | Line 49... | ||
43 | 49 | ||
44 | typedef unsigned int color_t; |
50 | typedef unsigned int color_t; |
45 | 51 |