31 #if !defined(__LWS_SPI_H__)
37 typedef int (*lws_spi_cb_t)(
void *opaque);
40 LWSSPIMODE_CPOL = (1 << 0),
41 LWSSPIMODE_CPHA = (1 << 1),
43 LWS_SPI_BUSMODE_CLK_IDLE_LOW_SAMP_RISING = 0,
44 LWS_SPI_BUSMODE_CLK_IDLE_HIGH_SAMP_RISING = LWSSPIMODE_CPOL,
45 LWS_SPI_BUSMODE_CLK_IDLE_LOW_SAMP_FALLING = LWSSPIMODE_CPHA,
46 LWS_SPI_BUSMODE_CLK_IDLE_HIGH_SAMP_FALLING = LWSSPIMODE_CPHA |
49 LWS_SPI_TXN_HALF_DUPLEX_DISCRETE = 0,
59 lws_spi_cb_t completion_cb;