123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- #ifndef NRF_LCD_H__
- #define NRF_LCD_H__
- #include <nrfx.h>
- typedef enum{
- NRF_LCD_ROTATE_0 = 0,
- NRF_LCD_ROTATE_90,
- NRF_LCD_ROTATE_180,
- NRF_LCD_ROTATE_270
- }nrf_lcd_rotation_t;
- typedef struct
- {
- nrfx_drv_state_t state;
- uint16_t height;
- uint16_t width;
- nrf_lcd_rotation_t rotation;
- }lcd_cb_t;
- typedef struct
- {
-
- ret_code_t (* lcd_init)(void);
-
- void (* lcd_uninit)(void);
-
- void (* lcd_pixel_draw)(uint16_t x, uint16_t y, uint32_t color);
-
- void (* lcd_rect_draw)(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint32_t color);
-
- void (* lcd_display)(void);
-
- void (* lcd_rotation_set)(nrf_lcd_rotation_t rotation);
-
- void (* lcd_display_invert)(bool invert);
-
- lcd_cb_t * p_lcd_cb;
- }nrf_lcd_t;
- #endif
|