// SPDX-License-Identifier: Apache-2.0 #pragma once #include #include #include #ifdef __cplusplus extern "C" { #endif struct Esp32SpiConfig { spi_host_device_t host; /** Clock pin */ struct GpioPinSpec pin_sclk; /** Data 0 pin */ struct GpioPinSpec pin_mosi; /** Data 1 pin */ struct GpioPinSpec pin_miso; /** Data 2 pin */ struct GpioPinSpec pin_wp; /** Data 3 pin */ struct GpioPinSpec pin_hd; /** Data transfer size limit in bytes. 0 means the platform decides the limit. */ int max_transfer_size; }; #ifdef __cplusplus } #endif