![]() |
LibDriver SSD1681
|
driver ssd1681 header file More...
#include <stdint.h>#include <stdio.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | ssd1681_handle_s |
| ssd1681 handle structure definition More... | |
| struct | ssd1681_info_s |
| ssd1681 information structure definition More... | |
Macros | |
| #define | SSD1681_BUSY_MAX_DELAY_MS 10 |
| ssd1681 busy max delay definition | |
| #define | SSD1681_BUSY_MAX_RETRY_TIMES 2000 |
| ssd1681 busy max retry times definition | |
| #define | DRIVER_SSD1681_LINK_INIT(HANDLE, STRUCTURE) |
| initialize ssd1681_handle_t structure | |
| #define | DRIVER_SSD1681_LINK_SPI_INIT(HANDLE, FUC) |
| link spi_init function | |
| #define | DRIVER_SSD1681_LINK_SPI_DEINIT(HANDLE, FUC) |
| link spi_deinit function | |
| #define | DRIVER_SSD1681_LINK_SPI_WRITE_CMD(HANDLE, FUC) |
| link spi_write_cmd function | |
| #define | DRIVER_SSD1681_LINK_SPI_READ_CMD(HANDLE, FUC) |
| link spi_read_cmd function | |
| #define | DRIVER_SSD1681_LINK_SPI_CMD_DATA_GPIO_INIT(HANDLE, FUC) |
| link spi_cmd_data_gpio_init function | |
| #define | DRIVER_SSD1681_LINK_SPI_CMD_DATA_GPIO_DEINIT(HANDLE, FUC) |
| link spi_cmd_data_gpio_deinit function | |
| #define | DRIVER_SSD1681_LINK_SPI_CMD_DATA_GPIO_WRITE(HANDLE, FUC) |
| link spi_cmd_data_gpio_write function | |
| #define | DRIVER_SSD1681_LINK_RESET_GPIO_INIT(HANDLE, FUC) |
| link reset_gpio_init function | |
| #define | DRIVER_SSD1681_LINK_RESET_GPIO_DEINIT(HANDLE, FUC) |
| link reset_gpio_deinit function | |
| #define | DRIVER_SSD1681_LINK_RESET_GPIO_WRITE(HANDLE, FUC) |
| link reset_gpio_write function | |
| #define | DRIVER_SSD1681_LINK_BUSY_GPIO_INIT(HANDLE, FUC) |
| link busy_gpio_init function | |
| #define | DRIVER_SSD1681_LINK_BUSY_GPIO_DEINIT(HANDLE, FUC) |
| link busy_gpio_deinit function | |
| #define | DRIVER_SSD1681_LINK_BUSY_GPIO_READ(HANDLE, FUC) |
| link busy_gpio_read function | |
| #define | DRIVER_SSD1681_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | DRIVER_SSD1681_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
Typedefs | |
| typedef struct ssd1681_handle_s | ssd1681_handle_t |
| ssd1681 handle structure definition | |
| typedef struct ssd1681_info_s | ssd1681_info_t |
| ssd1681 information structure definition | |
Functions | |
| uint8_t | ssd1681_info (ssd1681_info_t *info) |
| get chip's information | |
| uint8_t | ssd1681_init (ssd1681_handle_t *handle) |
| initialize the chip | |
| uint8_t | ssd1681_deinit (ssd1681_handle_t *handle) |
| close the chip | |
| uint8_t | ssd1681_clear (ssd1681_handle_t *handle, ssd1681_color_t color) |
| clear the screen | |
| uint8_t | ssd1681_gram_update (ssd1681_handle_t *handle, ssd1681_color_t color) |
| update the gram data | |
| uint8_t | ssd1681_gram_clear (ssd1681_handle_t *handle, ssd1681_color_t color) |
| clear the screen in the gram | |
| uint8_t | ssd1681_gram_write_point (ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t x, uint8_t y, uint8_t data) |
| write a point in the gram | |
| uint8_t | ssd1681_gram_read_point (ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t x, uint8_t y, uint8_t *data) |
| read a point from the gram | |
| uint8_t | ssd1681_gram_write_string (ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t data, ssd1681_font_t font) |
| draw a string in the gram | |
| uint8_t | ssd1681_gram_fill_rect (ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t data) |
| fill a rectangle in the gram | |
| uint8_t | ssd1681_gram_draw_picture (ssd1681_handle_t *handle, ssd1681_color_t color, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img) |
| draw a picture in the gram | |
| uint8_t | ssd1681_set_driver_output (ssd1681_handle_t *handle, uint16_t mux, ssd1681_bool_t gd, ssd1681_bool_t sm, ssd1681_bool_t tb) |
| set the driver output | |
| uint8_t | ssd1681_set_gate_driving_voltage (ssd1681_handle_t *handle, ssd1681_gate_driving_voltage_t voltage) |
| set the gate driving voltage | |
| uint8_t | ssd1681_set_source_driving_voltage (ssd1681_handle_t *handle, ssd1681_vsh_t vsh1, ssd1681_vsh_t vsh2, ssd1681_vsl_t vsl) |
| set the source driving voltage | |
| uint8_t | ssd1681_otp_initial (ssd1681_handle_t *handle) |
| initial code setting otp program | |
| uint8_t | ssd1681_otp_initial_write (ssd1681_handle_t *handle, uint8_t param[4]) |
| write register for initial code setting | |
| uint8_t | ssd1681_otp_initial_read (ssd1681_handle_t *handle) |
| read register for initial code setting | |
| uint8_t | ssd1681_otp_program_vcom (ssd1681_handle_t *handle) |
| program vcom otp | |
| uint8_t | ssd1681_otp_read_register (ssd1681_handle_t *handle, uint8_t param[11]) |
| otp register read for display option | |
| uint8_t | ssd1681_otp_program_waveform (ssd1681_handle_t *handle) |
| program otp of waveform setting | |
| uint8_t | ssd1681_otp_load_waveform (ssd1681_handle_t *handle) |
| load otp of waveform setting | |
| uint8_t | ssd1681_otp_program_selection (ssd1681_handle_t *handle) |
| program otp selection | |
| uint8_t | ssd1681_otp_write_register (ssd1681_handle_t *handle, uint8_t param[11]) |
| otp write register for display option | |
| uint8_t | ssd1681_otp_program_mode (ssd1681_handle_t *handle, ssd1681_otp_mode_t mode) |
| set the otp program mode | |
| uint8_t | ssd1681_set_booster_soft_start (ssd1681_handle_t *handle, uint8_t phase1, uint8_t phase2, uint8_t phase3, uint8_t duration) |
| set the booster soft start | |
| uint8_t | ssd1681_set_mode (ssd1681_handle_t *handle, ssd1681_mode_t mode) |
| set the mode | |
| uint8_t | ssd1681_set_data_entry_mode (ssd1681_handle_t *handle, ssd1681_address_mode_t mode, ssd1681_address_direction_t direction) |
| set the data entry mode | |
| uint8_t | ssd1681_software_reset (ssd1681_handle_t *handle) |
| software reset | |
| uint8_t | ssd1681_set_hv_ready_detection (ssd1681_handle_t *handle, uint8_t cool_down_duration, uint8_t cool_down_loop_num) |
| set the hv ready detection | |
| uint8_t | ssd1681_set_vci_detection (ssd1681_handle_t *handle, ssd1681_vci_level_t level) |
| set the vci detection | |
| uint8_t | ssd1681_set_temperature_sensor (ssd1681_handle_t *handle, ssd1681_temperature_sensor_t sensor) |
| set the temperature sensor | |
| uint8_t | ssd1681_write_temperature_sensor (ssd1681_handle_t *handle, uint16_t control) |
| write the temperature sensor | |
| uint8_t | ssd1681_read_temperature_sensor (ssd1681_handle_t *handle, uint16_t *control) |
| read the temperature sensor | |
| uint8_t | ssd1681_write_temperature_sensor_ext (ssd1681_handle_t *handle, uint8_t param[3]) |
| write command to external temperature sensor | |
| uint8_t | ssd1681_set_master_activate (ssd1681_handle_t *handle) |
| master activate | |
| uint8_t | ssd1681_set_display_update_control (ssd1681_handle_t *handle, ssd1681_display_control_t red_control, ssd1681_display_control_t black_control) |
| set the display update control | |
| uint8_t | ssd1681_set_display_sequence (ssd1681_handle_t *handle, ssd1681_display_sequence_t sequence) |
| set the display sequence | |
| uint8_t | ssd1681_set_black_ram (ssd1681_handle_t *handle) |
| set the black ram | |
| uint8_t | ssd1681_set_red_ram (ssd1681_handle_t *handle) |
| set the red ram | |
| uint8_t | ssd1681_get_ram (ssd1681_handle_t *handle) |
| get the ram | |
| uint8_t | ssd1681_set_enter_vcom_sense (ssd1681_handle_t *handle) |
| set enter vcom sense | |
| uint8_t | ssd1681_set_vcom_sense_duration (ssd1681_handle_t *handle, uint8_t duration) |
| set the vcom sense duration | |
| uint8_t | ssd1681_set_vcom_control_reg (ssd1681_handle_t *handle) |
| write register for vcom control | |
| uint8_t | ssd1681_set_vcom_register (ssd1681_handle_t *handle, ssd1681_vcom_t vcom) |
| write vcom register | |
| uint8_t | ssd1681_get_user_id (ssd1681_handle_t *handle, uint8_t id[10]) |
| get the user id | |
| uint8_t | ssd1681_get_status (ssd1681_handle_t *handle, uint8_t *status) |
| get the status | |
| uint8_t | ssd1681_set_lut_register (ssd1681_handle_t *handle, uint8_t *reg, uint16_t len) |
| set the lut register | |
| uint8_t | ssd1681_set_crc_calculation (ssd1681_handle_t *handle) |
| set the crc calculation | |
| uint8_t | ssd1681_get_crc_status (ssd1681_handle_t *handle, uint16_t *status) |
| get the crc status | |
| uint8_t | ssd1681_set_user_id (ssd1681_handle_t *handle, uint8_t id[10]) |
| set the user id | |
| uint8_t | ssd1681_set_border_waveform (ssd1681_handle_t *handle, ssd1681_vbd_t vbd, ssd1681_vbd_fix_level_t level, ssd1681_gs_transition_t gs_tran, ssd1681_vbd_transition_t vbd_tran) |
| set the border waveform | |
| uint8_t | ssd1681_set_end_option (ssd1681_handle_t *handle, ssd1681_end_opt_t opt) |
| end option | |
| uint8_t | ssd1681_set_read_ram (ssd1681_handle_t *handle, ssd1681_read_ram_t ram) |
| set the read ram | |
| uint8_t | ssd1681_set_ram_x (ssd1681_handle_t *handle, uint8_t start, uint8_t end) |
| set the ram x range | |
| uint8_t | ssd1681_set_ram_y (ssd1681_handle_t *handle, uint16_t start, uint16_t end) |
| set the ram y range | |
| uint8_t | ssd1681_set_auto_write_red_ram (ssd1681_handle_t *handle, ssd1681_step_height_t height, ssd1681_step_width_t width) |
| set the auto write red ram | |
| uint8_t | ssd1681_set_auto_write_black_ram (ssd1681_handle_t *handle, ssd1681_step_height_t height, ssd1681_step_width_t width) |
| set the auto write black ram | |
| uint8_t | ssd1681_set_ram_x_address_counter (ssd1681_handle_t *handle, uint8_t cnt) |
| set the ram x address counter | |
| uint8_t | ssd1681_set_ram_y_address_counter (ssd1681_handle_t *handle, uint16_t cnt) |
| set the ram y address counter | |
| uint8_t | ssd1681_nop (ssd1681_handle_t *handle) |
| nop command | |
| uint8_t | ssd1681_write_cmd (ssd1681_handle_t *handle, uint8_t *buf, uint8_t len) |
| write the register command | |
| uint8_t | ssd1681_write_data (ssd1681_handle_t *handle, uint8_t *buf, uint8_t len) |
| write the register data | |
| uint8_t | ssd1681_read_data (ssd1681_handle_t *handle, uint8_t *buf, uint8_t len) |
| read the register data | |
driver ssd1681 header file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2022/08/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_ssd1681.h.