|
DGUS LCD Library
1
|
DGUS II LCD Driver. Register and cointrol definitions. More...

Go to the source code of this file.
Macros | |
| #define | member_size(type, member) sizeof(((type *)0)->member) |
| #define | SWP16(pt) (pt>>8) | (pt<<8) |
| #define | SWP32(i) ((i&0xff000000)>>24)| ((i&0xff0000)>>8) | ((i&0xff00)<<8) | ((i&0xff)<<24) |
| #define | PIC_SET_PAGE_BASE ((unsigned long)0x5A010000) |
| #define | DGUS_RESET ((unsigned long)0x55AA5AA5) |
| #define | DGUS_RESET_HARD ((unsigned long)0x55AA5A5A) |
| #define | DGUS_RETURN uint8_t |
| #define | DGUS_OK 0 |
| DGUS_RETURN Response to an async request such as dgus_request_var() More... | |
| #define | DGUS_TIMEOUT 1 |
| #define | DGUS_ERROR 2 |
| #define | DGUS_CURVE_BUFFER_FULL 10 |
| #define | DGUS_CURVE_CHANNEL_NOT_FOUND 11 |
Enumerations | |
| enum | command { DGUS_CMD_REG_W = 0x80 , DGUS_CMD_REG_R , DGUS_CMD_VAR_W , DGUS_CMD_VAR_R , DGUS_CMD_CURVE_W } |
| Addresses of the command and variables. | |
| enum | dgus_cmd_reg { DeviceId = 0x00 , SystemReset = 0x04 , OsUpdateCmd = 0x06 , NorFlashRWCmd = 0x08 , Reserved0C = 0x0C , Ver = 0x0F , Rtc = 0x10 , PicPage = 0x14 , GuiStatus = 0x15 , TpStatus = 0x16 , Reserved1A = 0x1A , Vcc = 0x30 , Led = 0x31 , Adc01 = 0x32 , Reserved34 = 0x34 , FolderName = 0x7C , SystemConfig = 0x80 , LedConfig = 0x82 , PicSetPage = 0x84 , Pwm0Set = 0x86 , Reserved88 = 0x88 , Pwm0Out = 0x92 , Reserved93 = 0x93 , RTCSet = 0x9C , MusicPlaySet = 0xA0 , BmpDownloadNotSupported = 0xA2 , JpegDownload = 0xA6 , NANDFlashRWCmd = 0xAA , TouchControl = 0xB0 , SimTouchControl = 0xD4 , PointerOverlay = 0xD8 , ReservedDC = 0xDC , CrcMemoryCheck = 0xE0 , ReservedE2 = 0xE2 , MusicStreaming = 0xF0 , PaintingInterface = 0xF4 , DcsBusData = 0x100 , Undefined200 = 0x200 , Curve = 0x300 , Reserved380 = 0x380 } |
| Layout of the VAR register. | |
Functions | |
| struct | __attribute__ ((packed)) dgus_control_position |
| The position of the control in x,y from the top left of the display. More... | |
DGUS II LCD Driver. Register and cointrol definitions.
| #define DGUS_CURVE_BUFFER_FULL 10 |
Cannot append any more data to this buffer
| #define DGUS_CURVE_CHANNEL_NOT_FOUND 11 |
The Curve channel 0-7 was not initialised or found
| #define DGUS_ERROR 2 |
Unspecified serious error
| #define DGUS_OK 0 |
DGUS_RETURN Response to an async request such as dgus_request_var()
Everything was fine
| #define DGUS_RESET ((unsigned long)0x55AA5AA5) |
Magic reset command for the T5
| #define DGUS_RESET_HARD ((unsigned long)0x55AA5A5A) |
Magic reset command for the T5 and all onboard periphs
| #define DGUS_RETURN uint8_t |
Defines the return status of a function
| #define DGUS_TIMEOUT 1 |
Timed out waiting for OK
| #define member_size | ( | type, | |
| member | |||
| ) | sizeof(((type *)0)->member) |
Get the member size of a struct
| #define PIC_SET_PAGE_BASE ((unsigned long)0x5A010000) |
Base address of the page change
| #define SWP16 | ( | pt | ) | (pt>>8) | (pt<<8) |
Swap XY bytes to be YX
| #define SWP32 | ( | i | ) | ((i&0xff000000)>>24)| ((i&0xff0000)>>8) | ((i&0xff00)<<8) | ((i&0xff)<<24) |
Swap all bytes in a u32 to be le order
| struct __attribute__ | ( | (packed) | ) |
The position of the control in x,y from the top left of the display.
position and size of the control
| animation_icon |
Animation Icon Data
| area_brightness |
Area Brightness Data
| artistic_var |
Artistic Data
| basic_graphic |
Graphic Data
| bit_var_icon |
Bit Var Icon Data
| data_var |
Data Var Data
| data_window |
Window Data
| dgus_control_position |
xy position of control
| dgus_control_size |
xy position and size of control
| hex_data |
Hex Data
| icon_rotation |
Icon Rotation Data
| image_animation |
Image Animation Data
| qr_code |
QR Data
| roll_text |
Rolling Text Data
| rtc_display_analogue |
RTC Display Data
| rtc_display_digital |
RTC Data
| slider_display |
Slider Data
| var_icon |
Icon Data
| zone_rolling |
Zone Data