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

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

#include <spi.h>

Public Attributes

int32_t(* init )(struct spi_desc **, const struct spi_init_param *)
 
int32_t(* write_and_read )(struct spi_desc *, uint8_t *, uint16_t)
 
int32_t(* transfer )(struct spi_desc *, struct spi_msg *, uint32_t)
 
int32_t(* remove )(struct spi_desc *)
 

Detailed Description

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

Member Data Documentation

◆ init

int32_t(* spi_platform_ops::init) (struct spi_desc **, const struct spi_init_param *)

SPI initialization function pointer

◆ remove

int32_t(* spi_platform_ops::remove) (struct spi_desc *)

SPI remove function pointer

◆ transfer

int32_t(* spi_platform_ops::transfer) (struct spi_desc *, struct spi_msg *, uint32_t)

Iterate over the spi_msg array and send all messages at once

◆ write_and_read

int32_t(* spi_platform_ops::write_and_read) (struct spi_desc *, uint8_t *, uint16_t)

SPI write/read function pointer


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