DGUS LCD Library  1
/github/workspace/dgus_reg.h File Reference

DGUS II LCD Driver. Register and cointrol definitions. More...

This graph shows which files directly or indirectly include this file:

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...
 

Variables

 dgus_control_position
 
 dgus_control_size
 
 var_icon
 
 animation_icon
 
 slider_display
 
 artistic_var
 
 image_animation
 
 icon_rotation
 
 bit_var_icon
 
 data_var
 
 rtc_display_digital
 
 rtc_display_analogue
 
 hex_data
 
 roll_text
 
 data_window
 
 basic_graphic
 
 zone_rolling
 
 qr_code
 
 area_brightness
 

Detailed Description

DGUS II LCD Driver. Register and cointrol definitions.

Author
Barry Carter
Date
01 Jan 2021

Macro Definition Documentation

◆ DGUS_CURVE_BUFFER_FULL

#define DGUS_CURVE_BUFFER_FULL   10

Cannot append any more data to this buffer

◆ DGUS_CURVE_CHANNEL_NOT_FOUND

#define DGUS_CURVE_CHANNEL_NOT_FOUND   11

The Curve channel 0-7 was not initialised or found

◆ DGUS_ERROR

#define DGUS_ERROR   2

Unspecified serious error

◆ DGUS_OK

#define DGUS_OK   0

DGUS_RETURN Response to an async request such as dgus_request_var()

Everything was fine

◆ DGUS_RESET

#define DGUS_RESET   ((unsigned long)0x55AA5AA5)

Magic reset command for the T5

◆ DGUS_RESET_HARD

#define DGUS_RESET_HARD   ((unsigned long)0x55AA5A5A)

Magic reset command for the T5 and all onboard periphs

◆ DGUS_RETURN

#define DGUS_RETURN   uint8_t

Defines the return status of a function

◆ DGUS_TIMEOUT

#define DGUS_TIMEOUT   1

Timed out waiting for OK

◆ member_size

#define member_size (   type,
  member 
)    sizeof(((type *)0)->member)

Get the member size of a struct

◆ PIC_SET_PAGE_BASE

#define PIC_SET_PAGE_BASE   ((unsigned long)0x5A010000)

Base address of the page change

◆ SWP16

#define SWP16 (   pt)    (pt>>8) | (pt<<8)

Swap XY bytes to be YX

◆ SWP32

#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

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed)  )

The position of the control in x,y from the top left of the display.

position and size of the control

Returns
typedef struct

Variable Documentation

◆ animation_icon

animation_icon

Animation Icon Data

◆ area_brightness

area_brightness

Area Brightness Data

◆ artistic_var

artistic_var

Artistic Data

◆ basic_graphic

basic_graphic

Graphic Data

◆ bit_var_icon

bit_var_icon

Bit Var Icon Data

◆ data_var

data_var

Data Var Data

◆ data_window

data_window

Window Data

◆ dgus_control_position

dgus_control_position

xy position of control

◆ dgus_control_size

dgus_control_size

xy position and size of control

◆ hex_data

hex_data

Hex Data

◆ icon_rotation

icon_rotation

Icon Rotation Data

◆ image_animation

image_animation

Image Animation Data

◆ qr_code

qr_code

QR Data

◆ roll_text

roll_text

Rolling Text Data

◆ rtc_display_analogue

rtc_display_analogue

RTC Display Data

◆ rtc_display_digital

rtc_display_digital

RTC Data

◆ slider_display

slider_display

Slider Data

◆ var_icon

var_icon

Icon Data

◆ zone_rolling

zone_rolling

Zone Data