Go to the documentation of this file.
47 #define SPI_CS_DECODE 0x01
48 #define SPI_DEASSERT_CURRENT_SS 0x0F
109 #endif // XILINX_SPI_H_
const struct no_os_spi_platform_ops xil_spi_ops
Xilinx platform specific SPI platform ops structure.
Definition: xilinx_spi.c:453
#define NO_OS_SPI_CPOL
Definition: no_os_spi.h:48
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:150
@ SPI_PS
Definition: xilinx_spi.h:62
enum xil_spi_type type
Definition: xilinx_spi.h:85
int32_t xil_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: xilinx_spi.c:249
Header file of SPI Interface.
uint32_t flags
Definition: xilinx_spi.h:76
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
const struct no_os_spi_platform_ops xil_spi_ops
Xilinx specific SPI platform ops structure.
Definition: xilinx_spi.c:453
int32_t xil_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: xilinx_spi.c:361
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
const struct no_os_spi_platform_ops xil_spi_pl_ops
Xilinx SPI PS register functions. No extra param needed.
uint32_t device_id
Definition: no_os_spi.h:142
#define SPI_CS_DECODE
Definition: xilinx_spi.h:47
uint8_t chip_select
Definition: no_os_spi.h:146
uint8_t chip_select
Definition: no_os_spi.h:200
int32_t xil_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: xilinx_spi.c:303
void * instance
Definition: xilinx_spi.h:91
@ SPI_PL
Definition: xilinx_spi.h:60
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:204
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
const struct no_os_spi_platform_ops spi_eng_platform_ops
SPI engine platform ops structure.
Definition: spi_engine.c:61
enum xil_spi_type type
Definition: xilinx_spi.h:74
spi_type
Altera platform architecture types.
Definition: altera_spi.h:46
@ SPI_ENGINE
Definition: xilinx_spi.h:64
void * extra
Definition: no_os_spi.h:212
xil_spi_type
Xilinx platform architecture sections.
Definition: xilinx_spi.h:58
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: xilinx_spi.h:72
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
uint32_t max_speed_hz
Definition: no_os_spi.h:144
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
@ NO_OS_SPI_BIT_ORDER_LSB_FIRST
Definition: no_os_spi.h:78
#define NULL
Definition: wrapper.h:64
#define SPI_DEASSERT_CURRENT_SS
Definition: xilinx_spi.h:48
Xilinx platform specific SPI descriptor.
Definition: xilinx_spi.h:83
uint32_t max_speed_hz
Definition: no_os_spi.h:198
void * config
Definition: xilinx_spi.h:89
#define NO_OS_SPI_CPHA
Definition: no_os_spi.h:47
void * extra
Definition: no_os_spi.h:158
enum no_os_spi_mode mode
Definition: no_os_spi.h:202
uint32_t flags
Definition: xilinx_spi.h:87
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140