no-OS
spi_extra.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef SPI_EXTRA_H
41 # define SPI_EXTRA_H
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include "spi.h"
48 #include <drivers/spi/adi_spi.h>
49 
50 /******************************************************************************/
51 /*************************** Types Declarations *******************************/
52 /******************************************************************************/
53 
63 };
64 
71  uint8_t buffer[ADI_SPI_MEMORY_SIZE];
73  ADI_SPI_HANDLE spi_handle;
75  uint32_t ref_instances;
77  uint32_t bitrate;
79  uint8_t cs;
81  enum spi_mode mode;
86 };
87 
104  bool dma;
105 };
106 
110 extern const struct spi_platform_ops aducm_spi_ops;
111 
122 };
123 
124 #endif // SPI_EXTRA_H_
spi_mode
spi_mode
SPI configuration for clock phase and polarity.
Definition: spi.h:64
aducm_device_desc::master_mode
enum master_mode master_mode
Definition: spi_extra.h:83
master_mode
master_mode
Available operations mode for a SPI channel.
Definition: spi_extra.h:58
aducm_device_desc::cs
uint8_t cs
Definition: spi_extra.h:79
aducm_spi_init_param::continuous_mode
bool continuous_mode
Definition: spi_extra.h:97
spi.h
Header file of SPI Interface.
aducm_device_desc::buffer
uint8_t buffer[ADI_SPI_MEMORY_SIZE]
Definition: spi_extra.h:71
spi_platform_ops
Structure holding SPI function pointers that point to the platform specific function.
Definition: spi.h:153
aducm_spi_desc
SPI specific descriptor for the ADuCM3029. The structure is available in the extra parameter from spi...
Definition: spi_extra.h:117
aducm_spi_init_param
Configuration structure sent in the extra parameter from spi_init_param.
Definition: spi_extra.h:93
aducm_device_desc::spi_handle
ADI_SPI_HANDLE spi_handle
Definition: spi_extra.h:73
aducm_spi_desc::dev
struct aducm_device_desc * dev
Definition: spi_extra.h:121
MASTER
@ MASTER
Definition: spi_extra.h:62
aducm_device_desc::bitrate
uint32_t bitrate
Definition: spi_extra.h:77
aducm_spi_init_param::dma
bool dma
Definition: spi_extra.h:104
aducm_spi_init_param::master_mode
enum master_mode master_mode
Definition: spi_extra.h:95
aducm_spi_init_param::half_duplex
bool half_duplex
Definition: spi_extra.h:99
aducm_device_desc::ref_instances
uint32_t ref_instances
Definition: spi_extra.h:75
aducm_device_desc
Structure describing the physical SPI devices.
Definition: spi_extra.h:69
aducm_device_desc::mode
enum spi_mode mode
Definition: spi_extra.h:81
SLAVE
@ SLAVE
Definition: spi_extra.h:60
aducm_spi_desc::aducm_conf
struct aducm_spi_init_param aducm_conf
Definition: spi_extra.h:119
aducm_spi_ops
const struct spi_platform_ops aducm_spi_ops
ADuCM3029 specific SPI platform ops structure.
Definition: aducm3029_spi.c:285
aducm_device_desc::continuous_mode
bool continuous_mode
Definition: spi_extra.h:85