跳转至

CFBD_OLEDOperations

Virtual operation table implementing OLED driver functionality. More...

#include <oled.h>

Detailed Description

struct CFBD_OLEDOperations;

Virtual operation table implementing OLED driver functionality.

Note: All function pointers must be non-NULL unless explicitly stated otherwise. Device implementations should handle edge cases (out-of-bounds coordinates) gracefully by clipping or returning error codes.

Concrete device drivers populate an instance of this table and assign it to the ops member of a CFBD_OLED object. This structure defines the complete interface for display operations, lifecycle management, and device queries. Callers should only invoke functions through this table after device initialization.

The operation table enables:

  • Device initialization and lifecycle (init, open, close)
  • Pixel and area rendering (setPixel, setArea)
  • Frame operations (update, clear, revert)
  • Rectangular area operations (update_area, clear_area, revert_area)
  • Device capability queries (self_consult)

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