Low-level driver for the AAT31XX LCD backlight controller.
This driver provides access to the main features of the AAT31XX controller.
Macros | |
#define | DELAY_DISABLE (0x20000u) |
#define | DELAY_ENABLE (0x20000u) |
#define | DELAY_PULSE (0x18u) |
Functions | |
void | aat31xx_disable_backlight (void) |
Switch off backlight. More... | |
void | aat31xx_set_backlight (uint32_t ul_level) |
Set the LCD backlight level. More... | |
#define DELAY_DISABLE (0x20000u) |
Referenced by aat31xx_disable_backlight().
#define DELAY_ENABLE (0x20000u) |
Referenced by aat31xx_set_backlight().
#define DELAY_PULSE (0x18u) |
Referenced by aat31xx_set_backlight().
void aat31xx_disable_backlight | ( | void | ) |
Switch off backlight.
References DELAY_DISABLE, IOPORT_PIN_LEVEL_LOW, and ioport_set_pin_level().
Referenced by gfx_ili9325_init(), gfx_ili93xx_init(), and main().
void aat31xx_set_backlight | ( | uint32_t | ul_level | ) |
Set the LCD backlight level.
ul_level | backlight level. |
References AAT31XX_MAX_BACKLIGHT_LEVEL, AAT31XX_MIN_BACKLIGHT_LEVEL, DELAY_ENABLE, DELAY_PULSE, IOPORT_PIN_LEVEL_HIGH, IOPORT_PIN_LEVEL_LOW, and ioport_set_pin_level().
Referenced by gfx_ili9325_init(), gfx_ili93xx_init(), and main().