Full configuration structure for initializing an SSD1309 display handle.
More...
#include <ssd1309.h>
Full configuration structure for initializing an SSD1309 display handle.
Passed to ssd1309_init_handle. Use ssd1309_get_def_cfg to obtain a sensible default configuration and then override specific fields as needed.
Fields are grouped by addressing mode relevance:
Definition at line 1046 of file ssd1309.h.
◆ i2c_instance
Pointer to the I2C peripheral instance connected to the display.
Definition at line 1048 of file ssd1309.h.
◆ scl_gpio_port
GPIO port of the I2C SCL pin.
Definition at line 1051 of file ssd1309.h.
◆ scl_gpio_pin
GPIO pin number of the I2C SCL pin.
Definition at line 1054 of file ssd1309.h.
◆ sda_gpio_port
GPIO port of the I2C SDA pin.
Definition at line 1057 of file ssd1309.h.
◆ sda_gpio_pin
GPIO pin number of the I2C SDA pin.
Definition at line 1060 of file ssd1309.h.
◆ gpio_alternate_function
Alternate function mapping for both SCL and SDA GPIO pins.
Definition at line 1063 of file ssd1309.h.
◆ low_col_start_addr_pam
Lower nibble of the column start address (PAM only).
Definition at line 1066 of file ssd1309.h.
◆ high_col_start_addr_pam
Upper nibble of the column start address (PAM only).
Definition at line 1069 of file ssd1309.h.
◆ mem_addr_mode
Memory addressing mode: HAM, VAM, or PAM.
Definition at line 1072 of file ssd1309.h.
◆ col_addr_start_ham_vam
Column start address for RAM scanning (HAM and VAM only).
Definition at line 1075 of file ssd1309.h.
◆ col_addr_end_ham_vam
Column end address for RAM scanning (HAM and VAM only).
Definition at line 1078 of file ssd1309.h.
◆ page_addr_start_ham_vam
Page start address for RAM scanning (HAM and VAM only).
Definition at line 1081 of file ssd1309.h.
◆ page_addr_end_ham_vam
Page end address for RAM scanning (HAM and VAM only).
Definition at line 1084 of file ssd1309.h.
◆ start_line
RAM row that maps to the top of the display.
Definition at line 1087 of file ssd1309.h.
◆ contrast
Display brightness (current control level, 0–255).
Definition at line 1090 of file ssd1309.h.
◆ horizontal_flip
Horizontal segment re-map (left/right flip).
Definition at line 1093 of file ssd1309.h.
◆ inverse_mode
Inverse video mode (swap on/off pixel polarity).
Definition at line 1096 of file ssd1309.h.
◆ multiplex_ratio
Number of active COM lines (display height in rows).
Definition at line 1099 of file ssd1309.h.
◆ page_start_addr_pam
Page start address for the first displayed page (PAM only).
Definition at line 1102 of file ssd1309.h.
◆ vertical_flip
COM output scan direction (top/bottom flip).
Definition at line 1105 of file ssd1309.h.
◆ offset
COM pin vertical shift (maps RAM row 0 to a different COM output).
Definition at line 1108 of file ssd1309.h.
◆ clk_div_ratio
Display clock divide ratio.
Definition at line 1111 of file ssd1309.h.
◆ clk_speed_lvl
Display oscillator frequency level.
Definition at line 1114 of file ssd1309.h.
◆ phase1_precharge_dclk
Phase 1 (discharge) duration of the pixel drive waveform in DCLKs.
Definition at line 1117 of file ssd1309.h.
◆ phase2_precharge_dclk
Phase 2 (charge) duration of the pixel drive waveform in DCLKs.
Definition at line 1120 of file ssd1309.h.
◆ vcomh_deselect_lvl
VCOMH deselect voltage level relative to Vcc.
Definition at line 1123 of file ssd1309.h.
The documentation for this struct was generated from the following file: