uint32_t irq_priority
Definition: no_os_dma.h:91
struct no_os_dma_desc * dma
Definition: maxim_spi.h:66
struct no_os_dma_ch * rx_ch
Definition: maxim_spi.c:64
#define MAX_DELAY_SCLK
Definition: maxim_spi.c:55
uint32_t device_id
Definition: no_os_spi.h:196
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:150
Definition: maxim_spi.h:62
int no_os_dma_acquire_channel(struct no_os_dma_desc *, struct no_os_dma_ch **)
Get a free DMA channel.
Definition: no_os_dma.c:184
#define MAX_DELAY_SCLK
Definition: maxim_spi.c:55
#define MAX_DELAY_SCLK
Definition: maxim_spi.c:55
maxim specific header for SPI driver
#define SPI_MASTER_MODE
Definition: maxim_spi.c:48
Header file of SPI Interface.
uint32_t cs_delay_last
Definition: maxim_spi.h:65
Initialization parameter for the DMA controller.
Definition: no_os_dma.h:171
#define SPI_MASTER_MODE
Definition: maxim_spi.c:52
#define SPI_MASTER_MODE
Definition: maxim_spi.c:52
#define SPI_MASTER_MODE
Definition: maxim_spi.c:47
#define SPI_MASTER_MODE
Definition: maxim_spi.c:52
uint32_t dma_req_tx
Definition: maxim_spi.h:68
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:53
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:53
Definition: no_os_spi.h:100
@ SPI_SS_POL_LOW
Definition: maxim_spi.h:49
Header file of Delay functions.
@ DEV_TO_MEM
Definition: no_os_dma.h:52
uint32_t cs_delay_last
Definition: no_os_spi.h:117
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
bool no_os_dma_in_progress(struct no_os_dma_desc *, struct no_os_dma_ch *)
Whether or not there is a transfer in progress on a specific channel.
Definition: no_os_dma.c:434
@ SPI_SS_POL_HIGH
Definition: maxim_spi.h:50
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:380
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define SPI_MASTER_MODE
Definition: maxim_spi.c:52
#define SPI_MASTER_MODE
Definition: maxim_spi.c:52
maxim specific header for SPI driver
int no_os_dma_config_xfer(struct no_os_dma_desc *, struct no_os_dma_xfer_desc *, uint32_t, struct no_os_dma_ch *)
Acquire a channel and configure the list of transfers.
Definition: no_os_dma.c:242
struct no_os_dma_init_param * dma_param
Definition: maxim_spi.h:57
uint8_t * tx_buff
Definition: no_os_spi.h:102
uint32_t device_id
Definition: no_os_spi.h:142
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:53
maxim specific header for SPI driver
struct max_spi_init_param * init_param
Definition: maxim_spi.h:63
uint32_t dma_rx_priority
Definition: maxim_spi.h:58
uint8_t chip_select
Definition: no_os_spi.h:146
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
uint8_t chip_select
Definition: no_os_spi.h:200
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
struct no_os_spi_desc * spi
Definition: maxim_spi.c:62
struct no_os_dma_ch * tx_ch
Definition: maxim_spi.c:63
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:53
struct no_os_dma_xfer_desc * first_xfer_tx
Definition: maxim_spi.c:67
struct no_os_dma_xfer_desc * first_xfer_rx
Definition: maxim_spi.c:68
Describes the state of a DMA channel.
Definition: no_os_dma.h:107
uint8_t * rx_buff
Definition: no_os_spi.h:104
uint32_t cs_delay_first
Definition: no_os_spi.h:115
uint8_t * dst
Definition: no_os_dma.h:75
uint8_t cs_change
Definition: no_os_spi.h:108
void(* cb)(void *)
Definition: maxim_spi.c:71
maxim specific header for SPI driver
const struct no_os_spi_platform_ops max_spi_ops
maxim platform specific SPI platform ops structure
Definition: maxim_spi.c:795
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:204
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
It's used to setup a generic DMA transfer.
Definition: no_os_dma.h:71
enum spi_ss_polarity polarity
Definition: maxim_spi.h:55
int no_os_dma_init(struct no_os_dma_desc **, struct no_os_dma_init_param *)
Initialize the DMA controller.
Definition: no_os_dma.c:90
int no_os_dma_xfer_start(struct no_os_dma_desc *, struct no_os_dma_ch *)
Acquire a channel and configure the list of transfers.
Definition: no_os_dma.c:356
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:49
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:48
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:53
uint32_t bytes_number
Definition: no_os_spi.h:106
#define SPI_SINGLE_MODE
Definition: maxim_spi.c:53
void * extra
Definition: no_os_spi.h:212
#define MAX_DELAY_SCLK
Definition: maxim_spi.c:51
#define MAX_DELAY_SCLK
Definition: maxim_spi.c:55
#define MAX_DELAY_SCLK
Definition: maxim_spi.c:55
uint32_t num_slaves
Definition: maxim_spi.h:54
uint32_t max_speed_hz
Definition: no_os_spi.h:144
maxim specific header for SPI driver
spi_ss_polarity
Definition: maxim_spi.h:48
enum no_os_dma_xfer_type xfer_type
Definition: no_os_dma.h:79
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
Definition: maxim_spi.c:61
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:778
int no_os_dma_release_channel(struct no_os_dma_desc *, struct no_os_dma_ch *)
Free DMA channel.
Definition: no_os_dma.c:216
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
#define NULL
Definition: wrapper.h:64
maxim specific header for SPI driver
uint8_t * src
Definition: no_os_dma.h:73
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:673
const struct no_os_spi_platform_ops max_spi_ops
maxim specific SPI platform ops structure
Definition: maxim_spi.c:795
int no_os_dma_xfer_abort(struct no_os_dma_desc *, struct no_os_dma_ch *)
Abort the ongoing and any other future transfers scheduled for a channel.
Definition: no_os_dma.c:384
struct no_os_platform_spi_delays platform_delays
Definition: no_os_spi.h:210
@ true
Definition: ad5446.h:57
@ MEM_TO_DEV
Definition: no_os_dma.h:51
mxc_gpio_vssel_t vssel
Definition: maxim_spi.h:56
bool no_os_dma_is_completed(struct no_os_dma_desc *, struct no_os_dma_ch *)
Get the state of a DMA channel (free or not).
Definition: no_os_dma.c:417
uint32_t max_speed_hz
Definition: no_os_spi.h:198
#define NANO
Definition: no_os_units.h:50
struct no_os_spi_desc * spi
Definition: main.c:72
int no_os_dma_chan_unlock(struct no_os_dma_ch *)
Unlock a DMA channel, marking it available for acquisition.
Definition: no_os_dma.c:336
Header file of utility functions.
void * ctx
Definition: maxim_spi.c:72
void * extra
Definition: no_os_spi.h:158
uint32_t dma_tx_priority
Definition: maxim_spi.h:59
#define pr_warning(fmt, args...)
Definition: no_os_print_log.h:97
enum no_os_spi_mode mode
Definition: no_os_spi.h:202
uint32_t cs_delay_first
Definition: maxim_spi.h:64
maxim specific header for SPI driver
Maxim platform specific header DMA API.
uint32_t dma_req_rx
Definition: maxim_spi.h:67
uint32_t length
Definition: no_os_dma.h:77
Error macro definition for ARM Compiler.
@ NO_OS_DMA_IRQ
Definition: no_os_irq.h:92
Platform independent function definitions and data types for the DMA API.
#define NO_OS_DIV_ROUND_CLOSEST(x, y)
Definition: no_os_util.h:54
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
enum no_os_irq_peripheral periph
Definition: no_os_dma.h:97
Describes the state of the DMA controller.
Definition: no_os_dma.h:136
int32_t max_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: maxim_spi.c:454