LibDriver ST7789
Loading...
Searching...
No Matches
st7789 advance driver function

st7789 advance driver modules More...

Collaboration diagram for st7789 advance driver function:

Enumerations

enum  st7789_ram_access_t { ST7789_RAM_ACCESS_MCU = 0x0 , ST7789_RAM_ACCESS_RGB = 0x1 }
 st7789 ram access enumeration definition More...
enum  st7789_display_mode_t { ST7789_DISPLAY_MODE_MCU = 0x0 , ST7789_DISPLAY_MODE_RGB = 0x1 , ST7789_DISPLAY_MODE_VSYNC = 0x2 }
 st7789 display mode enumeration definition More...
enum  st7789_data_mode_t { ST7789_DATA_MODE_MSB = 0x0 , ST7789_DATA_MODE_LSB = 0x1 }
 st7789 data mode enumeration definition More...
enum  st7789_rgb_bus_width_t { ST7789_RGB_BUS_WIDTH_18_BIT = 0x0 , ST7789_RGB_BUS_WIDTH_6_BIT = 0x1 }
 st7789 rgb bus width enumeration definition More...
enum  st7789_frame_type_t { ST7789_FRAME_TYPE_0 = 0x0 , ST7789_FRAME_TYPE_1 = 0x1 , ST7789_FRAME_TYPE_2 = 0x2 , ST7789_FRAME_TYPE_3 = 0x3 }
 st7789 frame type enumeration definition More...
enum  st7789_pixel_type_t { ST7789_PIXEL_TYPE_0 = 0x0 , ST7789_PIXEL_TYPE_1 = 0x0 , ST7789_PIXEL_TYPE_2 = 0x0 , ST7789_PIXEL_TYPE_3 = 0x0 }
 st7789 pixel type enumeration definition More...
enum  st7789_direct_rgb_mode_t { ST7789_DIRECT_RGB_MODE_MEM = 0x0 , ST7789_DIRECT_RGB_MODE_SHIFT = 0x1 }
 st7789 direct rgb mode enumeration definition More...
enum  st7789_rgb_if_enable_mode_t { ST7789_RGB_IF_ENABLE_MODE_MCU = 0x0 , ST7789_RGB_IF_ENABLE_MODE_DE = 0x2 , ST7789_RGB_IF_ENABLE_MODE_HV = 0x3 }
 st7789 rgb if enable mode enumeration definition More...
enum  st7789_pin_level_t { ST7789_PIN_LEVEL_LOW = 0x0 , ST7789_PIN_LEVEL_HIGH = 0x1 }
 st7789 pin level enumeration definition More...
enum  st7789_frame_rate_divided_control_t { ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_1 = 0x0 , ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_2 = 0x1 , ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_4 = 0x2 , ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_8 = 0x3 }
 st7789 frame rate divided control enumeration definition More...
enum  st7789_inversion_idle_mode_t { ST7789_INVERSION_IDLE_MODE_DOT = 0x0 , ST7789_INVERSION_IDLE_MODE_COLUMN = 0x7 }
 st7789 inversion idle mode enumeration definition More...
enum  st7789_inversion_partial_mode_t { ST7789_INVERSION_PARTIAL_MODE_DOT = 0x0 , ST7789_INVERSION_PARTIAL_MODE_COLUMN = 0x7 }
 st7789 inversion partial mode enumeration definition More...
enum  st7789_non_display_source_output_level_t { ST7789_NON_DISPLAY_SOURCE_OUTPUT_LEVEL_V63 = 0x0 , ST7789_NON_DISPLAY_SOURCE_OUTPUT_LEVEL_V0 = 0x1 }
 st7789 non display source output level enumeration definition More...
enum  st7789_non_display_area_scan_mode_t { ST7789_NON_DISPLAY_AREA_SCAN_MODE_NORMAL = 0x0 , ST7789_NON_DISPLAY_AREA_SCAN_MODE_INTERVAL = 0x1 }
 st7789 non display area scan mode enumeration definition More...
enum  st7789_non_display_frame_frequency_t {
  ST7789_NON_DISPLAY_FRAME_FREQUENCY_EVERY = 0x0 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_3 = 0x1 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_5 = 0x2 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_7 = 0x3 ,
  ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_9 = 0x4 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_11 = 0x5 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_13 = 0x6 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_15 = 0x7 ,
  ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_17 = 0x8 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_19 = 0x9 , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_21 = 0xA , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_23 = 0xB ,
  ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_25 = 0xC , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_27 = 0xD , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_29 = 0xE , ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_31 = 0xF
}
 st7789 non display frame frequency enumeration definition More...
enum  st7789_vghs_t {
  ST7789_VGHS_12P20_V = 0x0 , ST7789_VGHS_12P54_V = 0x1 , ST7789_VGHS_12P89_V = 0x2 , ST7789_VGHS_13P26_V = 0x3 ,
  ST7789_VGHS_13P65_V = 0x4 , ST7789_VGHS_14P06_V = 0x5 , ST7789_VGHS_14P50_V = 0x6 , ST7789_VGHS_14P97_V = 0x7
}
 st7789 vghs enumeration definition More...
enum  st7789_vgls_t {
  ST7789_VGLS_NEGATIVE_7P16 = 0x0 , ST7789_VGLS_NEGATIVE_7P67 = 0x1 , ST7789_VGLS_NEGATIVE_8P23 = 0x2 , ST7789_VGLS_NEGATIVE_8P87 = 0x3 ,
  ST7789_VGLS_NEGATIVE_9P60 = 0x4 , ST7789_VGLS_NEGATIVE_10P43 = 0x5 , ST7789_VGLS_NEGATIVE_11P38 = 0x6 , ST7789_VGLS_NEGATIVE_12P50 = 0x7
}
 st7789 vgls enumeration definition More...
enum  st7789_vdv_vrh_from_t { ST7789_VDV_VRH_FROM_NVM = 0x0 , ST7789_VDV_VRH_FROM_CMD = 0x1 }
 st7789 vdv vrh from enumeration definition More...
enum  st7789_inversion_selection_t { ST7789_INVERSION_SELECTION_DOT = 0x0 , ST7789_INVERSION_SELECTION_COLUMN = 0x7 }
 st7789 inversion selection enumeration definition More...
enum  st7789_frame_rate_t {
  ST7789_FRAME_RATE_119_HZ = 0x00 , ST7789_FRAME_RATE_111_HZ = 0x01 , ST7789_FRAME_RATE_105_HZ = 0x02 , ST7789_FRAME_RATE_99_HZ = 0x03 ,
  ST7789_FRAME_RATE_94_HZ = 0x04 , ST7789_FRAME_RATE_90_HZ = 0x05 , ST7789_FRAME_RATE_86_HZ = 0x06 , ST7789_FRAME_RATE_82_HZ = 0x07 ,
  ST7789_FRAME_RATE_78_HZ = 0x08 , ST7789_FRAME_RATE_75_HZ = 0x09 , ST7789_FRAME_RATE_72_HZ = 0x0A , ST7789_FRAME_RATE_69_HZ = 0x0B ,
  ST7789_FRAME_RATE_67_HZ = 0x0C , ST7789_FRAME_RATE_64_HZ = 0x0D , ST7789_FRAME_RATE_62_HZ = 0x0E , ST7789_FRAME_RATE_60_HZ = 0x0F ,
  ST7789_FRAME_RATE_58_HZ = 0x10 , ST7789_FRAME_RATE_57_HZ = 0x11 , ST7789_FRAME_RATE_55_HZ = 0x12 , ST7789_FRAME_RATE_53_HZ = 0x13 ,
  ST7789_FRAME_RATE_52_HZ = 0x14 , ST7789_FRAME_RATE_50_HZ = 0x15 , ST7789_FRAME_RATE_49_HZ = 0x16 , ST7789_FRAME_RATE_48_HZ = 0x17 ,
  ST7789_FRAME_RATE_46_HZ = 0x18 , ST7789_FRAME_RATE_45_HZ = 0x19 , ST7789_FRAME_RATE_44_HZ = 0x1A , ST7789_FRAME_RATE_43_HZ = 0x1B ,
  ST7789_FRAME_RATE_42_HZ = 0x1C , ST7789_FRAME_RATE_41_HZ = 0x1D , ST7789_FRAME_RATE_40_HZ = 0x1E , ST7789_FRAME_RATE_39_HZ = 0x1F
}
 st7789 frame rate enumeration definition More...
