28 #define LWSBBSPI_FLAG_USE_NCMD3 (1 << 7)
29 #define LWSBBSPI_FLAG_USE_NCMD2 (1 << 6)
30 #define LWSBBSPI_FLAG_USE_NCMD1 (1 << 5)
31 #define LWSBBSPI_FLAG_USE_NCMD0 (1 << 4)
32 #define LWSBBSPI_FLAG_USE_NCS3 (1 << 3)
33 #define LWSBBSPI_FLAG_USE_NCS2 (1 << 2)
34 #define LWSBBSPI_FLAG_USE_NCS1 (1 << 1)
35 #define LWSBBSPI_FLAG_USE_NCS0 (1 << 0)
37 #define LWS_SPI_BB_MAX_CH 4
56 #define lws_bb_spi_ops \
57 .init = lws_bb_spi_init, \
58 .queue = lws_bb_spi_queue
_lws_plat_gpio_t ncmd[LWS_SPI_BB_MAX_CH]
struct lws_bb_spi lws_bb_spi_t
int lws_bb_spi_queue(const lws_spi_ops_t *octx, const lws_spi_desc_t *desc)
_lws_plat_gpio_t ncs[LWS_SPI_BB_MAX_CH]
const lws_gpio_ops_t * gpio
int lws_bb_spi_init(const lws_spi_ops_t *octx)
#define LWS_SPI_BB_MAX_CH