no-OS
|
Structure holding SPI function pointers that point to the platform specific function. More...
#include <no_os_spi.h>
Public Attributes | |
int32_t(* | init )(struct no_os_spi_desc **, const struct no_os_spi_init_param *) |
int32_t(* | write_and_read )(struct no_os_spi_desc *, uint8_t *, uint16_t) |
int32_t(* | transfer )(struct no_os_spi_desc *, struct no_os_spi_msg *, uint32_t) |
int32_t(* | dma_transfer_sync )(struct no_os_spi_desc *, struct no_os_spi_msg *, uint32_t) |
int32_t(* | dma_transfer_async )(struct no_os_spi_desc *, struct no_os_spi_msg *, uint32_t, void(*)(void *), void *) |
int32_t(* | remove )(struct no_os_spi_desc *) |
Structure holding SPI function pointers that point to the platform specific function.
int32_t(* no_os_spi_platform_ops::dma_transfer_async) (struct no_os_spi_desc *, struct no_os_spi_msg *, uint32_t, void(*)(void *), void *) |
Iterate over the spi_msg array and send all messages using DMA. Returns immediately after the transfer is started and invokes a callback once all the messages have been transfered.
int32_t(* no_os_spi_platform_ops::dma_transfer_sync) (struct no_os_spi_desc *, struct no_os_spi_msg *, uint32_t) |
Iterate over the spi_msg array and send all messages using DMA. Blocks until the transfer is completed.
int32_t(* no_os_spi_platform_ops::init) (struct no_os_spi_desc **, const struct no_os_spi_init_param *) |
SPI initialization function pointer
int32_t(* no_os_spi_platform_ops::remove) (struct no_os_spi_desc *) |
SPI remove function pointer
int32_t(* no_os_spi_platform_ops::transfer) (struct no_os_spi_desc *, struct no_os_spi_msg *, uint32_t) |
Iterate over the spi_msg array and send all messages at once
int32_t(* no_os_spi_platform_ops::write_and_read) (struct no_os_spi_desc *, uint8_t *, uint16_t) |
SPI write/read function pointer