enum  st7789_pwm_frequency_t {
  ST7789_PWM_FREQUENCY_39P2_KHZ = (0x0 << 3) | (0x0 << 0) , ST7789_PWM_FREQUENCY_78P7_KHZ = (0x1 << 3) | (0x0 << 0) , ST7789_PWM_FREQUENCY_158P7_KHZ = (0x2 << 3) | (0x0 << 0) , ST7789_PWM_FREQUENCY_322P6_KHZ = (0x3 << 3) | (0x0 << 0) ,
  ST7789_PWM_FREQUENCY_666P7_KHZ = (0x4 << 3) | (0x0 << 0) , ST7789_PWM_FREQUENCY_1428P6_KHZ = (0x5 << 3) | (0x0 << 0) , ST7789_PWM_FREQUENCY_19P6_KHZ = (0x0 << 3) | (0x1 << 0) , ST7789_PWM_FREQUENCY_39P4_KHZ = (0x1 << 3) | (0x1 << 0) ,
  ST7789_PWM_FREQUENCY_79P4_KHZ = (0x2 << 3) | (0x1 << 0) , ST7789_PWM_FREQUENCY_161P3_KHZ = (0x3 << 3) | (0x1 << 0) , ST7789_PWM_FREQUENCY_333P3_KHZ = (0x4 << 3) | (0x1 << 0) , ST7789_PWM_FREQUENCY_714P3_KHZ = (0x5 << 3) | (0x1 << 0) ,
  ST7789_PWM_FREQUENCY_9P8_KHZ = (0x0 << 3) | (0x2 << 0) , ST7789_PWM_FREQUENCY_19P7_KHZ = (0x1 << 3) | (0x2 << 0) , ST7789_PWM_FREQUENCY_39P7_KHZ = (0x2 << 3) | (0x2 << 0) , ST7789_PWM_FREQUENCY_80P6_KHZ = (0x3 << 3) | (0x2 << 0) ,
  ST7789_PWM_FREQUENCY_166P7_KHZ = (0x4 << 3) | (0x2 << 0) , ST7789_PWM_FREQUENCY_357P1_KHZ = (0x5 << 3) | (0x2 << 0) , ST7789_PWM_FREQUENCY_4P9_KHZ = (0x0 << 3) | (0x3 << 0) , ST7789_PWM_FREQUENCY_9P80_KHZ = (0x1 << 3) | (0x3 << 0) ,
  ST7789_PWM_FREQUENCY_19P8_KHZ = (0x2 << 3) | (0x3 << 0) , ST7789_PWM_FREQUENCY_40P3_KHZ = (0x3 << 3) | (0x3 << 0) , ST7789_PWM_FREQUENCY_83P3_KHZ = (0x4 << 3) | (0x3 << 0) , ST7789_PWM_FREQUENCY_178P6_KHZ = (0x5 << 3) | (0x3 << 0) ,
  ST7789_PWM_FREQUENCY_2P45_KHZ = (0x0 << 3) | (0x4 << 0) , ST7789_PWM_FREQUENCY_4P90_KHZ = (0x1 << 3) | (0x4 << 0) , ST7789_PWM_FREQUENCY_9P9_KHZ = (0x2 << 3) | (0x4 << 0) , ST7789_PWM_FREQUENCY_20P2_KHZ = (0x3 << 3) | (0x4 << 0) ,
  ST7789_PWM_FREQUENCY_41P7_KHZ = (0x4 << 3) | (0x4 << 0) , ST7789_PWM_FREQUENCY_89P3_KHZ = (0x5 << 3) | (0x4 << 0) , ST7789_PWM_FREQUENCY_1P23_KHZ = (0x0 << 3) | (0x5 << 0) , ST7789_PWM_FREQUENCY_2P5_KHZ = (0x1 << 3) | (0x5 << 0) ,
  ST7789_PWM_FREQUENCY_5P0_KHZ = (0x2 << 3) | (0x5 << 0) , ST7789_PWM_FREQUENCY_10P1_KHZ = (0x3 << 3) | (0x5 << 0) , ST7789_PWM_FREQUENCY_20P8_KHZ = (0x4 << 3) | (0x5 << 0) , ST7789_PWM_FREQUENCY_44P6_KHZ = (0x5 << 3) | (0x5 << 0) ,
  ST7789_PWM_FREQUENCY_0P61_KHZ = (0x0 << 3) | (0x6 << 0) , ST7789_PWM_FREQUENCY_1P230_KHZ = (0x1 << 3) | (0x6 << 0) , ST7789_PWM_FREQUENCY_2P48_KHZ = (0x2 << 3) | (0x6 << 0) , ST7789_PWM_FREQUENCY_5P00_KHZ = (0x3 << 3) | (0x6 << 0) ,
  ST7789_PWM_FREQUENCY_10P4_KHZ = (0x4 << 3) | (0x6 << 0) , ST7789_PWM_FREQUENCY_22P3_KHZ = (0x5 << 3) | (0x6 << 0) , ST7789_PWM_FREQUENCY_0P31_KHZ = (0x0 << 3) | (0x7 << 0) , ST7789_PWM_FREQUENCY_0P62_KHZ = (0x1 << 3) | (0x7 << 0) ,
  ST7789_PWM_FREQUENCY_1P24_KHZ = (0x2 << 3) | (0x7 << 0) , ST7789_PWM_FREQUENCY_2P25_KHZ = (0x3 << 3) | (0x7 << 0) , ST7789_PWM_FREQUENCY_5P2_KHZ = (0x4 << 3) | (0x7 << 0) , ST7789_PWM_FREQUENCY_11P2_KHZ = (0x5 << 3) | (0x7 << 0)
}
 st7789 pwm frequency enumeration definition More...
enum  st7789_avdd_t { ST7789_AVDD_6P4_V = 0x0 , ST7789_AVDD_6P6_V = 0x1 , ST7789_AVDD_6P8_V = 0x2 }
 st7789 avdd enumeration definition More...
enum  st7789_avcl_t { ST7789_AVCL_NEGTIVE_4P4_V = 0x0 , ST7789_AVCL_NEGTIVE_4P6_V = 0x1 , ST7789_AVCL_NEGTIVE_4P8_V = 0x2 , ST7789_AVCL_NEGTIVE_5P0_V = 0x3 }
 st7789 avcl enumeration definition More...
enum  st7789_vds_t { ST7789_VDS_2P19_V = 0x0 , ST7789_VDS_2P3_V = 0x1 , ST7789_VDS_2P4_V = 0x2 , ST7789_VDS_2P51_V = 0x3 }
 st7789 vds enumeration definition More...
