no-OS
Public Attributes | List of all members
no_os_spi_platform_ops Struct Reference

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 *)
 

Detailed Description

Structure holding SPI function pointers that point to the platform specific function.

Member Data Documentation

◆ dma_transfer_async

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.

◆ dma_transfer_sync

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.

◆ init

int32_t(* no_os_spi_platform_ops::init) (struct no_os_spi_desc **, const struct no_os_spi_init_param *)

SPI initialization function pointer

◆ remove

int32_t(* no_os_spi_platform_ops::remove) (struct no_os_spi_desc *)

SPI remove function pointer

◆ transfer

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

◆ write_and_read

int32_t(* no_os_spi_platform_ops::write_and_read) (struct no_os_spi_desc *, uint8_t *, uint16_t)

SPI write/read function pointer


The documentation for this struct was generated from the following file: