uint32_t device_id
Definition: no_os_spi.h:196
Header file of SPI Interface.
Altera platform specific SPI descriptor.
Definition: altera_spi.h:67
@ NIOS_II_SPI
Definition: altera_spi.h:48
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
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 altera_spi_ops
Altera platform specific SPI platform ops structure.
Definition: altera_spi.c:158
uint32_t device_id
Definition: no_os_spi.h:142
uint8_t chip_select
Definition: no_os_spi.h:146
uint8_t chip_select
Definition: no_os_spi.h:200
Structure holding the initialization parameters for Altera platform specific SPI parameters.
Definition: altera_spi.h:56
enum spi_type type
Definition: altera_spi.h:69
int32_t altera_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: altera_spi.c:112
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
const struct no_os_spi_platform_ops altera_spi_ops
Altera specific SPI platform ops structure.
Definition: altera_spi.c:158
int32_t altera_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: altera_spi.c:95
spi_type
Altera platform architecture types.
Definition: altera_spi.h:46
void * extra
Definition: no_os_spi.h:212
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
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
uint32_t base_address
Definition: altera_spi.h:60
uint32_t base_address
Definition: altera_spi.h:71
void * extra
Definition: no_os_spi.h:158
enum spi_type type
Definition: altera_spi.h:58
enum no_os_spi_mode mode
Definition: no_os_spi.h:202
int32_t altera_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: altera_spi.c:58
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140