enum  st7789_gate_scan_mode_t { ST7789_GATE_SCAN_MODE_INTERLACE = 0x0 , ST7789_GATE_SCAN_MODE_NON_INTERLACE = 0x1 }
 st7789 gate scan mode enumeration definition More...
enum  st7789_gate_scan_direction_t { ST7789_GATE_SCAN_DIRECTION_0_319 = 0x0 , ST7789_GATE_SCAN_DIRECTION_319_0 = 0x1 }
 st7789 gate scan direction enumeration definition More...
enum  st7789_sbclk_div_t { ST7789_SBCLK_DIV_2 = 0x0 , ST7789_SBCLK_DIV_3 = 0x1 , ST7789_SBCLK_DIV_4 = 0x2 , ST7789_SBCLK_DIV_6 = 0x3 }
 st7789 sbclk div enumeration definition More...
enum  st7789_stp14ck_div_t { ST7789_STP14CK_DIV_2 = 0x0 , ST7789_STP14CK_DIV_3 = 0x1 , ST7789_STP14CK_DIV_4 = 0x2 , ST7789_STP14CK_DIV_6 = 0x3 }
 st7789 stp14ck div enumeration definition More...

Functions

uint8_t st7789_set_ram_control (st7789_handle_t *handle, st7789_ram_access_t ram_mode, st7789_display_mode_t display_mode, st7789_frame_type_t frame_type, st7789_data_mode_t data_mode, st7789_rgb_bus_width_t bus_width, st7789_pixel_type_t pixel_type)
 set ram control
uint8_t st7789_set_rgb_interface_control (st7789_handle_t *handle, st7789_direct_rgb_mode_t rgb_mode, st7789_rgb_if_enable_mode_t rgb_if_mode, st7789_pin_level_t vspl, st7789_pin_level_t hspl, st7789_pin_level_t dpl, st7789_pin_level_t epl, uint8_t vbp, uint8_t hbp)
 set rgb interface control
uint8_t st7789_set_porch (st7789_handle_t *handle, uint8_t back_porch_normal, uint8_t front_porch_normal, st7789_bool_t separate_porch_enable, uint8_t back_porch_idle, uint8_t front_porch_idle, uint8_t back_porch_partial, uint8_t front_porch_partial)
 set porch
uint8_t st7789_set_frame_rate_control (st7789_handle_t *handle, st7789_bool_t separate_fr_control, st7789_frame_rate_divided_control_t div_control, st7789_inversion_idle_mode_t idle_mode, uint8_t idle_frame_rate, st7789_inversion_partial_mode_t partial_mode, uint8_t partial_frame_rate)
 set frame rate control
uint8_t st7789_set_partial_mode_control (st7789_handle_t *handle, st7789_non_display_source_output_level_t level, st7789_non_display_area_scan_mode_t mode, st7789_non_display_frame_frequency_t frequency)
 set partial mode control
uint8_t st7789_set_gate_control (st7789_handle_t *handle, st7789_vghs_t vghs, st7789_vgls_t vgls)
 set gate control
uint8_t st7789_set_gate_on_timing_adjustment (st7789_handle_t *handle, uint8_t gate_on_timing_adjustment, uint8_t gate_off_timing_adjustment_rgb, uint8_t gate_off_timing_adjustment)
 set gate on timing adjustment
uint8_t st7789_set_digital_gamma (st7789_handle_t *handle, st7789_bool_t enable)
 enable or disable digital gamma
uint8_t st7789_set_vcoms (st7789_handle_t *handle, uint8_t vcoms)
 set vcoms
uint8_t st7789_vcom_convert_to_register (st7789_handle_t *handle, float v, uint8_t *reg)
 convert the vcom to the register raw data
uint8_t st7789_vcom_convert_to_data (st7789_handle_t *handle, uint8_t reg, float *v)
 convert the register raw data to the vcom
uint8_t st7789_set_lcm_control (st7789_handle_t *handle, st7789_bool_t xmy, st7789_bool_t xbgr, st7789_bool_t xinv, st7789_bool_t xmx, st7789_bool_t xmh, st7789_bool_t xmv, st7789_bool_t xgs)
 set lcm control
uint8_t st7789_set_id_code_setting (st7789_handle_t *handle, uint8_t id[3])
 set id code setting
uint8_t st7789_set_vdv_vrh_from (st7789_handle_t *handle, st7789_vdv_vrh_from_t from)
 set vdv vrh from
uint8_t st7789_set_vrhs (st7789_handle_t *handle, uint8_t vrhs)
 set vrhs
uint8_t st7789_vrhs_convert_to_register (st7789_handle_t *handle, float v, uint8_t *reg)
 convert the vrhs to the register raw data
uint8_t st7789_vrhs_convert_to_data (st7789_handle_t *handle, uint8_t reg, float *v)
 convert the register raw data to the vrhs
uint8_t st7789_set_vdv (st7789_handle_t *handle, uint8_t vdv)
 set vdv
uint8_t st7789_vdv_convert_to_register (st7789_handle_t *handle, float v, uint8_t *reg)
 convert the vdv to the register raw data
uint8_t st7789_vdv_convert_to_data (st7789_handle_t *handle, uint8_t reg, float *v)
 convert the register raw data to the vdv
uint8_t st7789_set_vcoms_offset (st7789_handle_t *handle, uint8_t offset)
 set vcoms offset
uint8_t st7789_vcoms_offset_convert_to_register (st7789_handle_t *handle, float v, uint8_t *reg)
 convert the vcoms offset to the register raw data
uint8_t st7789_vcoms_offset_convert_to_data (st7789_handle_t *handle, uint8_t reg, float *v)
 convert the register raw data to the vcoms offset
uint8_t st7789_set_frame_rate (st7789_handle_t *handle, st7789_inversion_selection_t selection, st7789_frame_rate_t rate)
 set frame rate
uint8_t st7789_set_cabc_control (st7789_handle_t *handle, st7789_bool_t led_on, st7789_bool_t led_pwm_init, st7789_bool_t led_pwm_fix, st7789_bool_t led_pwm_polarity)
 set cabc control
uint8_t st7789_set_pwm_frequency (st7789_handle_t *handle, st7789_pwm_frequency_t frequency)
 set pwm frequency
uint8_t st7789_set_power_control_1 (st7789_handle_t *handle, st7789_avdd_t avdd, st7789_avcl_t avcl, st7789_vds_t vds)
 set power control 1
uint8_t st7789_enable_vap_van_signal_output (st7789_handle_t *handle)
 enable vap van signal output
uint8_t st7789_set_command_2_enable (st7789_handle_t *handle, st7789_bool_t enable)
 enable or disable command 2
uint8_t st7789_set_positive_voltage_gamma_control (st7789_handle_t *handle, uint8_t param[14])
 set positive voltage gamma control
uint8_t st7789_set_negative_voltage_gamma_control (st7789_handle_t *handle, uint8_t param[14])
 set negative voltage gamma control
uint8_t st7789_set_digital_gamma_look_up_table_red (st7789_handle_t *handle, uint8_t param[64])
 set red digital gamma look up table
uint8_t st7789_set_digital_gamma_look_up_table_blue (st7789_handle_t *handle, uint8_t param[64])
 set blue digital gamma look up table
uint8_t st7789_set_gate (st7789_handle_t *handle, uint8_t gate_line_number, uint8_t first_scan_line_number, st7789_gate_scan_mode_t mode, st7789_gate_scan_direction_t direction)
 set gate
uint8_t st7789_gate_line_convert_to_register (st7789_handle_t *handle, uint16_t l, uint8_t *reg)
 convert the gate line to the register raw data
uint8_t st7789_gate_line_convert_to_data (st7789_handle_t *handle, uint8_t reg, uint16_t *l)
 convert the register raw data to the gate line
uint8_t st7789_set_spi2_enable (st7789_handle_t *handle, st7789_bool_t date_lane, st7789_bool_t command_table_2)
 set spi2 enable
uint8_t st7789_set_power_control_2 (st7789_handle_t *handle, st7789_sbclk_div_t sbclk, st7789_stp14ck_div_t stp14ck)
 set power control 2
uint8_t st7789_set_equalize_time_control (st7789_handle_t *handle, uint8_t source_equalize_time, uint8_t source_pre_drive_time, uint8_t gate_equalize_time)
 set equalize time control
uint8_t st7789_set_program_mode_control (st7789_handle_t *handle)
 set program mode control
uint8_t st7789_set_program_mode_enable (st7789_handle_t *handle, st7789_bool_t enable)
 enable or disable program mode
uint8_t st7789_set_nvm_setting (st7789_handle_t *handle, uint8_t addr, uint8_t data)
 set nvm setting
uint8_t st7789_set_program_action (st7789_handle_t *handle)
 set program action

Detailed Description

st7789 advance driver modules

Enumeration Type Documentation

◆ st7789_avcl_t

st7789 avcl enumeration definition

Enumerator
ST7789_AVCL_NEGTIVE_4P4_V 

-4.4V

ST7789_AVCL_NEGTIVE_4P6_V 

-4.6V

ST7789_AVCL_NEGTIVE_4P8_V 

-4.8V

ST7789_AVCL_NEGTIVE_5P0_V 

-5.0V

Definition at line 485 of file driver_st7789.h.

◆ st7789_avdd_t

st7789 avdd enumeration definition

Enumerator
ST7789_AVDD_6P4_V 

6.4V

ST7789_AVDD_6P6_V 

6.6V

ST7789_AVDD_6P8_V 

6.8V

Definition at line 475 of file driver_st7789.h.

◆ st7789_data_mode_t

st7789 data mode enumeration definition

Enumerator
ST7789_DATA_MODE_MSB 

big endian

ST7789_DATA_MODE_LSB 

little endian

Definition at line 195 of file driver_st7789.h.

◆ st7789_direct_rgb_mode_t

st7789 direct rgb mode enumeration definition

Enumerator
ST7789_DIRECT_RGB_MODE_MEM 

memory mode

ST7789_DIRECT_RGB_MODE_SHIFT 

shift register mode

Definition at line 235 of file driver_st7789.h.

◆ st7789_display_mode_t

st7789 display mode enumeration definition

Enumerator
ST7789_DISPLAY_MODE_MCU 

mcu interface

ST7789_DISPLAY_MODE_RGB 

rgb interface

ST7789_DISPLAY_MODE_VSYNC 

vsync interface

Definition at line 185 of file driver_st7789.h.

◆ st7789_frame_rate_divided_control_t

st7789 frame rate divided control enumeration definition

Enumerator
ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_1 

divide by 1

ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_2 

divide by 2

ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_4 

divide by 4

ST7789_FRAME_RATE_DIVIDED_CONTROL_DIV_8 

divide by 8

Definition at line 263 of file driver_st7789.h.

◆ st7789_frame_rate_t

st7789 frame rate enumeration definition

Enumerator
ST7789_FRAME_RATE_119_HZ 

119Hz

ST7789_FRAME_RATE_111_HZ 

111Hz

ST7789_FRAME_RATE_105_HZ 

105Hz

ST7789_FRAME_RATE_99_HZ 

99Hz

ST7789_FRAME_RATE_94_HZ 

94Hz

ST7789_FRAME_RATE_90_HZ 

90Hz

ST7789_FRAME_RATE_86_HZ 

86Hz

ST7789_FRAME_RATE_82_HZ 

82Hz

ST7789_FRAME_RATE_78_HZ 

78Hz

ST7789_FRAME_RATE_75_HZ 

75Hz

ST7789_FRAME_RATE_72_HZ 

72Hz

ST7789_FRAME_RATE_69_HZ 

69Hz

ST7789_FRAME_RATE_67_HZ 

67Hz

ST7789_FRAME_RATE_64_HZ 

64Hz

ST7789_FRAME_RATE_62_HZ 

62Hz

ST7789_FRAME_RATE_60_HZ 

60Hz

ST7789_FRAME_RATE_58_HZ 

58Hz

ST7789_FRAME_RATE_57_HZ 

57Hz

ST7789_FRAME_RATE_55_HZ 

55Hz

ST7789_FRAME_RATE_53_HZ 

53Hz

ST7789_FRAME_RATE_52_HZ 

52Hz

ST7789_FRAME_RATE_50_HZ 

50Hz

ST7789_FRAME_RATE_49_HZ 

49Hz

ST7789_FRAME_RATE_48_HZ 

48Hz

ST7789_FRAME_RATE_46_HZ 

46Hz

ST7789_FRAME_RATE_45_HZ 

45Hz

ST7789_FRAME_RATE_44_HZ 

44Hz

ST7789_FRAME_RATE_43_HZ 

43Hz

ST7789_FRAME_RATE_42_HZ 

42Hz

ST7789_FRAME_RATE_41_HZ 

41Hz

ST7789_FRAME_RATE_40_HZ 

40Hz

ST7789_FRAME_RATE_39_HZ 

39Hz

Definition at line 381 of file driver_st7789.h.

◆ st7789_frame_type_t

st7789 frame type enumeration definition

Enumerator
ST7789_FRAME_TYPE_0 

type0

ST7789_FRAME_TYPE_1 

type1

ST7789_FRAME_TYPE_2 

type2

ST7789_FRAME_TYPE_3 

type3

Definition at line 213 of file driver_st7789.h.

◆ st7789_gate_scan_direction_t

st7789 gate scan direction enumeration definition

Enumerator
ST7789_GATE_SCAN_DIRECTION_0_319 

0 - 319

ST7789_GATE_SCAN_DIRECTION_319_0 

319 - 0

Definition at line 516 of file driver_st7789.h.

◆ st7789_gate_scan_mode_t

st7789 gate scan mode enumeration definition

Enumerator
ST7789_GATE_SCAN_MODE_INTERLACE 

interlace mode

ST7789_GATE_SCAN_MODE_NON_INTERLACE 

non-interlace mode

Definition at line 507 of file driver_st7789.h.

◆ st7789_inversion_idle_mode_t

st7789 inversion idle mode enumeration definition

Enumerator
ST7789_INVERSION_IDLE_MODE_DOT 

dot inversion

ST7789_INVERSION_IDLE_MODE_COLUMN 

column inversion

Definition at line 274 of file driver_st7789.h.

◆ st7789_inversion_partial_mode_t

st7789 inversion partial mode enumeration definition

Enumerator
ST7789_INVERSION_PARTIAL_MODE_DOT 

dot inversion

ST7789_INVERSION_PARTIAL_MODE_COLUMN 

column inversion

Definition at line 283 of file driver_st7789.h.

◆ st7789_inversion_selection_t

st7789 inversion selection enumeration definition

Enumerator
ST7789_INVERSION_SELECTION_DOT 

dot inversion

ST7789_INVERSION_SELECTION_COLUMN 

column inversion

Definition at line 372 of file driver_st7789.h.

◆ st7789_non_display_area_scan_mode_t

st7789 non display area scan mode enumeration definition

