跳转至

lib/oled/driver/device/device_interface.h

Generic device descriptor used by OLED drivers. More...

Classes

Name
struct CFBD_OLED_DeviceSpecific
Device-specific configuration for an OLED panel.

Detailed Description

Generic device descriptor used by OLED drivers.

See: CFBD_OLED_DeviceSpecificfor the main interface structure.

This module encapsulates device-specific information required by the generic OLED driver, including pointers to initialization tables, GRAM buffers and logical geometry. Concrete device drivers (e.g. SSD1306/SSD1309) provide instances of this structure.

Source code

#pragma once
#include <stdint.h>

#include "configs/iic_pack_type.h"

typedef struct
{
    uint8_t* (*init_session_tables)(void);

    uint8_t** grams;

    uint16_t init_session_tables_sz;

    uint8_t data_prefix;

    uint8_t cmd_prefix;

    uint16_t logic_width;

    uint16_t logic_height;

    const char* iic_pack_type;

    void* private_data;
} CFBD_OLED_DeviceSpecific;

 // end of OLED_Device group

Updated on 2026-02-03 at 13:21:55 +0000