![]() |
LibDriver SSD1681
|
driver ssd1681 source file More...
Go to the source code of this file.
Functions | |
| 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_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_otp_program_vcom (ssd1681_handle_t *handle) |
| program vcom otp | |
| 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_otp_read_register (ssd1681_handle_t *handle, uint8_t param[11]) |
| otp register read for display option | |
| 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_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_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_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_set_user_id (ssd1681_handle_t *handle, uint8_t id[10]) |
| set the user id | |
| uint8_t | ssd1681_otp_program_mode (ssd1681_handle_t *handle, ssd1681_otp_mode_t mode) |
| set the otp program mode | |
| 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_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_init (ssd1681_handle_t *handle) |
| initialize the chip | |
| uint8_t | ssd1681_deinit (ssd1681_handle_t *handle) |
| close the chip | |
| 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 | |
| uint8_t | ssd1681_info (ssd1681_info_t *info) |
| get chip's information | |
driver ssd1681 source 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.c.
| #define CHIP_NAME "Solomon Systech SSD1681" |
| #define DRIVER_VERSION 1000 |
driver version
Definition at line 50 of file driver_ssd1681.c.
| #define MANUFACTURER_NAME "Solomon Systech" |
manufacturer name
Definition at line 44 of file driver_ssd1681.c.
| #define MAX_CURRENT 500.00f |
chip max current
Definition at line 47 of file driver_ssd1681.c.
| #define SSD1681_CMD 0 |
| #define SSD1681_CMD_AUTO_WRITE_BW_RAM_FOR_REGULAR_PATTERN 0x47 |
command auto write b/w ram for regular pattern
Definition at line 109 of file driver_ssd1681.c.
| #define SSD1681_CMD_AUTO_WRITE_RED_RAM_FOR_REGULAR_PATTERN 0x46 |
command auto write red ram for regular pattern
Definition at line 108 of file driver_ssd1681.c.
| #define SSD1681_CMD_BOOSTER_SOFT_START_CONTROL 0x0C |
command booster soft start control
Definition at line 67 of file driver_ssd1681.c.
| #define SSD1681_CMD_BORDER_WAVEFORM_CONTROL 0x3C |
command border waveform control
Definition at line 103 of file driver_ssd1681.c.
| #define SSD1681_CMD_CRC_CALCULATION 0x34 |
command crc calculation
Definition at line 97 of file driver_ssd1681.c.
| #define SSD1681_CMD_CRC_STATUS_READ 0x35 |
command crc status read
Definition at line 98 of file driver_ssd1681.c.
| #define SSD1681_CMD_DATA_ENTRY_MODE_SETTING 0x11 |
command data entry mode setting
Definition at line 69 of file driver_ssd1681.c.
| #define SSD1681_CMD_DEEP_SLEEP_MODE 0x10 |
command deep sleep mode
Definition at line 68 of file driver_ssd1681.c.
| #define SSD1681_CMD_DISPLAY_UPDATA_CONTROL_1 0x21 |
command display update control 1
Definition at line 81 of file driver_ssd1681.c.
| #define SSD1681_CMD_DISPLAY_UPDATA_CONTROL_2 0x22 |
command display update control 2
Definition at line 82 of file driver_ssd1681.c.
| #define SSD1681_CMD_DRIVER_OUTPUT_CONTROL 0x01 |
chip command definition
command driver output control
Definition at line 61 of file driver_ssd1681.c.
| #define SSD1681_CMD_END_OPTION 0x3F |
command end option
Definition at line 104 of file driver_ssd1681.c.
| #define SSD1681_CMD_GATE_DRIVING_VOLTAGE_CONTROL 0x03 |
command gate driving voltage control
Definition at line 62 of file driver_ssd1681.c.
| #define SSD1681_CMD_HV_READY_DETECTION 0x14 |
command hv ready detection
Definition at line 71 of file driver_ssd1681.c.
| #define SSD1681_CMD_INITIAL_CODE_SETTING_OTP_PROGRAM 0x08 |
command initial code setting otp program
Definition at line 64 of file driver_ssd1681.c.
| #define SSD1681_CMD_LOAD_WS_OTP 0x31 |
command load ws otp
Definition at line 95 of file driver_ssd1681.c.
| #define SSD1681_CMD_MASTER_ACTIVATION 0x20 |
command master activation
Definition at line 80 of file driver_ssd1681.c.
| #define SSD1681_CMD_NOP 0x7F |
command nop
Definition at line 112 of file driver_ssd1681.c.
| #define SSD1681_CMD_OTP_PROGRAM_MODE 0x39 |
command otp program mode
Definition at line 102 of file driver_ssd1681.c.
| #define SSD1681_CMD_OTP_REGISTER_READ_FOR_DISPLAY_OPTION 0x2D |
command otp register read for display option
Definition at line 91 of file driver_ssd1681.c.
| #define SSD1681_CMD_PROGRAM_OTP_SELECTION 0x36 |
command program otp selection
Definition at line 99 of file driver_ssd1681.c.
| #define SSD1681_CMD_PROGRAM_VCOM_OTP 0x2A |
command program vcom otp duration
Definition at line 88 of file driver_ssd1681.c.
| #define SSD1681_CMD_PROGRAM_WS_OTP 0x30 |
command program ws otp
Definition at line 94 of file driver_ssd1681.c.
| #define SSD1681_CMD_READ_RAM 0x27 |
command read ram
Definition at line 85 of file driver_ssd1681.c.
| #define SSD1681_CMD_READ_RAM_OPTION 0x41 |
command read ram option
Definition at line 105 of file driver_ssd1681.c.
| #define SSD1681_CMD_READ_REGISTER_FOR_INITIAL_CODE_SETTING 0x0A |
command read register for initial code setting
Definition at line 66 of file driver_ssd1681.c.
| #define SSD1681_CMD_SET_RAM_X 0x44 |
command set ram x
Definition at line 106 of file driver_ssd1681.c.
| #define SSD1681_CMD_SET_RAM_X_ADDRESS_COUNTER 0x4E |
command set ram x address counter
Definition at line 110 of file driver_ssd1681.c.
| #define SSD1681_CMD_SET_RAM_Y 0x45 |
command set ram y
Definition at line 107 of file driver_ssd1681.c.
| #define SSD1681_CMD_SET_RAM_Y_ADDRESS_COUNTER 0x4F |
command set ram y address counter
Definition at line 111 of file driver_ssd1681.c.
| #define SSD1681_CMD_SOURCE_DRIVING_VOLTAGE_CONTROL 0x04 |
command source driving voltage control
Definition at line 63 of file driver_ssd1681.c.
| #define SSD1681_CMD_STATUS_BIT_READ 0x2F |
command status bit read
Definition at line 93 of file driver_ssd1681.c.
| #define SSD1681_CMD_SW_RESET 0x12 |
command software reset
Definition at line 70 of file driver_ssd1681.c.
| #define SSD1681_CMD_TEMPERATURE_SENSOR_CONTROL 0x18 |
command temperature sensor control
Definition at line 73 of file driver_ssd1681.c.
| #define SSD1681_CMD_TEMPERATURE_SENSOR_CONTROL_READ 0x1B |
command temperature sensor control (read from temperature register)
Definition at line 76 of file driver_ssd1681.c.
| #define SSD1681_CMD_TEMPERATURE_SENSOR_CONTROL_WRITE 0x1A |
command temperature sensor control (write to temperature register)
Definition at line 74 of file driver_ssd1681.c.
| #define SSD1681_CMD_TEMPERATURE_SENSOR_CONTROL_WRITE_EXT 0x1C |
command temperature sensor control (write command to external temperature sensor)
Definition at line 78 of file driver_ssd1681.c.
| #define SSD1681_CMD_USER_ID_READ 0x2E |
command user id read
Definition at line 92 of file driver_ssd1681.c.
| #define SSD1681_CMD_VCI_DETECTION 0x15 |
command vci detection
Definition at line 72 of file driver_ssd1681.c.
| #define SSD1681_CMD_VCOM_SENSE 0x28 |
command vcom sense
Definition at line 86 of file driver_ssd1681.c.
| #define SSD1681_CMD_VCOM_SENSE_DURATION 0x29 |
command vcom sense duration
Definition at line 87 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_LUT_REGISTER 0x32 |
command write lut register
Definition at line 96 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_RAM_BLACK 0x24 |
command write ram(black white)
Definition at line 83 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_RAM_RED 0x26 |
command write ram(read)
Definition at line 84 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_REGISTER_FOR_DISPLAY_OPTION 0x37 |
command write register for display option
Definition at line 100 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_REGISTER_FOR_INITIAL_CODE_SETTING 0x09 |
command write register for initial code setting
Definition at line 65 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_REGISTER_FOR_USER_ID 0x38 |
command write register for user id
Definition at line 101 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_REGISTER_FOR_VCOM_CONTROL 0x2B |
command write register for vcom control
Definition at line 89 of file driver_ssd1681.c.
| #define SSD1681_CMD_WRITE_VCOM_REGISTER 0x2C |
command write vcom register
Definition at line 90 of file driver_ssd1681.c.
| #define SSD1681_DATA 1 |
data
Definition at line 56 of file driver_ssd1681.c.
| #define SUPPLY_VOLTAGE_MAX 3.7f |
chip max supply voltage
Definition at line 46 of file driver_ssd1681.c.
| #define SUPPLY_VOLTAGE_MIN 2.2f |
chip min supply voltage
Definition at line 45 of file driver_ssd1681.c.
| #define TEMPERATURE_MAX 85.0f |
chip max operating temperature
Definition at line 49 of file driver_ssd1681.c.
| #define TEMPERATURE_MIN -40.0f |
chip min operating temperature
Definition at line 48 of file driver_ssd1681.c.