Enumerator
ST7789_NON_DISPLAY_AREA_SCAN_MODE_NORMAL 

normal mode

ST7789_NON_DISPLAY_AREA_SCAN_MODE_INTERVAL 

interval scan mode

Definition at line 301 of file driver_st7789.h.

◆ st7789_non_display_frame_frequency_t

st7789 non display frame frequency enumeration definition

Enumerator
ST7789_NON_DISPLAY_FRAME_FREQUENCY_EVERY 

every frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_3 

1/3 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_5 

1/5 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_7 

1/7 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_9 

1/9 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_11 

1/11 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_13 

1/13 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_15 

1/15 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_17 

1/17 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_19 

1/19 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_21 

1/21 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_23 

1/23 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_25 

1/25 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_27 

1/27 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_29 

1/29 frame

ST7789_NON_DISPLAY_FRAME_FREQUENCY_1_DIV_31 

1/31 frame

Definition at line 310 of file driver_st7789.h.

◆ st7789_non_display_source_output_level_t

st7789 non display source output level enumeration definition

Enumerator
ST7789_NON_DISPLAY_SOURCE_OUTPUT_LEVEL_V63 

v63

ST7789_NON_DISPLAY_SOURCE_OUTPUT_LEVEL_V0 

v0

Definition at line 292 of file driver_st7789.h.

◆ st7789_pin_level_t

st7789 pin level enumeration definition

Enumerator
ST7789_PIN_LEVEL_LOW 

low active

ST7789_PIN_LEVEL_HIGH 

high active

Definition at line 254 of file driver_st7789.h.

◆ st7789_pixel_type_t

st7789 pixel type enumeration definition

Enumerator
ST7789_PIXEL_TYPE_0 

type0

ST7789_PIXEL_TYPE_1 

type1

ST7789_PIXEL_TYPE_2 

type2

ST7789_PIXEL_TYPE_3 

type3

Definition at line 224 of file driver_st7789.h.

◆ st7789_pwm_frequency_t

st7789 pwm frequency enumeration definition

Enumerator
ST7789_PWM_FREQUENCY_39P2_KHZ 

39.2 KHz

ST7789_PWM_FREQUENCY_78P7_KHZ 

78.7 KHz

ST7789_PWM_FREQUENCY_158P7_KHZ 

158.7 KHz

ST7789_PWM_FREQUENCY_322P6_KHZ 

322.6 KHz

ST7789_PWM_FREQUENCY_666P7_KHZ 

666.7 KHz

ST7789_PWM_FREQUENCY_1428P6_KHZ 

1428.6 KHz

ST7789_PWM_FREQUENCY_19P6_KHZ 

19.6 KHz

ST7789_PWM_FREQUENCY_39P4_KHZ 

39.4 KHz

ST7789_PWM_FREQUENCY_79P4_KHZ 

79.4 KHz

ST7789_PWM_FREQUENCY_161P3_KHZ 

161.3 KHz

ST7789_PWM_FREQUENCY_333P3_KHZ 

333.3 KHz

ST7789_PWM_FREQUENCY_714P3_KHZ 

714.3 KHz

ST7789_PWM_FREQUENCY_9P8_KHZ 

9.8 KHz

ST7789_PWM_FREQUENCY_19P7_KHZ 

19.7 KHz

ST7789_PWM_FREQUENCY_39P7_KHZ 

39.7 KHz

ST7789_PWM_FREQUENCY_80P6_KHZ 

80.6 KHz

ST7789_PWM_FREQUENCY_166P7_KHZ 

166.7 KHz

ST7789_PWM_FREQUENCY_357P1_KHZ 

357.1 KHz

ST7789_PWM_FREQUENCY_4P9_KHZ 

4.9 KHz

ST7789_PWM_FREQUENCY_9P80_KHZ 

9.80 KHz

ST7789_PWM_FREQUENCY_19P8_KHZ 

19.8 KHz

ST7789_PWM_FREQUENCY_40P3_KHZ 

40.3 KHz

ST7789_PWM_FREQUENCY_83P3_KHZ 

83.3 KHz

ST7789_PWM_FREQUENCY_178P6_KHZ 

178.6 KHz

ST7789_PWM_FREQUENCY_2P45_KHZ 

2.45 KHz

ST7789_PWM_FREQUENCY_4P90_KHZ 

4.90 KHz

ST7789_PWM_FREQUENCY_9P9_KHZ 

9.9 KHz

ST7789_PWM_FREQUENCY_20P2_KHZ 

20.2 KHz

ST7789_PWM_FREQUENCY_41P7_KHZ 

41.7 KHz

ST7789_PWM_FREQUENCY_89P3_KHZ 

89.3 KHz

ST7789_PWM_FREQUENCY_1P23_KHZ 

1.23 KHz

ST7789_PWM_FREQUENCY_2P5_KHZ 

2.5 KHz

ST7789_PWM_FREQUENCY_5P0_KHZ 

5.0 KHz

ST7789_PWM_FREQUENCY_10P1_KHZ 

10.1 KHz

ST7789_PWM_FREQUENCY_20P8_KHZ 

20.8 KHz

ST7789_PWM_FREQUENCY_44P6_KHZ 

44.6 KHz

ST7789_PWM_FREQUENCY_0P61_KHZ 

0.61 KHz

ST7789_PWM_FREQUENCY_1P230_KHZ 

1.230 KHz

ST7789_PWM_FREQUENCY_2P48_KHZ 

2.48 KHz

ST7789_PWM_FREQUENCY_5P00_KHZ 

5.00 KHz

ST7789_PWM_FREQUENCY_10P4_KHZ 

10.4 KHz

ST7789_PWM_FREQUENCY_22P3_KHZ 

22.3 KHz

ST7789_PWM_FREQUENCY_0P31_KHZ 

0.31 KHz

ST7789_PWM_FREQUENCY_0P62_KHZ 

0.62 KHz

ST7789_PWM_FREQUENCY_1P24_KHZ 

1.24 KHz

ST7789_PWM_FREQUENCY_2P25_KHZ 

2.25 KHz

ST7789_PWM_FREQUENCY_5P2_KHZ 

5.2 KHz

ST7789_PWM_FREQUENCY_11P2_KHZ 

11.2 KHz

Definition at line 420 of file driver_st7789.h.

◆ st7789_ram_access_t

st7789 ram access enumeration definition

Enumerator
ST7789_RAM_ACCESS_MCU 

mcu interface

ST7789_RAM_ACCESS_RGB 

rgb interface

Definition at line 176 of file driver_st7789.h.

◆ st7789_rgb_bus_width_t

st7789 rgb bus width enumeration definition

Enumerator
ST7789_RGB_BUS_WIDTH_18_BIT 

18 bit bus width

ST7789_RGB_BUS_WIDTH_6_BIT 

6 bit bus width

Definition at line 204 of file driver_st7789.h.

◆ st7789_rgb_if_enable_mode_t

st7789 rgb if enable mode enumeration definition

Enumerator
ST7789_RGB_IF_ENABLE_MODE_MCU 

memory mode

ST7789_RGB_IF_ENABLE_MODE_DE 

rgb de mode

ST7789_RGB_IF_ENABLE_MODE_HV 

rgb hv mode

Definition at line 244 of file driver_st7789.h.

◆ st7789_sbclk_div_t

st7789 sbclk div enumeration definition

Enumerator
ST7789_SBCLK_DIV_2 

div2

ST7789_SBCLK_DIV_3 

div3

ST7789_SBCLK_DIV_4 

div4

