Lines Matching refs:SpiDevice
23 struct SpiDevice { struct
29 int (*masterStartSync)(struct SpiDevice *dev, spi_cs_t cs, argument
31 int (*masterStartAsync)(struct SpiDevice *dev, spi_cs_t cs,
34 int (*masterRxTx)(struct SpiDevice *dev, void *rxBuf, const void *txBuf,
37 int (*masterStopSync)(struct SpiDevice *dev);
38 int (*masterStopAsync)(struct SpiDevice *dev);
40 int (*slaveStartSync)(struct SpiDevice *dev, const struct SpiMode *mode);
41 int (*slaveStartAsync)(struct SpiDevice *dev, const struct SpiMode *mode);
43 int (*slaveIdle)(struct SpiDevice *dev, const struct SpiMode *mode);
44 int (*slaveRxTx)(struct SpiDevice *dev, void *rxBuf, const void *txBuf,
47 void (*slaveSetCsInterrupt)(struct SpiDevice *dev, bool enabled);
48 bool (*slaveCsIsActive)(struct SpiDevice *dev);
50 int (*slaveStopSync)(struct SpiDevice *dev);
51 int (*slaveStopAsync)(struct SpiDevice *dev);
53 int (*release)(struct SpiDevice *dev);
56 int spiRequest(struct SpiDevice *dev, uint8_t busId);
58 void spi_masterStartAsync_done(struct SpiDevice *dev, int err);
59 void spiMasterRxTxDone(struct SpiDevice *dev, int err);
60 void spiMasterStopAsyncDone(struct SpiDevice *dev, int err);
62 void spiSlaveStartAsyncDone(struct SpiDevice *dev, int err);
63 void spiSlaveRxTxDone(struct SpiDevice *dev, int err);
64 void spiSlaveCsInactive(struct SpiDevice *dev);
65 void spiSlaveStopAsyncDone(struct SpiDevice *dev, int err);