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(* remove )(struct no_os_spi_desc *)
 

Detailed Description

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

Member Data Documentation

◆ 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: