no-OS
maxim_spi.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef MAXIM_SPI_H_
41 #define MAXIM_SPI_H_
42 
43 #include <stdint.h>
44 #include "max32660.h"
45 
49 extern const struct no_os_spi_platform_ops max_spi_ops;
50 
54 };
55 
56 struct max_spi_init_param {
57  uint32_t numSlaves;
59  mxc_gpio_vssel_t vssel;
60 };
61 
62 struct max_spi_state {
64  uint32_t cs_delay_first;
65  uint32_t cs_delay_last;
66 };
67 
68 #endif
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_platform_ops
Structure holding SPI function pointers that point to the platform specific function.
Definition: no_os_spi.h:166
SPI_SS_POL_LOW
@ SPI_SS_POL_LOW
Definition: maxim_spi.h:52
SPI_SS_POL_HIGH
@ SPI_SS_POL_HIGH
Definition: maxim_spi.h:53
max_spi_state::init_param
struct max_spi_init_param * init_param
Definition: maxim_spi.h:63
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:56
max_spi_init_param::polarity
enum spi_ss_polarity polarity
Definition: maxim_spi.h:58
spi_ss_polarity
spi_ss_polarity
Definition: maxim_spi.h:51
max_spi_ops
const struct no_os_spi_platform_ops max_spi_ops
maxim specific SPI platform ops structure
Definition: maxim_spi.c:435
max_spi_init_param::vssel
mxc_gpio_vssel_t vssel
Definition: maxim_spi.h:59
max_spi_init_param::numSlaves
uint32_t numSlaves
Definition: maxim_spi.h:57
max_spi_state::cs_delay_first
uint32_t cs_delay_first
Definition: maxim_spi.h:64