ST7789_SBCLK_DIV_6 

div6

Definition at line 525 of file driver_st7789.h.

◆ st7789_stp14ck_div_t

st7789 stp14ck div enumeration definition

Enumerator
ST7789_STP14CK_DIV_2 

div2

ST7789_STP14CK_DIV_3 

div3

ST7789_STP14CK_DIV_4 

div4

ST7789_STP14CK_DIV_6 

div6

Definition at line 536 of file driver_st7789.h.

◆ st7789_vds_t

st7789 vds enumeration definition

Enumerator
ST7789_VDS_2P19_V 

2.19V

ST7789_VDS_2P3_V 

2.3V

ST7789_VDS_2P4_V 

2.4V

ST7789_VDS_2P51_V 

2.51V

Definition at line 496 of file driver_st7789.h.

◆ st7789_vdv_vrh_from_t

st7789 vdv vrh from enumeration definition

Enumerator
ST7789_VDV_VRH_FROM_NVM 

from nvm

ST7789_VDV_VRH_FROM_CMD 

from command write

Definition at line 363 of file driver_st7789.h.

◆ st7789_vghs_t

st7789 vghs enumeration definition

Enumerator
ST7789_VGHS_12P20_V 

12.20V

ST7789_VGHS_12P54_V 

12.54V

ST7789_VGHS_12P89_V 

12.89V

ST7789_VGHS_13P26_V 

13.26V

ST7789_VGHS_13P65_V 

13.65V

ST7789_VGHS_14P06_V 

14.06V

ST7789_VGHS_14P50_V 

14.50V

ST7789_VGHS_14P97_V 

14.97V

Definition at line 333 of file driver_st7789.h.

◆ st7789_vgls_t

st7789 vgls enumeration definition

Enumerator
ST7789_VGLS_NEGATIVE_7P16 

-7.16V

ST7789_VGLS_NEGATIVE_7P67 

-7.67V

ST7789_VGLS_NEGATIVE_8P23 

-8.23V

ST7789_VGLS_NEGATIVE_8P87 

-8.87V

ST7789_VGLS_NEGATIVE_9P60 

-9.60V

ST7789_VGLS_NEGATIVE_10P43 

-10.43V

ST7789_VGLS_NEGATIVE_11P38 

-11.38V

ST7789_VGLS_NEGATIVE_12P50 

-12.50V

Definition at line 348 of file driver_st7789.h.

Function Documentation

◆ st7789_enable_vap_van_signal_output()

uint8_t st7789_enable_vap_van_signal_output ( st7789_handle_t * handle)

enable vap van signal output

Parameters
[in]*handlepointer to an st7789 handle structure
Returns
status code
  • 0 success
  • 1 enable vap van signal output failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2527 of file driver_st7789.c.

◆ st7789_gate_line_convert_to_data()

uint8_t st7789_gate_line_convert_to_data ( st7789_handle_t * handle,
uint8_t reg,
uint16_t * l )

convert the register raw data to the gate line

Parameters
[in]*handlepointer to an st7789 handle structure
[in]regregister raw data
[out]*lpointer to a gate line buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2856 of file driver_st7789.c.

◆ st7789_gate_line_convert_to_register()

uint8_t st7789_gate_line_convert_to_register ( st7789_handle_t * handle,
uint16_t l,
uint8_t * reg )

convert the gate line to the register raw data

Parameters
[in]*handlepointer to an st7789 handle structure
[in]lgate line
[out]*regpointer to a register raw buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2829 of file driver_st7789.c.

◆ st7789_set_cabc_control()

uint8_t st7789_set_cabc_control ( st7789_handle_t * handle,
st7789_bool_t led_on,
st7789_bool_t led_pwm_init,
st7789_bool_t led_pwm_fix,
st7789_bool_t led_pwm_polarity )

set cabc control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]led_onbool value
[in]led_pwm_initbool value
[in]led_pwm_fixbool value
[in]led_pwm_polaritybool value
Returns
status code
  • 0 success
  • 1 set cabc control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2397 of file driver_st7789.c.

◆ st7789_set_command_2_enable()

uint8_t st7789_set_command_2_enable ( st7789_handle_t * handle,
st7789_bool_t enable )

enable or disable command 2

Parameters
[in]*handlepointer to an st7789 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set command 2 enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2568 of file driver_st7789.c.

◆ st7789_set_digital_gamma()

uint8_t st7789_set_digital_gamma ( st7789_handle_t * handle,
st7789_bool_t enable )

enable or disable digital gamma

Parameters
[in]*handlepointer to an st7789 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set digital gamma failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1768 of file driver_st7789.c.

◆ st7789_set_digital_gamma_look_up_table_blue()

uint8_t st7789_set_digital_gamma_look_up_table_blue ( st7789_handle_t * handle,
uint8_t param[64] )

set blue digital gamma look up table

Parameters
[in]*handlepointer to an st7789 handle structure
[in]*parampointer to a param buffer
Returns
status code
  • 0 success
  • 1 set digital gamma look up table blue failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2726 of file driver_st7789.c.

◆ st7789_set_digital_gamma_look_up_table_red()

uint8_t st7789_set_digital_gamma_look_up_table_red ( st7789_handle_t * handle,
uint8_t param[64] )

set red digital gamma look up table

Parameters
[in]*handlepointer to an st7789 handle structure
[in]*parampointer to a param buffer
Returns
status code
  • 0 success
  • 1 set digital gamma look up table red failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2688 of file driver_st7789.c.

◆ st7789_set_equalize_time_control()

uint8_t st7789_set_equalize_time_control ( st7789_handle_t * handle,
uint8_t source_equalize_time,
uint8_t source_pre_drive_time,
uint8_t gate_equalize_time )

set equalize time control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]source_equalize_timesource equalize time
[in]source_pre_drive_timesource pre drive time
[in]gate_equalize_timegate equalize time
Returns
status code
  • 0 success
  • 1 set equalize time control failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 source_equalize_time > 0x1F
  • 5 source_pre_drive_time > 0x1F
  • 6 gate_equalize_time > 0xF
Note
0 <= source_equalize_time <= 0x1F

Definition at line 2972 of file driver_st7789.c.

◆ st7789_set_frame_rate()

uint8_t st7789_set_frame_rate ( st7789_handle_t * handle,
st7789_inversion_selection_t selection,
st7789_frame_rate_t rate )

set frame rate

Parameters
[in]*handlepointer to an st7789 handle structure
[in]selectioninversion selection
[in]rateframe rate
Returns
status code
  • 0 success
  • 1 set frame rate failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2353 of file driver_st7789.c.

◆ st7789_set_frame_rate_control()

uint8_t st7789_set_frame_rate_control ( st7789_handle_t * handle,
st7789_bool_t separate_fr_control,
st7789_frame_rate_divided_control_t div_control,
st7789_inversion_idle_mode_t idle_mode,
uint8_t idle_frame_rate,
st7789_inversion_partial_mode_t partial_mode,
uint8_t partial_frame_rate )

set frame rate control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]separate_fr_controlbool value
[in]div_controlframe rate divided control
[in]idle_modeinversion idle mode
[in]idle_frame_rateidle frame rate
[in]partial_modeinversion partial mode
[in]partial_frame_ratepartial frame rate
Returns
status code
  • 0 success
  • 1 set frame rate control failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 idle_frame_rate > 0x1F
  • 5 partial_frame_rate > 0x1F
Note
0 <= idle_frame_rate <= 0x1F 0 <= partial_frame_rate <= 0x1F

