UC8151 e-paper display driver interface. More...
Go to the source code of this file.
Data Structures | |
struct | driver_uc8151_rect_t |
UC8151 display rectangle for partial updates. More... | |
struct | driver_uc8151_t |
UC8151 display driver structure. More... | |
Typedefs | |
typedef struct driver_uc8151_t | driver_uc8151_t |
UC8151 display driver structure. More... | |
Enumerations | |
enum | driver_uc8151_update_speed_t { DRIVER_UC8151_UPDATE_SPEED_DEFAULT = 0, DRIVER_UC8151_UPDATE_SPEED_MEDIUM = 1, DRIVER_UC8151_UPDATE_SPEED_FAST = 2, DRIVER_UC8151_UPDATE_SPEED_TURBO = 3 } |
UC8151 update speed modes. More... | |
enum | driver_uc8151_rotation_t { DRIVER_UC8151_ROTATION_0 = 0, DRIVER_UC8151_ROTATION_180 = 1 } |
UC8151 rotation modes. More... | |
Functions | |
driver_uc8151_t | driver_uc8151_init (hw_spi_t *spi, uint8_t dc_pin, uint8_t reset_pin, uint8_t busy_pin, uint16_t width, uint16_t height) |
Initialize a UC8151 display driver using the SPI interface. More... | |
void | driver_uc8151_finalize (driver_uc8151_t *uc8151) |
Finalize and release a UC8151 display driver. More... | |
static bool | driver_uc8151_valid (driver_uc8151_t *uc8151) |
Check if a UC8151 driver structure is valid. More... | |
bool | driver_uc8151_set_update_speed (driver_uc8151_t *uc8151, driver_uc8151_update_speed_t speed) |
Set the update speed of the UC8151 display. More... | |
bool | driver_uc8151_set_rotation (driver_uc8151_t *uc8151, driver_uc8151_rotation_t rotation) |
Set the rotation of the UC8151 display. More... | |
bool | driver_uc8151_set_inverted (driver_uc8151_t *uc8151, bool inverted) |
Set the color inversion of the UC8151 display. More... | |
bool | driver_uc8151_set_blocking (driver_uc8151_t *uc8151, bool blocking) |
Set the blocking mode of the UC8151 display. More... | |
uint32_t | driver_uc8151_get_update_time (driver_uc8151_t *uc8151) |
Get the estimated update time for the current speed setting. More... | |
bool | driver_uc8151_is_busy (driver_uc8151_t *uc8151) |
Check if the UC8151 display is busy. More... | |
void | driver_uc8151_busy_wait (driver_uc8151_t *uc8151) |
Wait for the UC8151 display to become ready. More... | |
void | driver_uc8151_reset (driver_uc8151_t *uc8151) |
Reset the UC8151 display. More... | |
void | driver_uc8151_power_off (driver_uc8151_t *uc8151) |
Turn off the UC8151 display. More... | |
bool | driver_uc8151_update (driver_uc8151_t *uc8151, const void *data, size_t size) |
Update the entire UC8151 display with new framebuffer data. More... | |
bool | driver_uc8151_partial_update (driver_uc8151_t *uc8151, const uint8_t *data, size_t size, driver_uc8151_rect_t rect) |
Update a partial region of the UC8151 display. More... | |
UC8151 e-paper display driver interface.
Definition in file drivers_uc8151.h.