SPI handle Structure definition. More...
#include <gr55xx_hal_spi.h>
Data Fields | |
| ssi_regs_t * | p_instance |
| spi_init_t | init |
| uint8_t * | p_tx_buffer |
| __IO uint32_t | tx_xfer_size |
| __IO uint32_t | tx_xfer_count |
| uint8_t * | p_rx_buffer |
| __IO uint32_t | rx_xfer_size |
| __IO uint32_t | rx_xfer_count |
| void(* | write_fifo )(struct _spi_handle *p_spi) |
| void(* | read_fifo )(struct _spi_handle *p_spi) |
| void(* | read_write_fifo )(struct _spi_handle *p_spi) |
| dma_handle_t * | p_dmatx |
| dma_handle_t * | p_dmarx |
| __IO hal_lock_t | lock |
| __IO hal_spi_state_t | state |
| __IO uint32_t | error_code |
| uint32_t | timeout |
| uint32_t | retention [8] |
SPI handle Structure definition.
| __IO uint32_t _spi_handle::error_code |
SPI Error code
| spi_init_t _spi_handle::init |
SPI communication parameters
| __IO hal_lock_t _spi_handle::lock |
Locking object
| dma_handle_t* _spi_handle::p_dmarx |
SPI Rx DMA Handle parameters
| dma_handle_t* _spi_handle::p_dmatx |
SPI Tx DMA Handle parameters
| ssi_regs_t* _spi_handle::p_instance |
SPI registers base address
| uint8_t* _spi_handle::p_rx_buffer |
Pointer to SPI Rx transfer Buffer
| uint8_t* _spi_handle::p_tx_buffer |
Pointer to SPI Tx transfer Buffer
| void(* _spi_handle::read_fifo) (struct _spi_handle *p_spi) |
Pointer to SPI Rx transfer FIFO read function
| void(* _spi_handle::read_write_fifo) (struct _spi_handle *p_spi) |
Pointer to SPI transfer FIFO read and write function
| uint32_t _spi_handle::retention[8] |
SPI important register information.
| __IO uint32_t _spi_handle::rx_xfer_count |
SPI Rx Transfer Counter
| __IO uint32_t _spi_handle::rx_xfer_size |
SPI Rx Transfer size
| __IO hal_spi_state_t _spi_handle::state |
SPI communication state
| uint32_t _spi_handle::timeout |
Timeout for the SPI memory access
| __IO uint32_t _spi_handle::tx_xfer_count |
SPI Tx Transfer Counter
| __IO uint32_t _spi_handle::tx_xfer_size |
SPI Tx Transfer size
| void(* _spi_handle::write_fifo) (struct _spi_handle *p_spi) |
Pointer to SPI Tx transfer FIFO write function