no-OS
maxim_spi.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef MAXIM_SPI_H_
35 #define MAXIM_SPI_H_
36 
37 #include <stdint.h>
38 #include "max32655.h"
39 #include "gpio.h"
40 #include "no_os_spi.h"
41 #include "no_os_dma.h"
42 
46 extern const struct no_os_spi_platform_ops max_spi_ops;
47 
51 };
52 
53 struct max_spi_init_param {
54  uint32_t num_slaves;
56  mxc_gpio_vssel_t vssel;
58  uint32_t dma_rx_priority;
59  uint32_t dma_tx_priority;
60 };
61 
62 struct max_spi_state {
64  uint32_t cs_delay_first;
65  uint32_t cs_delay_last;
66  struct no_os_dma_desc *dma;
67  uint32_t dma_req_rx;
68  uint32_t dma_req_tx;
69 };
70 
71 #endif
max_spi_state::dma
struct no_os_dma_desc * dma
Definition: maxim_spi.h:66
max_spi_state
Definition: maxim_spi.h:62
max_spi_state::cs_delay_last
uint32_t cs_delay_last
Definition: maxim_spi.h:65
no_os_spi.h
Header file of SPI Interface.
no_os_dma_init_param
Initialization parameter for the DMA controller.
Definition: no_os_dma.h:171
max_spi_state::dma_req_tx
uint32_t dma_req_tx
Definition: maxim_spi.h:68
no_os_spi_platform_ops
Structure holding SPI function pointers that point to the platform specific function.
Definition: no_os_spi.h:222
SPI_SS_POL_LOW
@ SPI_SS_POL_LOW
Definition: maxim_spi.h:49
SPI_SS_POL_HIGH
@ SPI_SS_POL_HIGH
Definition: maxim_spi.h:50
max_spi_init_param::dma_param
struct no_os_dma_init_param * dma_param
Definition: maxim_spi.h:57
max_spi_state::init_param
struct max_spi_init_param * init_param
Definition: maxim_spi.h:63
max_spi_init_param::dma_rx_priority
uint32_t dma_rx_priority
Definition: maxim_spi.h:58
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:53
max_spi_init_param::polarity
enum spi_ss_polarity polarity
Definition: maxim_spi.h:55
max_spi_init_param::num_slaves
uint32_t num_slaves
Definition: maxim_spi.h:54
spi_ss_polarity
spi_ss_polarity
Definition: maxim_spi.h:48
max_spi_ops
const struct no_os_spi_platform_ops max_spi_ops
maxim specific SPI platform ops structure
Definition: maxim_spi.c:795
max_spi_init_param::vssel
mxc_gpio_vssel_t vssel
Definition: maxim_spi.h:56
max_spi_init_param::dma_tx_priority
uint32_t dma_tx_priority
Definition: maxim_spi.h:59
max_spi_state::cs_delay_first
uint32_t cs_delay_first
Definition: maxim_spi.h:64
max_spi_state::dma_req_rx
uint32_t dma_req_rx
Definition: maxim_spi.h:67
no_os_dma.h
Platform independent function definitions and data types for the DMA API.
no_os_dma_desc
Describes the state of the DMA controller.
Definition: no_os_dma.h:136