123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
-
- #ifndef __LCD_H
- #define __LCD_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <stdint.h>
-
-
- typedef struct
- {
- void (*Init)(void);
- uint16_t (*ReadID)(void);
- void (*DisplayOn)(void);
- void (*DisplayOff)(void);
- void (*SetCursor)(uint16_t, uint16_t);
- void (*WritePixel)(uint16_t, uint16_t, uint16_t);
- uint16_t (*ReadPixel)(uint16_t, uint16_t);
-
-
- void (*SetDisplayWindow)(uint16_t, uint16_t, uint16_t, uint16_t);
- void (*DrawHLine)(uint16_t, uint16_t, uint16_t, uint16_t);
- void (*DrawVLine)(uint16_t, uint16_t, uint16_t, uint16_t);
-
- uint16_t (*GetLcdPixelWidth)(void);
- uint16_t (*GetLcdPixelHeight)(void);
- void (*DrawBitmap)(uint16_t, uint16_t, uint8_t*);
- void (*DrawRGBImage)(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t*);
- }LCD_DrvTypeDef;
- #ifdef __cplusplus
- }
- #endif
- #endif
|