12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef _GDS_H_
- #define _GDS_H_
- #include <stdint.h>
- #include <stdbool.h>
-
- enum { GDS_MONO = 0, GDS_GRAYSCALE, GDS_RGB332, GDS_RGB444, GDS_RGB555, GDS_RGB565, GDS_RGB666, GDS_RGB888 };
-
- #define GDS_COLOR_BLACK (0)
- #define GDS_COLOR_WHITE (-1)
- #define GDS_COLOR_XOR (256)
- struct GDS_Device;
- struct GDS_FontDef;
- struct GDS_BacklightPWM {
- int Channel, Timer, Max;
- bool Init;
- };
- typedef struct GDS_Device* GDS_DetectFunc(char *Driver, struct GDS_Device *Device);
- struct GDS_Device* GDS_AutoDetect( char *Driver, GDS_DetectFunc* DetectFunc[], struct GDS_BacklightPWM *PWM );
- void GDS_SetContrast( struct GDS_Device* Device, uint8_t Contrast );
- void GDS_DisplayOn( struct GDS_Device* Device );
- void GDS_DisplayOff( struct GDS_Device* Device );
- void GDS_Update( struct GDS_Device* Device );
- void GDS_SetLayout( struct GDS_Device* Device, bool HFlip, bool VFlip, bool Rotate );
- void GDS_SetDirty( struct GDS_Device* Device );
- int GDS_GetWidth( struct GDS_Device* Device );
- int GDS_GetHeight( struct GDS_Device* Device );
- int GDS_GetDepth( struct GDS_Device* Device );
- int GDS_GetMode( struct GDS_Device* Device );
- int GDS_GrayMap( struct GDS_Device* Device, uint8_t Level );
- void GDS_ClearExt( struct GDS_Device* Device, bool full, ...);
- void GDS_Clear( struct GDS_Device* Device, int Color );
- void GDS_ClearWindow( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color );
- #endif
|