Definition at line 1549 of file driver_st7789.c.

◆ st7789_set_gate()

uint8_t st7789_set_gate ( st7789_handle_t * handle,
uint8_t gate_line_number,
uint8_t first_scan_line_number,
st7789_gate_scan_mode_t mode,
st7789_gate_scan_direction_t direction )

set gate

Parameters
[in]*handlepointer to an st7789 handle structure
[in]gate_line_numbergate line number
[in]first_scan_line_numberfirst scan line number
[in]modegate scan mode
[in]directiongate scan direction
Returns
status code
  • 0 success
  • 1 set gate failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 gate_line_number > 0x3F
  • 5 first_scan_line_number > 0x3F
Note
0 <= gate_line_number <= 0x3F 0 <= first_scan_line_number 0x3F

Definition at line 2770 of file driver_st7789.c.

◆ st7789_set_gate_control()

uint8_t st7789_set_gate_control ( st7789_handle_t * handle,
st7789_vghs_t vghs,
st7789_vgls_t vgls )

set gate control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vghsvghs level
[in]vglsvgls level
Returns
status code
  • 0 success
  • 1 set gate control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1657 of file driver_st7789.c.

◆ st7789_set_gate_on_timing_adjustment()

uint8_t st7789_set_gate_on_timing_adjustment ( st7789_handle_t * handle,
uint8_t gate_on_timing_adjustment,
uint8_t gate_off_timing_adjustment_rgb,
uint8_t gate_off_timing_adjustment )

set gate on timing adjustment

Parameters
[in]*handlepointer to an st7789 handle structure
[in]gate_on_timing_adjustmentgate on timing adjustment
[in]gate_off_timing_adjustment_rgbgate off timing adjustment in rgb interface
[in]gate_off_timing_adjustmentgate off timing adjustment
Returns
status code
  • 0 success
  • 1 set gate on timing adjustment failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
gate_on_timing_adjustment <= 0x3F gate_off_timing_adjustment_rgb <= 0xF gate_off_timing_adjustment <= 0xF

Definition at line 1702 of file driver_st7789.c.

◆ st7789_set_id_code_setting()

uint8_t st7789_set_id_code_setting ( st7789_handle_t * handle,
uint8_t id[3] )

set id code setting

Parameters
[in]*handlepointer to an st7789 handle structure
[in]*idpointer to an id buffer
Returns
status code
  • 0 success
  • 1 set id code setting failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1966 of file driver_st7789.c.

◆ st7789_set_lcm_control()

uint8_t st7789_set_lcm_control ( st7789_handle_t * handle,
st7789_bool_t xmy,
st7789_bool_t xbgr,
st7789_bool_t xinv,
st7789_bool_t xmx,
st7789_bool_t xmh,
st7789_bool_t xmv,
st7789_bool_t xgs )

set lcm control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]xmybool value
[in]xbgrbool value
[in]xinvbool value
[in]xmxbool value
[in]xmhbool value
[in]xmvbool value
[in]xgsbool value
Returns
status code
  • 0 success
  • 1 set lcm control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1917 of file driver_st7789.c.

◆ st7789_set_negative_voltage_gamma_control()

uint8_t st7789_set_negative_voltage_gamma_control ( st7789_handle_t * handle,
uint8_t param[14] )

set negative voltage gamma control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]*parampointer to a param buffer
Returns
status code
  • 0 success
  • 1 set negative voltage gamma control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2650 of file driver_st7789.c.

◆ st7789_set_nvm_setting()

uint8_t st7789_set_nvm_setting ( st7789_handle_t * handle,
uint8_t addr,
uint8_t data )

set nvm setting

Parameters
[in]*handlepointer to an st7789 handle structure
[in]addrnvm address
[in]datanvm set data
Returns
status code
  • 0 success
  • 1 set nvm setting failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3121 of file driver_st7789.c.

◆ st7789_set_partial_mode_control()

set partial mode control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]levelnon-display source output level
[in]modenon-display area scan mode
[in]frequencynon-display frame frequency
Returns
status code
  • 0 success
  • 1 set partial mode control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1612 of file driver_st7789.c.

◆ st7789_set_porch()

uint8_t st7789_set_porch ( st7789_handle_t * handle,
uint8_t back_porch_normal,
uint8_t front_porch_normal,
st7789_bool_t separate_porch_enable,
uint8_t back_porch_idle,
uint8_t front_porch_idle,
uint8_t back_porch_partial,
uint8_t front_porch_partial )

set porch

Parameters
[in]*handlepointer to an st7789 handle structure
[in]back_porch_normalback porch setting in normal mode
[in]front_porch_normalfront porch setting in normal mode
[in]separate_porch_enablebool value
[in]back_porch_idleback porch setting in idle mode
[in]front_porch_idlefront porch setting in idle mode
[in]back_porch_partialback porch setting in partial mode
[in]front_porch_partialfront porch setting in partial mode
Returns
status code
  • 0 success
  • 1 set porch failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 back_porch_normal > 0x7F
  • 5 front_porch_normal > 0x7F
  • 6 back_porch_idle > 0xF
  • 7 front_porch_idle > 0xF
  • 8 back_porch_partial > 0xF
  • 9 front_porch_partial > 0xF
Note
0x01 <= back_porch_normal <= 0x7F 0x01 <= front_porch_normal <= 0x7F 0x01 <= back_porch_idle <= 0xF 0x01 <= front_porch_idle <= 0xF 0x01 <= back_porch_partial <= 0xF 0x01 <= front_porch_partial <= 0xF

Definition at line 1453 of file driver_st7789.c.

◆ st7789_set_positive_voltage_gamma_control()

uint8_t st7789_set_positive_voltage_gamma_control ( st7789_handle_t * handle,
uint8_t param[14] )

set positive voltage gamma control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]*parampointer to a param buffer
Returns
status code
  • 0 success
  • 1 set positive voltage gamma control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2612 of file driver_st7789.c.

◆ st7789_set_power_control_1()

uint8_t st7789_set_power_control_1 ( st7789_handle_t * handle,
st7789_avdd_t avdd,
st7789_avcl_t avcl,
st7789_vds_t vds )

set power control 1

Parameters
[in]*handlepointer to an st7789 handle structure
[in]avddavdd param
[in]avclavcl param
[in]vdsvds param
Returns
status code
  • 0 success
  • 1 set power control 1 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2486 of file driver_st7789.c.

◆ st7789_set_power_control_2()

uint8_t st7789_set_power_control_2 ( st7789_handle_t * handle,
st7789_sbclk_div_t sbclk,
st7789_stp14ck_div_t stp14ck )

set power control 2

Parameters
[in]*handlepointer to an st7789 handle structure
[in]sbclksbclk div
[in]stp14ckstp14ck div
Returns
status code
  • 0 success
  • 1 set power control 2 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2926 of file driver_st7789.c.

◆ st7789_set_program_action()

uint8_t st7789_set_program_action ( st7789_handle_t * handle)

set program action

Parameters
[in]*handlepointer to an st7789 handle structure
Returns
status code
  • 0 success
  • 1 set program action failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3162 of file driver_st7789.c.

◆ st7789_set_program_mode_control()

uint8_t st7789_set_program_mode_control ( st7789_handle_t * handle)

set program mode control

Parameters
[in]*handlepointer to an st7789 handle structure
Returns
status code
  • 0 success
  • 1 set program mode control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3035 of file driver_st7789.c.

◆ st7789_set_program_mode_enable()

uint8_t st7789_set_program_mode_enable ( st7789_handle_t * handle,
st7789_bool_t enable )

