API driver for ILI9325 TFT display component.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | ili9325_font |
Font structure. More... | |
struct | ili9325_opt_t |
Input parameters when initializing ili9325 driver. More... | |
Typedefs | |
typedef uint32_t | ili9325_color_t |
Type define for an integer type large enough to store a pixel color. More... | |
typedef int16_t | ili9325_coord_t |
Type define for an integer type large enough to store a pixel coordinate. More... | |
Driver-specific Definitions | |
typedef ili9325_color_t | gfx_color_t |
Data type for color values native to the display. More... | |
typedef int16_t | gfx_coord_t |
Data type representing a coordinate on the screen. More... | |
Enumerations | |
enum | ili9325_display_direction { LANDSCAPE = 0, PORTRAIT = 1 } |
Display direction option. More... | |
enum | ili9325_scan_direction { V_INCREASE = 0, V_DEREASE = 1 } |
Scan direction option. More... | |
enum | ili9325_shift_direction { H_INCREASE = 0, H_DECREASE = 1 } |
Shift direction option. More... | |
Functions | |
void | ili9325_copy_pixels_from_screen (ili9325_color_t *pixels, uint32_t count) |
Copy pixels from the screen to a pixel buffer. More... | |
void | ili9325_copy_pixels_to_screen (const ili9325_color_t *pixels, uint32_t count) |
Copy pixels from SRAM to the screen. More... | |
void | ili9325_copy_raw_pixel_24bits_to_screen (const uint8_t *raw_pixels, uint32_t count) |
Copy pixels from SRAM to the screen. More... | |
void | ili9325_disable_scroll (void) |
Disable the scrolling feature. More... | |
void | ili9325_display_off (void) |
Turn off the LCD. More... | |
void | ili9325_display_on (void) |
Turn on the LCD. More... | |
uint32_t | ili9325_draw_circle (uint32_t ul_x, uint32_t ul_y, uint32_t ul_r) |
Draw a circle on LCD. More... | |
uint32_t | ili9325_draw_filled_circle (uint32_t ul_x, uint32_t ul_y, uint32_t ul_r) |
Draw a filled circle on LCD. More... | |
void | ili9325_draw_filled_rectangle (uint32_t ul_x1, uint32_t ul_y1, uint32_t ul_x2, uint32_t ul_y2) |
Draw a filled rectangle on LCD. More... | |
void | ili9325_draw_line (uint32_t ul_x1, uint32_t ul_y1, uint32_t ul_x2, uint32_t ul_y2) |
Draw a line on LCD. More... | |
uint32_t | ili9325_draw_pixel (uint32_t ul_x, uint32_t ul_y) |
Draw a pixel on LCD. More... | |
void | ili9325_draw_pixmap (uint32_t ul_x, uint32_t ul_y, uint32_t ul_width, uint32_t ul_height, const ili9325_color_t *p_ul_pixmap) |
Draw a pixmap on LCD. More... | |
void | ili9325_draw_prepare (uint32_t ul_x, uint32_t ul_y, uint32_t ul_width, uint32_t ul_height) |
Prepare LCD to draw. More... | |
void | ili9325_draw_rectangle (uint32_t ul_x1, uint32_t ul_y1, uint32_t ul_x2, uint32_t ul_y2) |
Draw a rectangle on LCD. More... | |
void | ili9325_draw_string (uint32_t ul_x, uint32_t ul_y, const uint8_t *p_str) |
Draw a string on LCD. More... | |
void | ili9325_duplicate_pixel (const ili9325_color_t color, uint32_t count) |
Set a given number of pixels to the same color. More... | |
void | ili9325_enable_scroll (void) |
Enable the scrolling feature. More... | |
void | ili9325_fill (ili9325_color_t ul_color) |
Fill the LCD buffer with the specified color. More... | |
ili9325_color_t | ili9325_get_pixel (uint32_t ul_x, uint32_t ul_y) |
Get a pixel from LCD. More... | |
uint32_t | ili9325_init (struct ili9325_opt_t *p_opt) |
Initialize the ILI9325 lcd driver. More... | |
ili9325_color_t | ili9325_read_gram (void) |
Read a single color from the graphical memory. More... | |
void | ili9325_scroll (int32_t ul_lines) |
Scroll up/down for the number of specified lines. More... | |
void | ili9325_set_bottom_right_limit (ili9325_coord_t x, ili9325_coord_t y) |
Set the display bottom right drawing limit. More... | |
void | ili9325_set_cursor_position (uint16_t us_x, uint16_t us_y) |
Set cursor of LCD screen. More... | |
void | ili9325_set_display_direction (enum ili9325_display_direction e_dd, enum ili9325_shift_direction e_shd, enum ili9325_scan_direction e_scd) |
Set display direction. More... | |
void | ili9325_set_foreground_color (ili9325_color_t ul_color) |
Set foreground color. More... | |
void | ili9325_set_limits (ili9325_coord_t start_x, ili9325_coord_t start_y, ili9325_coord_t end_x, ili9325_coord_t end_y) |
Set the full display drawing limits. More... | |
void | ili9325_set_orientation (uint8_t flags) |
Sets the orientation of the display data. More... | |
void | ili9325_set_top_left_limit (ili9325_coord_t x, ili9325_coord_t y) |
Set the display top left drawing limit. More... | |
void | ili9325_set_window (uint32_t ul_x, uint32_t ul_y, uint32_t ul_width, uint32_t ul_height) |
Set display window. More... | |
void | ili9325_write_gram (ili9325_color_t color) |
Write the graphical memory with a single color pixel. More... | |
#define COLOR_AZUR (0xF0FFFFu) |
#define COLOR_BEIGE (0xF5F5DCu) |
#define COLOR_BLACK (0x000000u) |
Referenced by gfx_ili9325_init(), gfx_ili93xx_init(), gfx_ili9488_init(), main(), refresh_display(), and wifi_connect().
#define COLOR_BLUE (0x0000FFu) |
Referenced by main().
#define COLOR_BLUEVIOLET (0x8A2BE2u) |
#define COLOR_BROWN (0xA52A2Au) |
#define COLOR_CYAN (0x00FFFFu) |
#define COLOR_DARKBLUE (0x00008Bu) |
#define COLOR_DARKCYAN (0x008B8Bu) |
#define COLOR_DARKGRAY (0xA9A9A9u) |
#define COLOR_DARKGREEN (0x006400u) |
#define COLOR_DARKRED (0x800000u) |
#define COLOR_DARKVIOLET (0x9400D3u) |
#define COLOR_GOLD (0xFFD700u) |
#define COLOR_GRAY (0x808080u) |
#define COLOR_GREEN (0x00FF00u) |
Referenced by main().
#define COLOR_GREENYELLOW (0xADFF2Fu) |
#define COLOR_INDIGO (0x4B0082u) |
#define COLOR_LIGHTBLUE (0xADD8E6u) |
#define COLOR_LIGHTCYAN (0xE0FFFFu) |
#define COLOR_LIGHTGREEN (0x90EE90u) |
#define COLOR_LIGHTGREY (0xD3D3D3u) |
#define COLOR_MAGENTA (0xFF00FFu) |
#define COLOR_NAVY (0x000080u) |
#define COLOR_OLIVE (0x808000u) |
#define COLOR_ORANGE (0xFFA500u) |
#define COLOR_RED (0xFF0000u) |
Referenced by main().
#define COLOR_SIENNA (0xA0522Du) |
#define COLOR_SILVER (0xC0C0C0u) |
#define COLOR_SKYBLUE (0x87CEEBu) |
#define COLOR_SNOW (0xFFFAFAu) |
#define COLOR_TOMATO (0xFF6347u) |
#define COLOR_TURQUOISE (0x40E0D0u) |
#define COLOR_VIOLET (0xEE82EEu) |
Referenced by main().
#define COLOR_WHITE (0xFFFFFFu) |
Referenced by gfx_ili9325_init(), gfx_ili93xx_init(), gfx_ili9488_init(), main(), and refresh_display().
#define COLOR_YELLOW (0xFFFF00u) |
#define COLOR_YELLOWGREEN (0x9ACD32u) |
#define ILI9325_BASE_IMG_DISP_CTRL (0x61u) |
#define ILI9325_BASE_IMG_DISP_CTRL_NDL (0x1u << 2) |
#define ILI9325_BASE_IMG_DISP_CTRL_REV (0x1u << 0) |
#define ILI9325_BASE_IMG_DISP_CTRL_VLE (0x1u << 1) |
Referenced by ili9325_enable_scroll(), and ili93xx_enable_scroll().
#define ILI9325_COLOR | ( | r, | |
g, | |||
b | |||
) | ((r<<16) | (g << 8) | b) |
This macro generates a 16-bit native color for the display from a 24-bit RGB value.
#define ILI9325_DEVICE_CODE (0x9325u) |
Referenced by ili9325_init(), and ili93xx_device_type_identify().
#define ILI9325_DEVICE_CODE_REG (0x00u) |
Referenced by ili9325_init(), and ili93xx_device_type_identify().
#define ILI9325_DISP_CTRL1 (0x07u) |
Referenced by ili9325_display_off(), ili9325_display_on(), ili9325_init(), ili93xx_display_off(), ili93xx_display_on(), and ili93xx_init().
#define ILI9325_DISP_CTRL1_BASEE (0x1u << 8) |
Referenced by ili9325_display_on(), and ili93xx_display_on().
#define ILI9325_DISP_CTRL1_CL (0x1u << 3) |
#define ILI9325_DISP_CTRL1_D | ( | value | ) | ((ILI9325_DISP_CTRL1_D_MSK & ((value) << ILI9325_DISP_CTRL1_D_POS))) |
Referenced by ili9325_display_on(), ili9325_init(), ili93xx_display_on(), and ili93xx_init().
#define ILI9325_DISP_CTRL1_D_MSK (0x3u << ILI9325_DISP_CTRL1_D_POS) |
#define ILI9325_DISP_CTRL1_D_POS 0 |
#define ILI9325_DISP_CTRL1_DTE (0x1u << 4) |
Referenced by ili9325_display_on(), ili9325_init(), ili93xx_display_on(), and ili93xx_init().
#define ILI9325_DISP_CTRL1_GON (0x1u << 5) |
Referenced by ili9325_display_on(), ili9325_init(), ili93xx_display_on(), and ili93xx_init().
#define ILI9325_DISP_CTRL1_PTDE | ( | value | ) | ((ILI9325_DISP_CTRL1_PTDE_MSK & ((value) << ILI9325_DISP_CTRL1_PTDE_POS))) |
#define ILI9325_DISP_CTRL1_PTDE_MSK (0x3u << ILI9325_DISP_CTRL1_PTDE_POS) |
#define ILI9325_DISP_CTRL1_PTDE_POS 12 |
#define ILI9325_DISP_CTRL2 (0x08u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_DISP_CTRL2_BP | ( | value | ) | ((ILI9325_DISP_CTRL2_BP_MSK & ((value) << ILI9325_DISP_CTRL2_BP_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_DISP_CTRL2_BP_MSK (0xfu << ILI9325_DISP_CTRL2_BP_POS) |
#define ILI9325_DISP_CTRL2_BP_POS 0 |
#define ILI9325_DISP_CTRL2_FP | ( | value | ) | ((ILI9325_DISP_CTRL2_FP_MSK & ((value) << ILI9325_DISP_CTRL2_FP_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_DISP_CTRL2_FP_MSK (0xfu << ILI9325_DISP_CTRL2_FP_POS) |
#define ILI9325_DISP_CTRL2_FP_POS 8 |
#define ILI9325_DISP_CTRL3 (0x09u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_DISP_CTRL3_ISC | ( | value | ) | ((ILI9325_DISP_CTRL3_ISC_MSK & ((value) << ILI9325_DISP_CTRL3_ISC_POS))) |
#define ILI9325_DISP_CTRL3_ISC_MSK (0xfu << ILI9325_DISP_CTRL3_ISC_POS) |
#define ILI9325_DISP_CTRL3_ISC_POS 0 |
#define ILI9325_DISP_CTRL3_PTG | ( | value | ) | ((ILI9325_DISP_CTRL3_PTG_MSK & ((value) << ILI9325_DISP_CTRL3_PTG_POS))) |
#define ILI9325_DISP_CTRL3_PTG_MSK (0x3u << ILI9325_DISP_CTRL3_PTG_POS) |
#define ILI9325_DISP_CTRL3_PTG_POS 4 |
#define ILI9325_DISP_CTRL3_PTS | ( | value | ) | ((ILI9325_DISP_CTRL3_PTS_MSK & ((value) << ILI9325_DISP_CTRL3_PTS_POS))) |
#define ILI9325_DISP_CTRL3_PTS_MSK (0x7u << ILI9325_DISP_CTRL3_PTS_POS) |
#define ILI9325_DISP_CTRL3_PTS_POS 8 |
#define ILI9325_DISP_CTRL4 (0x0Au) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_DISP_CTRL4_FMARKOE (0x1u << 3) |
#define ILI9325_DISP_CTRL4_FMI | ( | value | ) | ((ILI9325_DISP_CTRL4_FMI_MSK & ((value) << ILI9325_DISP_CTRL4_FMI_POS))) |
#define ILI9325_DISP_CTRL4_FMI_MSK (0x7u << ILI9325_DISP_CTRL4_FMI_POS) |
#define ILI9325_DISP_CTRL4_FMI_POS 0 |
#define ILI9325_DRIVER_OUTPUT_CTRL1 (0x01u) |
Referenced by ili9325_init(), ili9325_set_display_direction(), ili93xx_init(), and ili93xx_set_display_direction().
#define ILI9325_DRIVER_OUTPUT_CTRL1_SM (0x1u << 10) |
#define ILI9325_DRIVER_OUTPUT_CTRL1_SS (0x1u << 8) |
Referenced by ili9325_init(), ili9325_set_display_direction(), ili93xx_init(), and ili93xx_set_display_direction().
#define ILI9325_DRIVER_OUTPUT_CTRL2 (0x60u) |
Referenced by ili9325_init(), ili9325_set_display_direction(), ili93xx_init(), and ili93xx_set_display_direction().
#define ILI9325_DRIVER_OUTPUT_CTRL2_GS (0x1u << 15) |
Referenced by ili9325_init(), ili9325_set_display_direction(), ili93xx_init(), and ili93xx_set_display_direction().
#define ILI9325_DRIVER_OUTPUT_CTRL2_NL | ( | value | ) | ((ILI9325_DRIVER_OUTPUT_CTRL2_NL_MSK & ((value) << ILI9325_DRIVER_OUTPUT_CTRL2_NL_POS))) |
Referenced by ili9325_init(), ili93xx_init(), and ili93xx_set_display_direction().
#define ILI9325_DRIVER_OUTPUT_CTRL2_NL_MSK (0x3fu << ILI9325_DRIVER_OUTPUT_CTRL2_NL_POS) |
#define ILI9325_DRIVER_OUTPUT_CTRL2_NL_POS 8 |
#define ILI9325_DRIVER_OUTPUT_CTRL2_SCN | ( | value | ) | ((ILI9325_DRIVER_OUTPUT_CTRL2_SCN_MSK & ((value) << ILI9325_DRIVER_OUTPUT_CTRL2_SCN_POS))) |
#define ILI9325_DRIVER_OUTPUT_CTRL2_SCN_MSK (0x3fu << ILI9325_DRIVER_OUTPUT_CTRL2_SCN_POS) |
#define ILI9325_DRIVER_OUTPUT_CTRL2_SCN_POS 0 |
#define ILI9325_ENTRY_MODE (0x03u) |
#define ILI9325_ENTRY_MODE_AM (0x1u << 3) |
#define ILI9325_ENTRY_MODE_BGR (0x1u << 12) |
#define ILI9325_ENTRY_MODE_DFM (0x1u << 14) |
#define ILI9325_ENTRY_MODE_HWM (0x1u << 9) |
Referenced by ili9325_set_display_direction().
#define ILI9325_ENTRY_MODE_ID | ( | value | ) | ((ILI9325_ENTRY_MODE_ID_MSK & ((value) << ILI9325_ENTRY_MODE_ID_POS))) |
#define ILI9325_ENTRY_MODE_ID_MSK (0x3u << ILI9325_ENTRY_MODE_ID_POS) |
#define ILI9325_ENTRY_MODE_ID_POS 4 |
#define ILI9325_ENTRY_MODE_ORG (0x1u << 7) |
Referenced by ili9325_set_display_direction().
#define ILI9325_ENTRY_MODE_TRI (0x1u << 15) |
#define ILI9325_FLIP_X 1 |
Bit mask for flipping X for ili9325_set_orientation()
Referenced by ili9325_set_orientation().
#define ILI9325_FLIP_Y 2 |
Bit mask for flipping Y for ili9325_set_orientation()
Referenced by ili9325_set_orientation().
#define ILI9325_FRAME_MAKER_POS (0x0Du) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_FRAME_MAKER_POS_FMP | ( | value | ) | ((ILI9325_FRAME_MAKER_POS_FMP_MSK & ((value) << ILI9325_FRAME_MAKER_POS_FMP_POS))) |
#define ILI9325_FRAME_MAKER_POS_FMP_MSK (0x1ffu << ILI9325_FRAME_MAKER_POS_FMP_POS) |
#define ILI9325_FRAME_MAKER_POS_FMP_POS 0 |
#define ILI9325_FRAME_RATE_AND_COLOR_CTRL (0x2Bu) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_FRAME_RATE_AND_COLOR_CTRL_FRS | ( | value | ) | ((ILI9325_FRAME_RATE_AND_COLOR_CTRL_FRS_MSK & ((value) << ILI9325_FRAME_RATE_AND_COLOR_CTRL_FRS_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_FRAME_RATE_AND_COLOR_CTRL_FRS_MSK (0xfu << ILI9325_FRAME_RATE_AND_COLOR_CTRL_FRS_POS) |
#define ILI9325_FRAME_RATE_AND_COLOR_CTRL_FRS_POS 0 |
#define ILI9325_GAMMA_CTRL1 (0x30u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL10 (0x3Du) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL10_VRN0 | ( | value | ) | ((ILI9325_GAMMA_CTRL10_VRN0_MSK & ((value) << ILI9325_GAMMA_CTRL10_VRN0_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL10_VRN0_MSK (0xfu << ILI9325_GAMMA_CTRL10_VRN0_POS) |
#define ILI9325_GAMMA_CTRL10_VRN0_POS 0 |
#define ILI9325_GAMMA_CTRL10_VRN1 | ( | value | ) | ((ILI9325_GAMMA_CTRL10_VRN1_MSK & ((value) << ILI9325_GAMMA_CTRL10_VRN1_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL10_VRN1_MSK (0x1fu << ILI9325_GAMMA_CTRL10_VRN1_POS) |
#define ILI9325_GAMMA_CTRL10_VRN1_POS 8 |
#define ILI9325_GAMMA_CTRL1_KP0 | ( | value | ) | ((ILI9325_GAMMA_CTRL1_KP0_MSK & ((value) << ILI9325_GAMMA_CTRL1_KP0_POS))) |
#define ILI9325_GAMMA_CTRL1_KP0_MSK (0x7u << ILI9325_GAMMA_CTRL1_KP0_POS) |
#define ILI9325_GAMMA_CTRL1_KP0_POS 0 |
#define ILI9325_GAMMA_CTRL1_KP1 | ( | value | ) | ((ILI9325_GAMMA_CTRL1_KP1_MSK & ((value) << ILI9325_GAMMA_CTRL1_KP1_POS))) |
#define ILI9325_GAMMA_CTRL1_KP1_MSK (0x7u << ILI9325_GAMMA_CTRL1_KP1_POS) |
#define ILI9325_GAMMA_CTRL1_KP1_POS 8 |
#define ILI9325_GAMMA_CTRL2 (0x31u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL2_KP2 | ( | value | ) | ((ILI9325_GAMMA_CTRL2_KP2_MSK & ((value) << ILI9325_GAMMA_CTRL2_KP2_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL2_KP2_MSK (0x7u << ILI9325_GAMMA_CTRL2_KP2_POS) |
#define ILI9325_GAMMA_CTRL2_KP2_POS 0 |
#define ILI9325_GAMMA_CTRL2_KP3 | ( | value | ) | ((ILI9325_GAMMA_CTRL2_KP3_MSK & ((value) << ILI9325_GAMMA_CTRL2_KP3_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL2_KP3_MSK (0x7u << ILI9325_GAMMA_CTRL2_KP3_POS) |
#define ILI9325_GAMMA_CTRL2_KP3_POS 8 |
#define ILI9325_GAMMA_CTRL3 (0x32u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL3_KP4 | ( | value | ) | ((ILI9325_GAMMA_CTRL3_KP4_MSK & ((value) << ILI9325_GAMMA_CTRL3_KP4_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL3_KP4_MSK (0x7u << ILI9325_GAMMA_CTRL3_KP4_POS) |
#define ILI9325_GAMMA_CTRL3_KP4_POS 0 |
#define ILI9325_GAMMA_CTRL3_KP5 | ( | value | ) | ((ILI9325_GAMMA_CTRL3_KP5_MSK & ((value) << ILI9325_GAMMA_CTRL3_KP5_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL3_KP5_MSK (0x7u << ILI9325_GAMMA_CTRL3_KP5_POS) |
#define ILI9325_GAMMA_CTRL3_KP5_POS 8 |
#define ILI9325_GAMMA_CTRL4 (0x35u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL4_RP0 | ( | value | ) | ((ILI9325_GAMMA_CTRL4_RP0_MSK & ((value) << ILI9325_GAMMA_CTRL4_RP0_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL4_RP0_MSK (0x7u << ILI9325_GAMMA_CTRL4_RP0_POS) |
#define ILI9325_GAMMA_CTRL4_RP0_POS 0 |
#define ILI9325_GAMMA_CTRL4_RP1 | ( | value | ) | ((ILI9325_GAMMA_CTRL4_RP1_MSK & ((value) << ILI9325_GAMMA_CTRL4_RP1_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL4_RP1_MSK (0x7u << ILI9325_GAMMA_CTRL4_RP1_POS) |
#define ILI9325_GAMMA_CTRL4_RP1_POS 8 |
#define ILI9325_GAMMA_CTRL5 (0x36u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL5_VRP0 | ( | value | ) | ((ILI9325_GAMMA_CTRL5_VRP0_MSK & ((value) << ILI9325_GAMMA_CTRL5_VRP0_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL5_VRP0_MSK (0xfu << ILI9325_GAMMA_CTRL5_VRP0_POS) |
#define ILI9325_GAMMA_CTRL5_VRP0_POS 0 |
#define ILI9325_GAMMA_CTRL5_VRP1 | ( | value | ) | ((ILI9325_GAMMA_CTRL5_VRP1_MSK & ((value) << ILI9325_GAMMA_CTRL5_VRP1_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL5_VRP1_MSK (0x1fu << ILI9325_GAMMA_CTRL5_VRP1_POS) |
#define ILI9325_GAMMA_CTRL5_VRP1_POS 8 |
#define ILI9325_GAMMA_CTRL6 (0x37u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL6_KN0 | ( | value | ) | ((ILI9325_GAMMA_CTRL6_KN0_MSK & ((value) << ILI9325_GAMMA_CTRL6_KN0_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL6_KN0_MSK (0x7u << ILI9325_GAMMA_CTRL6_KN0_POS) |
#define ILI9325_GAMMA_CTRL6_KN0_POS 0 |
#define ILI9325_GAMMA_CTRL6_KN1 | ( | value | ) | ((ILI9325_GAMMA_CTRL6_KN1_MSK & ((value) << ILI9325_GAMMA_CTRL6_KN1_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL6_KN1_MSK (0x7u << ILI9325_GAMMA_CTRL6_KN1_POS) |
#define ILI9325_GAMMA_CTRL6_KN1_POS 8 |
#define ILI9325_GAMMA_CTRL7 (0x38u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL7_KN2 | ( | value | ) | ((ILI9325_GAMMA_CTRL7_KN2_MSK & ((value) << ILI9325_GAMMA_CTRL7_KN2_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL7_KN2_MSK (0x7u << ILI9325_GAMMA_CTRL7_KN2_POS) |
#define ILI9325_GAMMA_CTRL7_KN2_POS 0 |
#define ILI9325_GAMMA_CTRL7_KN3 | ( | value | ) | ((ILI9325_GAMMA_CTRL7_KN3_MSK & ((value) << ILI9325_GAMMA_CTRL7_KN3_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL7_KN3_MSK (0x7u << ILI9325_GAMMA_CTRL7_KN3_POS) |
#define ILI9325_GAMMA_CTRL7_KN3_POS 8 |
#define ILI9325_GAMMA_CTRL8 (0x39u) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL8_KN4 | ( | value | ) | ((ILI9325_GAMMA_CTRL8_KN4_MSK & ((value) << ILI9325_GAMMA_CTRL8_KN4_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL8_KN4_MSK (0x7u << ILI9325_GAMMA_CTRL8_KN4_POS) |
#define ILI9325_GAMMA_CTRL8_KN4_POS 0 |
#define ILI9325_GAMMA_CTRL8_KN5 | ( | value | ) | ((ILI9325_GAMMA_CTRL8_KN5_MSK & ((value) << ILI9325_GAMMA_CTRL8_KN5_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL8_KN5_MSK (0x7u << ILI9325_GAMMA_CTRL8_KN5_POS) |
#define ILI9325_GAMMA_CTRL8_KN5_POS 8 |
#define ILI9325_GAMMA_CTRL9 (0x3Cu) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL9_RN0 | ( | value | ) | ((ILI9325_GAMMA_CTRL9_RN0_MSK & ((value) << ILI9325_GAMMA_CTRL9_RN0_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL9_RN0_MSK (0x7u << ILI9325_GAMMA_CTRL9_RN0_POS) |
#define ILI9325_GAMMA_CTRL9_RN0_POS 0 |
#define ILI9325_GAMMA_CTRL9_RN1 | ( | value | ) | ((ILI9325_GAMMA_CTRL9_RN1_MSK & ((value) << ILI9325_GAMMA_CTRL9_RN1_POS))) |
Referenced by ili9325_init().
#define ILI9325_GAMMA_CTRL9_RN1_MSK (0x7u << ILI9325_GAMMA_CTRL9_RN1_POS) |
#define ILI9325_GAMMA_CTRL9_RN1_POS 8 |
#define ILI9325_GRAM_DATA_REG (0x22u) |
Referenced by ili9325_copy_pixels_to_screen(), ili9325_copy_raw_pixel_24bits_to_screen(), ili9325_duplicate_pixel(), ili9325_read_gram(), ili9325_read_ram_prepare(), ili9325_write_gram(), ili9325_write_ram_prepare(), ili93xx_copy_pixels_to_screen(), ili93xx_copy_raw_pixel_24bits_to_screen(), ili93xx_duplicate_pixel(), ili93xx_read_gram(), ili93xx_read_ram_prepare(), ili93xx_write_gram(), and ili93xx_write_ram_prepare().
#define ILI9325_HORIZONTAL_ADDR_END (0x51u) |
Referenced by ili9325_send_draw_limits(), ili9325_set_window(), ili93xx_send_draw_limits(), and ili93xx_set_window().
#define ILI9325_HORIZONTAL_ADDR_END_HEA | ( | value | ) | ((ILI9325_HORIZONTAL_ADDR_END_HEA_MSK & ((value) << ILI9325_HORIZONTAL_ADDR_END_HEA_POS))) |
#define ILI9325_HORIZONTAL_ADDR_END_HEA_MSK (0xffu << ILI9325_HORIZONTAL_ADDR_END_HEA_POS) |
#define ILI9325_HORIZONTAL_ADDR_END_HEA_POS 0 |
#define ILI9325_HORIZONTAL_ADDR_START (0x50u) |
Referenced by ili9325_send_draw_limits(), ili9325_set_window(), ili93xx_send_draw_limits(), and ili93xx_set_window().
#define ILI9325_HORIZONTAL_ADDR_START_HSA | ( | value | ) | ((ILI9325_HORIZONTAL_ADDR_START_HSA_MSK & ((value) << ILI9325_HORIZONTAL_ADDR_START_HSA_POS))) |
#define ILI9325_HORIZONTAL_ADDR_START_HSA_MSK (0xffu << ILI9325_HORIZONTAL_ADDR_START_HSA_POS) |
#define ILI9325_HORIZONTAL_ADDR_START_HSA_POS 0 |
#define ILI9325_HORIZONTAL_GRAM_ADDR_SET (0x20u) |
#define ILI9325_HORIZONTAL_GRAM_ADDR_SET_AD | ( | value | ) | ((ILI9325_HORIZONTAL_GRAM_ADDR_SET_AD_MSK & ((value) << ILI9325_HORIZONTAL_GRAM_ADDR_SET_AD_POS))) |
#define ILI9325_HORIZONTAL_GRAM_ADDR_SET_AD_MSK (0xffu << ILI9325_HORIZONTAL_GRAM_ADDR_SET_AD_POS) |
#define ILI9325_HORIZONTAL_GRAM_ADDR_SET_AD_POS 0 |
#define ILI9325_LCD_DRIVING_CTRL (0x02u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_LCD_DRIVING_CTRL_BC0 (0x1u << 9) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_LCD_DRIVING_CTRL_BIT10 (0x1u << 10) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_LCD_DRIVING_CTRL_EOR (0x1u << 8) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_LCD_HEIGHT 320 |
#define ILI9325_LCD_WIDTH 240 |
#define ILI9325_OTP_PROG_ID_KEY (0xA5u) |
#define ILI9325_OTP_PROG_ID_KEY_KEY | ( | value | ) | ((ILI9325_OTP_PROG_ID_KEY_KEY_MSK & ((value) << ILI9325_OTP_PROG_ID_KEY_KEY_POS))) |
#define ILI9325_OTP_PROG_ID_KEY_KEY_MSK (0xffffu << ILI9325_OTP_PROG_ID_KEY_KEY_POS) |
#define ILI9325_OTP_PROG_ID_KEY_KEY_POS 0 |
#define ILI9325_OTP_VCM_PROG_CTRL (0xA1u) |
#define ILI9325_OTP_VCM_PROG_CTRL_OTP_PGM_EN (0x1u << 11) |
#define ILI9325_OTP_VCM_PROG_CTRL_VCM_OTP | ( | value | ) | ((ILI9325_OTP_VCM_PROG_CTRL_VCM_OTP_MSK & ((value) << ILI9325_OTP_VCM_PROG_CTRL_VCM_OTP_POS))) |
#define ILI9325_OTP_VCM_PROG_CTRL_VCM_OTP_MSK (0x3fu << ILI9325_OTP_VCM_PROG_CTRL_VCM_OTP_POS) |
#define ILI9325_OTP_VCM_PROG_CTRL_VCM_OTP_POS 0 |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE (0xA2u) |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_PGM_CNT | ( | value | ) | ((ILI9325_OTP_VCM_STATUS_AND_ENABLE_PGM_CNT_MSK & ((value) << IILI9325_OTP_VCM_STATUS_AND_ENABLE_PGM_CNT_POS))) |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_PGM_CNT_MSK (0x3u << ILI9325_OTP_VCM_STATUS_AND_ENABLE_PGM_CNT_POS) |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_PGM_CNT_POS 14 |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_D | ( | value | ) | ((ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_D_MSK & ((value) << ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_D_POS))) |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_D_MSK (0x3fu << ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_D_POS) |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_D_POS 8 |
#define ILI9325_OTP_VCM_STATUS_AND_ENABLE_VCM_EN (0x1u << 0) |
#define ILI9325_PANEL_INTERFACE_CTRL1 (0x90u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL1_DIVI | ( | value | ) | ((ILI9325_PANEL_INTERFACE_CTRL1_DIVI_MSK & ((value) << ILI9325_PANEL_INTERFACE_CTRL1_DIVI_POS))) |
#define ILI9325_PANEL_INTERFACE_CTRL1_DIVI_MSK (0x3u << ILI9325_PANEL_INTERFACE_CTRL1_DIVI_POS) |
#define ILI9325_PANEL_INTERFACE_CTRL1_DIVI_POS 8 |
#define ILI9325_PANEL_INTERFACE_CTRL1_RTNI | ( | value | ) | ((ILI9325_PANEL_INTERFACE_CTRL1_RTNI_MSK & ((value) << ILI9325_PANEL_INTERFACE_CTRL1_RTNI_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL1_RTNI_MSK (0x1fu << ILI9325_PANEL_INTERFACE_CTRL1_RTNI_POS) |
#define ILI9325_PANEL_INTERFACE_CTRL1_RTNI_POS 0 |
#define ILI9325_PANEL_INTERFACE_CTRL2 (0x92u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL2_NOWI | ( | value | ) | ((ILI9325_PANEL_INTERFACE_CTRL2_NOWI_MSK & ((value) << ILI9325_PANEL_INTERFACE_CTRL2_NOWI_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL2_NOWI_MSK (0x7u << ILI9325_PANEL_INTERFACE_CTRL2_NOWI_POS) |
#define ILI9325_PANEL_INTERFACE_CTRL2_NOWI_POS 8 |
#define ILI9325_PANEL_INTERFACE_CTRL4 (0x95u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL4_DIVE | ( | value | ) | ((ILI9325_PANEL_INTERFACE_CTRL4_DIVE_MSK & ((value) << ILI9325_PANEL_INTERFACE_CTRL4_DIVE_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL4_DIVE_MSK (0x3u << ILI9325_PANEL_INTERFACE_CTRL4_DIVE_POS) |
#define ILI9325_PANEL_INTERFACE_CTRL4_DIVE_POS 8 |
#define ILI9325_PANEL_INTERFACE_CTRL4_RTNE | ( | value | ) | ((ILI9325_PANEL_INTERFACE_CTRL4_RTNE_MSK & ((value) << ILI9325_PANEL_INTERFACE_CTRL4_RTNE_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PANEL_INTERFACE_CTRL4_RTNE_MSK (0x3fu << ILI9325_PANEL_INTERFACE_CTRL4_RTNE_POS) |
#define ILI9325_PANEL_INTERFACE_CTRL4_RTNE_POS 0 |
#define ILI9325_PARTIAL_IMG1_AREA_END_LINE (0x82u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PARTIAL_IMG1_AREA_END_LINE_PTEA0 | ( | value | ) | ((ILI9325_PARTIAL_IMG1_AREA_END_LINE_PTEA0_MSK & ((value) << ILI9325_PARTIAL_IMG1_AREA_END_LINE_PTEA0_POS))) |
#define ILI9325_PARTIAL_IMG1_AREA_END_LINE_PTEA0_MSK (0x1ffu << ILI9325_PARTIAL_IMG1_AREA_END_LINE_PTEA0_POS) |
#define ILI9325_PARTIAL_IMG1_AREA_END_LINE_PTEA0_POS 0 |
#define ILI9325_PARTIAL_IMG1_AREA_START_LINE (0x81u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PARTIAL_IMG1_AREA_START_LINE_PTSA0 | ( | value | ) | ((ILI9325_PARTIAL_IMG1_AREA_START_LINE_PTSA0_MSK & ((value) << ILI9325_PARTIAL_IMG1_AREA_START_LINE_PTSA0_POS))) |
#define ILI9325_PARTIAL_IMG1_AREA_START_LINE_PTSA0_MSK (0x1ffu << ILI9325_PARTIAL_IMG1_AREA_START_LINE_PTSA0_POS) |
#define ILI9325_PARTIAL_IMG1_AREA_START_LINE_PTSA0_POS 0 |
#define ILI9325_PARTIAL_IMG1_DISP_POS (0x80u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PARTIAL_IMG1_DISP_POS_PTDP0 | ( | value | ) | ((ILI9325_PARTIAL_IMG1_DISP_POS_PTDP0_MSK & ((value) << ILI9325_PARTIAL_IMG1_DISP_POS_PTDP0_POS))) |
#define ILI9325_PARTIAL_IMG1_DISP_POS_PTDP0_MSK (0x1ffu << ILI9325_PARTIAL_IMG1_DISP_POS_PTDP0_POS) |
#define ILI9325_PARTIAL_IMG1_DISP_POS_PTDP0_POS 0 |
#define ILI9325_PARTIAL_IMG2_AREA_END_LINE (0x85u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PARTIAL_IMG2_AREA_END_LINE_PTEA1 | ( | value | ) | ((ILI9325_PARTIAL_IMG2_AREA_END_LINE_PTEA1_MSK & ((value) << ILI9325_PARTIAL_IMG2_AREA_END_LINE_PTEA1_POS))) |
#define ILI9325_PARTIAL_IMG2_AREA_END_LINE_PTEA1_MSK (0x1ffu << ILI9325_PARTIAL_IMG2_AREA_END_LINE_PTEA1_POS) |
#define ILI9325_PARTIAL_IMG2_AREA_END_LINE_PTEA1_POS 0 |
#define ILI9325_PARTIAL_IMG2_AREA_START_LINE (0x84u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PARTIAL_IMG2_AREA_START_LINE_PTSA1 | ( | value | ) | ((ILI9325_PARTIAL_IMG2_AREA_START_LINE_PTSA1_MSK & ((value) << ILI9325_PARTIAL_IMG2_AREA_START_LINE_PTSA1_POS))) |
#define ILI9325_PARTIAL_IMG2_AREA_START_LINE_PTSA1_MSK (0x1ffu << ILI9325_PARTIAL_IMG2_AREA_START_LINE_PTSA1_POS) |
#define ILI9325_PARTIAL_IMG2_AREA_START_LINE_PTSA1_POS 0 |
#define ILI9325_PARTIAL_IMG2_DISP_POS (0x83u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_PARTIAL_IMG2_DISP_POS_PTDP1 | ( | value | ) | ((ILI9325_PARTIAL_IMG2_DISP_POS_PTDP1_MSK & ((value) << ILI9325_PARTIAL_IMG2_DISP_POS_PTDP1_POS))) |
#define ILI9325_PARTIAL_IMG2_DISP_POS_PTDP1_MSK (0x1ffu << ILI9325_PARTIAL_IMG2_DISP_POS_PTDP1_POS) |
#define ILI9325_PARTIAL_IMG2_DISP_POS_PTDP1_POS 0 |
#define ILI9325_POWER_CTRL1 (0x10u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL1_AP | ( | value | ) | ((ILI9325_POWER_CTRL1_AP_MSK & ((value) << ILI9325_POWER_CTRL1_AP_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL1_AP_MSK (0x7u << ILI9325_POWER_CTRL1_AP_POS) |
#define ILI9325_POWER_CTRL1_AP_POS 4 |
#define ILI9325_POWER_CTRL1_APE (0x1u << 7) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL1_BT | ( | value | ) | ((ILI9325_POWER_CTRL1_BT_MSK & ((value) << ILI9325_POWER_CTRL1_BT_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL1_BT_MSK (0x7u << ILI9325_POWER_CTRL1_BT_POS) |
#define ILI9325_POWER_CTRL1_BT_POS 8 |
#define ILI9325_POWER_CTRL1_DSTB (0x1u << 2) |
#define ILI9325_POWER_CTRL1_SAP (0x1u << 12) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL1_SLP (0x1u << 1) |
#define ILI9325_POWER_CTRL1_STB (0x1u << 0) |
#define ILI9325_POWER_CTRL2 (0x11u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL2_DC0 | ( | value | ) | ((ILI9325_POWER_CTRL2_DC0_MSK & ((value) << ILI9325_POWER_CTRL2_DC0_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL2_DC0_MSK (0x7u << ILI9325_POWER_CTRL2_DC0_POS) |
#define ILI9325_POWER_CTRL2_DC0_POS 4 |
#define ILI9325_POWER_CTRL2_DC1 | ( | value | ) | ((ILI9325_POWER_CTRL2_DC1_MSK & ((value) << ILI9325_POWER_CTRL2_DC1_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL2_DC1_MSK (0x7u << ILI9325_POWER_CTRL2_DC1_POS) |
#define ILI9325_POWER_CTRL2_DC1_POS 8 |
#define ILI9325_POWER_CTRL2_VC | ( | value | ) | ((ILI9325_POWER_CTRL2_VC_MSK & ((value) << ILI9325_POWER_CTRL2_VC_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL2_VC_MSK (0x7u << ILI9325_POWER_CTRL2_VC_POS) |
#define ILI9325_POWER_CTRL2_VC_POS 0 |
#define ILI9325_POWER_CTRL3 (0x12u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL3_PON (0x1u << 4) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL3_VCIRE (0x1u << 7) |
#define ILI9325_POWER_CTRL3_VRH | ( | value | ) | ((ILI9325_POWER_CTRL3_VRH_MSK & ((value) << ILI9325_POWER_CTRL3_VRH_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL3_VRH_MSK (0xfu << ILI9325_POWER_CTRL3_VRH_POS) |
#define ILI9325_POWER_CTRL3_VRH_POS 0 |
#define ILI9325_POWER_CTRL4 (0x13u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL4_VDV | ( | value | ) | ((ILI9325_POWER_CTRL4_VDV_MSK & ((value) << ILI9325_POWER_CTRL4_VDV_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL4_VDV_MSK (0x1fu << ILI9325_POWER_CTRL4_VDV_POS) |
#define ILI9325_POWER_CTRL4_VDV_POS 8 |
#define ILI9325_POWER_CTRL7 (0x29u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL7_VCM | ( | value | ) | ((ILI9325_POWER_CTRL7_VCM_MSK & ((value) << ILI9325_POWER_CTRL7_VCM_POS))) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_POWER_CTRL7_VCM_MSK (0x3fu << ILI9325_POWER_CTRL7_VCM_POS) |
#define ILI9325_POWER_CTRL7_VCM_POS 0 |
#define ILI9325_RESIZE_CTRL (0x04u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_RESIZE_CTRL_RCH | ( | value | ) | ((ILI9325_RESIZE_CTRL_RCH_MSK & ((value) << ILI9325_RESIZE_CTRL_RCH_POS))) |
#define ILI9325_RESIZE_CTRL_RCH_MSK (0x3u << ILI9325_RESIZE_CTRL_RCH_POS) |
#define ILI9325_RESIZE_CTRL_RCH_POS 4 |
#define ILI9325_RESIZE_CTRL_RCV | ( | value | ) | ((ILI9325_RESIZE_CTRL_RCV_MSK & ((value) << ILI9325_RESIZE_CTRL_RCV_POS))) |
#define ILI9325_RESIZE_CTRL_RCV_MSK (0x3u << ILI9325_RESIZE_CTRL_RCV_POS) |
#define ILI9325_RESIZE_CTRL_RCV_POS 8 |
#define ILI9325_RESIZE_CTRL_RSZ | ( | value | ) | ((ILI9325_RESIZE_CTRL_RSZ_MSK & ((value) << ILI9325_RESIZE_CTRL_RSZ_POS))) |
#define ILI9325_RESIZE_CTRL_RSZ_MSK (0x3u << ILI9325_RESIZE_CTRL_RSZ_POS) |
#define ILI9325_RESIZE_CTRL_RSZ_POS 0 |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1 (0x0Cu) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_DM | ( | value | ) | ((ILI9325_RGB_DISP_INTERFACE_CTRL1_DM_MSK & ((value) << ILI9325_RGB_DISP_INTERFACE_CTRL1_DM_POS))) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_DM0 (0x1u << 4) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_DM1 (0x1u << 5) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_DM_MSK (0x3u << ILI9325_RGB_DISP_INTERFACE_CTRL1_DM_POS) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_DM_POS 4 |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_ENC | ( | value | ) | ((ILI9325_RGB_DISP_INTERFACE_CTRL1_ENC_MSK & ((value) <ILI9325_RGB_DISP_INTERFACE_CTRL1_ENC_POS))) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_ENC_MSK (0x7u << ILI9325_RGB_DISP_INTERFACE_CTRL1_ENC_POS) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_ENC_POS 12 |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_RIM | ( | value | ) | ((ILI9325_RGB_DISP_INTERFACE_CTRL1_RIM_MSK & ((value) << ILI9325_RGB_DISP_INTERFACE_CTRL1_RIM_POS))) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_RIM_MSK (0x3u << ILI9325_RGB_DISP_INTERFACE_CTRL1_RIM_POS) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_RIM_POS 0 |
#define ILI9325_RGB_DISP_INTERFACE_CTRL1_RM (0x1u << 8) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL2 (0x0Fu) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_RGB_DISP_INTERFACE_CTRL2_DPL (0x1u << 1) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL2_EPL (0x1u << 0) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL2_HSPL (0x1u << 3) |
#define ILI9325_RGB_DISP_INTERFACE_CTRL2_VSPL (0x1u << 4) |
#define ILI9325_START_OSC_CTRL (0x00u) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_START_OSC_CTRL_EN (0x1u << 0) |
Referenced by ili9325_init(), and ili93xx_init().
#define ILI9325_SWITCH_XY 4 |
Bit mask for swapping X and Y for ili9325_set_orientation()
Referenced by ili9325_set_orientation().
#define ILI9325_SWITCH_XY_HEIGHT 240 |
Height of display using swapped X/Y orientation.
Referenced by gfx_ili9325_set_orientation().
#define ILI9325_SWITCH_XY_WIDTH 320 |
Width of display using swapped X/Y orientation.
Referenced by gfx_ili9325_set_orientation().
#define ILI9325_VERTICAL_ADDR_END (0x53u) |
Referenced by ili9325_send_draw_limits(), ili9325_set_window(), ili93xx_send_draw_limits(), and ili93xx_set_window().
#define ILI9325_VERTICAL_ADDR_END_VEA | ( | value | ) | ((ILI9325_VERTICAL_ADDR_END_VEA_MSK & ((value) << ILI9325_VERTICAL_ADDR_END_VEA_POS))) |
#define ILI9325_VERTICAL_ADDR_END_VEA_MSK (0x1ffu << ILI9325_VERTICAL_ADDR_END_VEA_POS) |
#define ILI9325_VERTICAL_ADDR_END_VEA_POS 0 |
#define ILI9325_VERTICAL_ADDR_START (0x52u) |
Referenced by ili9325_send_draw_limits(), ili9325_set_window(), ili93xx_send_draw_limits(), and ili93xx_set_window().
#define ILI9325_VERTICAL_ADDR_START_VSA | ( | value | ) | ((ILI9325_VERTICAL_ADDR_START_VSA_MSK & ((value) << ILI9325_VERTICAL_ADDR_START_VSA_POS))) |
#define ILI9325_VERTICAL_ADDR_START_VSA_MSK (0x1ffu << ILI9325_VERTICAL_ADDR_START_VSA_POS) |
#define ILI9325_VERTICAL_ADDR_START_VSA_POS 0 |
#define ILI9325_VERTICAL_GRAM_ADDR_SET (0x21u) |
#define ILI9325_VERTICAL_GRAM_ADDR_SET_AD | ( | value | ) | ((ILI9325_VERTICAL_GRAM_ADDR_SET_AD_MSK & ((value) << ILI9325_VERTICAL_GRAM_ADDR_SET_AD_POS))) |
#define ILI9325_VERTICAL_GRAM_ADDR_SET_AD_MSK (0xffu << ILI9325_VERTICAL_GRAM_ADDR_SET_AD_POS) |
#define ILI9325_VERTICAL_GRAM_ADDR_SET_AD_POS 0 |
#define ILI9325_VERTICAL_SCROLL_CTRL (0x6Au) |
Referenced by ili9325_init(), ili9325_scroll(), ili93xx_init(), and ili93xx_scroll().
#define ILI9325_VERTICAL_SCROLL_CTRL_VL | ( | value | ) | ((ILI9325_VERTICAL_SCROLL_CTRL_VL_MSK & ((value) << ILI9325_VERTICAL_SCROLL_CTRL_VL_POS))) |
#define ILI9325_VERTICAL_SCROLL_CTRL_VL_MSK (0x1ffu << ILI9325_VERTICAL_SCROLL_CTRL_VL_POS) |
#define ILI9325_VERTICAL_SCROLL_CTRL_VL_POS 0 |
typedef uint32_t ili9325_color_t |
Type define for an integer type large enough to store a pixel color.
typedef int16_t ili9325_coord_t |
Type define for an integer type large enough to store a pixel coordinate.