// SPDX-License-Identifier: Apache-2.0 #pragma once #ifdef __cplusplus extern "C" { #endif #include #include /** * The struct field order matches the binding's property order and must stay in sync with it: * the devicetree compiler emits struct initializers in binding order, not declaration order. */ struct Ssd16xxConfig { struct GpioPinSpec pin_dc; struct GpioPinSpec pin_reset; struct GpioPinSpec pin_busy; struct GpioPinSpec pin_cs; /** SPI clock frequency in Hz */ int clock_speed_hz; /** Panel name, see the binding's panel-type */ const char* panel_type; /** Display rotation, 0 = 0 degrees, 1 = 90, 2 = 180, 3 = 270 degrees counter-clockwise */ uint8_t rotation; }; #ifdef __cplusplus } #endif