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 
48 extern const struct no_os_spi_platform_ops max_spi_ops;
49 
53 };
54 
56  uint32_t numSlaves;
58 };
59 
60 #endif
no_os_spi_desc::device_id
uint32_t device_id
Definition: no_os_spi.h:145
no_os_spi_init_param::bit_order
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:131
maxim_spi.h
maxim specific header for SPI driver
no_os_spi.h
Header file of SPI Interface.
SPI_MASTER_MODE
#define SPI_MASTER_MODE
Definition: maxim_spi.c:53
SPI_MASTER_MODE
#define SPI_MASTER_MODE
Definition: maxim_spi.c:53
SPI_MASTER_MODE
#define SPI_MASTER_MODE
Definition: maxim_spi.c:53
SPI_MASTER_MODE
#define SPI_MASTER_MODE
Definition: maxim_spi.c:53
SPI_SINGLE_MODE
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:54
SPI_SINGLE_MODE
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:54
no_os_spi_msg
Definition: no_os_spi.h:90
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:51
no_os_spi_init_param::mode
enum no_os_spi_mode mode
Definition: no_os_spi.h:129
SPI_SS_POL_HIGH
@ SPI_SS_POL_HIGH
Definition: maxim_spi.h:52
max_spi_init
int32_t max_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: maxim_spi.c:201
SPI_MASTER_MODE
#define SPI_MASTER_MODE
Definition: maxim_spi.c:53
SPI_MASTER_MODE
#define SPI_MASTER_MODE
Definition: maxim_spi.c:53
no_os_spi_msg::tx_buff
uint8_t * tx_buff
Definition: no_os_spi.h:92
no_os_spi_init_param::device_id
uint32_t device_id
Definition: no_os_spi.h:123
SPI_SINGLE_MODE
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:54
maxim_spi.h
maxim specific header for SPI driver
no_os_spi_init_param::chip_select
uint8_t chip_select
Definition: no_os_spi.h:127
no_os_spi_desc::chip_select
uint8_t chip_select
Definition: no_os_spi.h:149
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:55
no_os_spi_msg::rx_buff
uint8_t * rx_buff
Definition: no_os_spi.h:94
no_os_spi_msg::cs_change
uint8_t cs_change
Definition: no_os_spi.h:98
maxim_spi.h
maxim specific header for SPI driver
max_spi_ops
const struct no_os_spi_platform_ops max_spi_ops
maxim platform specific SPI platform ops structure
Definition: maxim_spi.c:335
no_os_spi_desc::bit_order
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:153
no_os_spi_desc
Structure holding SPI descriptor.
Definition: no_os_spi.h:143
max_spi_init_param::polarity
enum spi_ss_polarity polarity
Definition: maxim_spi.h:57
SPI_SINGLE_MODE
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:54
SPI_SINGLE_MODE
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:54
no_os_spi_msg::bytes_number
uint32_t bytes_number
Definition: no_os_spi.h:96
SPI_SINGLE_MODE
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:54
no_os_spi_desc::extra
void * extra
Definition: no_os_spi.h:156
no_os_spi_init_param::max_speed_hz
uint32_t max_speed_hz
Definition: no_os_spi.h:125
maxim_spi.h
maxim specific header for SPI driver
spi_ss_polarity
spi_ss_polarity
Definition: maxim_spi.h:50
max_spi_write_and_read
int32_t max_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: maxim_spi.c:318
maxim_spi.h
maxim specific header for SPI driver
max_spi_transfer
int32_t max_spi_transfer(struct no_os_spi_desc *desc, struct no_os_spi_msg *msgs, uint32_t len)
Write/read multiple messages to/from SPI.
Definition: maxim_spi.c:268
max_spi_ops
const struct no_os_spi_platform_ops max_spi_ops
maxim specific SPI platform ops structure
Definition: maxim_spi.c:335
no_os_spi_desc::platform_ops
const struct no_os_spi_platform_ops * platform_ops
Definition: no_os_spi.h:154
true
@ true
Definition: ad5446.h:65
no_os_spi_desc::max_speed_hz
uint32_t max_speed_hz
Definition: no_os_spi.h:147
no_os_util.h
Header file of utility functions.
no_os_spi_platform_ops::init
int32_t(* init)(struct no_os_spi_desc **, const struct no_os_spi_init_param *)
Definition: no_os_spi.h:168
no_os_spi_init_param::extra
void * extra
Definition: no_os_spi.h:134
max_spi_init_param::numSlaves
uint32_t numSlaves
Definition: maxim_spi.h:56
no_os_spi_desc::mode
enum no_os_spi_mode mode
Definition: no_os_spi.h:151
maxim_spi.h
maxim specific header for SPI driver
errno.h
Error macro definition for ARM Compiler.
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:121
max_spi_remove
int32_t max_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: maxim_spi.c:250