enable or disable program mode

Parameters
[in]*handlepointer to an st7789 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set program mode enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 3076 of file driver_st7789.c.

◆ st7789_set_pwm_frequency()

uint8_t st7789_set_pwm_frequency ( st7789_handle_t * handle,
st7789_pwm_frequency_t frequency )

set pwm frequency

Parameters
[in]*handlepointer to an st7789 handle structure
[in]frequencypwm frequency
Returns
status code
  • 0 success
  • 1 set pwm frequency failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2443 of file driver_st7789.c.

◆ st7789_set_ram_control()

uint8_t st7789_set_ram_control ( st7789_handle_t * handle,
st7789_ram_access_t ram_mode,
st7789_display_mode_t display_mode,
st7789_frame_type_t frame_type,
st7789_data_mode_t data_mode,
st7789_rgb_bus_width_t bus_width,
st7789_pixel_type_t pixel_type )

set ram control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]ram_moderam mode
[in]display_modedisplay mode
[in]frame_typeframe type
[in]data_modedata mode
[in]bus_widthbus width
[in]pixel_typepixel type
Returns
status code
  • 0 success
  • 1 set ram control failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1313 of file driver_st7789.c.

◆ st7789_set_rgb_interface_control()

uint8_t st7789_set_rgb_interface_control ( st7789_handle_t * handle,
st7789_direct_rgb_mode_t rgb_mode,
st7789_rgb_if_enable_mode_t rgb_if_mode,
st7789_pin_level_t vspl,
st7789_pin_level_t hspl,
st7789_pin_level_t dpl,
st7789_pin_level_t epl,
uint8_t vbp,
uint8_t hbp )

set rgb interface control

Parameters
[in]*handlepointer to an st7789 handle structure
[in]rgb_modergb mode
[in]rgb_if_modergb if enable mode
[in]vsplvspl active level
[in]hsplhspl active level
[in]dpldpl active level
[in]eplepl active level
[in]vbprgb interface vsync back porch setting
[in]hbprgb interface hsync back porch setting
Returns
status code
  • 0 success
  • 1 set rgb interface control failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 vbp > 0x7F
  • 5 hbp > 0x1F
Note
0x02 <= vbp <= 0x7F 0x02 <= hbp <= 0x1F

Definition at line 1372 of file driver_st7789.c.

◆ st7789_set_spi2_enable()

uint8_t st7789_set_spi2_enable ( st7789_handle_t * handle,
st7789_bool_t date_lane,
st7789_bool_t command_table_2 )

set spi2 enable

Parameters
[in]*handlepointer to an st7789 handle structure
[in]date_lanebool value
[in]command_table_2bool value
Returns
status code
  • 0 success
  • 1 set spi2 enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2884 of file driver_st7789.c.

◆ st7789_set_vcoms()

uint8_t st7789_set_vcoms ( st7789_handle_t * handle,
uint8_t vcoms )

set vcoms

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vcomsset vcoms
Returns
status code
  • 0 success
  • 1 set vcoms failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 vcoms > 0x3F
Note
0 <= vcoms <= 0x3F

Definition at line 1810 of file driver_st7789.c.

◆ st7789_set_vcoms_offset()

uint8_t st7789_set_vcoms_offset ( st7789_handle_t * handle,
uint8_t offset )

set vcoms offset

Parameters
[in]*handlepointer to an st7789 handle structure
[in]offsetvcoms offset
Returns
status code
  • 0 success
  • 1 set vcoms offset failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 offset > 0x3F
Note
0 <= offset <= 0x3F

Definition at line 2251 of file driver_st7789.c.

◆ st7789_set_vdv()

uint8_t st7789_set_vdv ( st7789_handle_t * handle,
uint8_t vdv )

set vdv

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vdvset vdv
Returns
status code
  • 0 success
  • 1 set vdv failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 vdv > 0x3F
Note
0 <= vdv <= 0x3F

Definition at line 2149 of file driver_st7789.c.

◆ st7789_set_vdv_vrh_from()

uint8_t st7789_set_vdv_vrh_from ( st7789_handle_t * handle,
st7789_vdv_vrh_from_t from )

set vdv vrh from

Parameters
[in]*handlepointer to an st7789 handle structure
[in]fromvdv and vrh from
Returns
status code
  • 0 success
  • 1 set vdv vrh from failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2004 of file driver_st7789.c.

◆ st7789_set_vrhs()

uint8_t st7789_set_vrhs ( st7789_handle_t * handle,
uint8_t vrhs )

set vrhs

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vrhsset vrhs
Returns
status code
  • 0 success
  • 1 set vrhs failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 vrhs > 0x27
Note
0 <= vrhs <= 0x27

Definition at line 2047 of file driver_st7789.c.

◆ st7789_vcom_convert_to_data()

uint8_t st7789_vcom_convert_to_data ( st7789_handle_t * handle,
uint8_t reg,
float * v )

convert the register raw data to the vcom

Parameters
[in]*handlepointer to an st7789 handle structure
[in]regregister raw data
[out]*vpointer to a vcom buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1884 of file driver_st7789.c.

◆ st7789_vcom_convert_to_register()

uint8_t st7789_vcom_convert_to_register ( st7789_handle_t * handle,
float v,
uint8_t * reg )

convert the vcom to the register raw data

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vvcom
[out]*regpointer to a register raw buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1857 of file driver_st7789.c.

◆ st7789_vcoms_offset_convert_to_data()

uint8_t st7789_vcoms_offset_convert_to_data ( st7789_handle_t * handle,
uint8_t reg,
float * v )

convert the register raw data to the vcoms offset

Parameters
[in]*handlepointer to an st7789 handle structure
[in]regregister raw data
[out]*vpointer to a vcoms offset buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2325 of file driver_st7789.c.

◆ st7789_vcoms_offset_convert_to_register()

uint8_t st7789_vcoms_offset_convert_to_register ( st7789_handle_t * handle,
float v,
uint8_t * reg )

convert the vcoms offset to the register raw data

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vvcoms offset
[out]*regpointer to a register raw buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2298 of file driver_st7789.c.

◆ st7789_vdv_convert_to_data()

uint8_t st7789_vdv_convert_to_data ( st7789_handle_t * handle,
uint8_t reg,
float * v )

convert the register raw data to the vdv

Parameters
[in]*handlepointer to an st7789 handle structure
[in]regregister raw data
[out]*vpointer to a vcom buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2223 of file driver_st7789.c.

◆ st7789_vdv_convert_to_register()

uint8_t st7789_vdv_convert_to_register ( st7789_handle_t * handle,
float v,
uint8_t * reg )

convert the vdv to the register raw data

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vvcom
[out]*regpointer to a register raw buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2196 of file driver_st7789.c.

◆ st7789_vrhs_convert_to_data()

uint8_t st7789_vrhs_convert_to_data ( st7789_handle_t * handle,
uint8_t reg,
float * v )

convert the register raw data to the vrhs

Parameters
[in]*handlepointer to an st7789 handle structure
[in]regregister raw data
[out]*vpointer to a vcom buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2121 of file driver_st7789.c.

◆ st7789_vrhs_convert_to_register()

uint8_t st7789_vrhs_convert_to_register ( st7789_handle_t * handle,
float v,
uint8_t * reg )

convert the vrhs to the register raw data

Parameters
[in]*handlepointer to an st7789 handle structure
[in]vvcom
[out]*regpointer to a register raw buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2094 of file driver_st7789.c.