_spi_handle Struct Reference

SPI handle Structure definition. More...

#include <gr55xx_hal_spi.h>

+ Collaboration diagram for _spi_handle:

Public Attributes

ssi_regs_t * p_instance
 SPI registers base address
More...
 
spi_init_t init
 SPI communication parameters
More...
 
uint8_t * p_tx_buffer
 Pointer to SPI Tx transfer Buffer. More...
 
__IO uint32_t tx_xfer_size
 SPI Tx Transfer size
More...
 
__IO uint32_t tx_xfer_count
 SPI Tx Transfer Counter
More...
 
uint8_t * p_rx_buffer
 Pointer to SPI Rx transfer Buffer. More...
 
__IO uint32_t rx_xfer_size
 SPI Rx Transfer size
More...
 
__IO uint32_t rx_xfer_count
 SPI Rx Transfer Counter
More...
 
void(* write_fifo )(struct _spi_handle *p_spi)
 Pointer to SPI Tx transfer FIFO write function. More...
 
void(* read_fifo )(struct _spi_handle *p_spi)
 Pointer to SPI Rx transfer FIFO read function
More...
 
void(* read_write_fifo )(struct _spi_handle *p_spi)
 Pointer to SPI transfer FIFO read and write function
More...
 
dma_handle_tp_dmatx
 SPI Tx DMA Handle parameters
More...
 
dma_handle_tp_dmarx
 SPI Rx DMA Handle parameters
More...
 
__IO hal_lock_t lock
 Locking object
More...
 
__IO hal_spi_state_t state
 SPI communication state
More...
 
__IO uint32_t error_code
 SPI Error code
More...
 
uint32_t timeout
 Timeout for the SPI memory access. More...
 
uint32_t retention [8]
 SPI important register information. More...
 

Detailed Description

SPI handle Structure definition.

Definition at line 134 of file gr55xx_hal_spi.h.

Member Data Documentation

◆ error_code

__IO uint32_t _spi_handle::error_code

SPI Error code

Definition at line 166 of file gr55xx_hal_spi.h.

◆ init

spi_init_t _spi_handle::init

SPI communication parameters

Definition at line 138 of file gr55xx_hal_spi.h.

◆ lock

__IO hal_lock_t _spi_handle::lock

Locking object

Definition at line 162 of file gr55xx_hal_spi.h.

◆ p_dmarx

dma_handle_t* _spi_handle::p_dmarx

SPI Rx DMA Handle parameters

Definition at line 160 of file gr55xx_hal_spi.h.

◆ p_dmatx

dma_handle_t* _spi_handle::p_dmatx

SPI Tx DMA Handle parameters

Definition at line 158 of file gr55xx_hal_spi.h.

◆ p_instance

ssi_regs_t* _spi_handle::p_instance

SPI registers base address

Definition at line 136 of file gr55xx_hal_spi.h.

◆ p_rx_buffer

uint8_t* _spi_handle::p_rx_buffer

Pointer to SPI Rx transfer Buffer.

Definition at line 146 of file gr55xx_hal_spi.h.

◆ p_tx_buffer

uint8_t* _spi_handle::p_tx_buffer

Pointer to SPI Tx transfer Buffer.

Definition at line 140 of file gr55xx_hal_spi.h.

◆ read_fifo

void(* _spi_handle::read_fifo) (struct _spi_handle *p_spi)

Pointer to SPI Rx transfer FIFO read function

Definition at line 154 of file gr55xx_hal_spi.h.

◆ read_write_fifo

void(* _spi_handle::read_write_fifo) (struct _spi_handle *p_spi)

Pointer to SPI transfer FIFO read and write function

Definition at line 156 of file gr55xx_hal_spi.h.

◆ retention

uint32_t _spi_handle::retention[8]

SPI important register information.

Definition at line 173 of file gr55xx_hal_spi.h.

◆ rx_xfer_count

__IO uint32_t _spi_handle::rx_xfer_count

SPI Rx Transfer Counter

Definition at line 150 of file gr55xx_hal_spi.h.

◆ rx_xfer_size

__IO uint32_t _spi_handle::rx_xfer_size

SPI Rx Transfer size

Definition at line 148 of file gr55xx_hal_spi.h.

◆ state

__IO hal_spi_state_t _spi_handle::state

SPI communication state

Definition at line 164 of file gr55xx_hal_spi.h.

◆ timeout

uint32_t _spi_handle::timeout

Timeout for the SPI memory access.

Definition at line 168 of file gr55xx_hal_spi.h.

◆ tx_xfer_count

__IO uint32_t _spi_handle::tx_xfer_count

SPI Tx Transfer Counter

Definition at line 144 of file gr55xx_hal_spi.h.

◆ tx_xfer_size

__IO uint32_t _spi_handle::tx_xfer_size

SPI Tx Transfer size

Definition at line 142 of file gr55xx_hal_spi.h.

◆ write_fifo

void(* _spi_handle::write_fifo) (struct _spi_handle *p_spi)

Pointer to SPI Tx transfer FIFO write function.

Definition at line 152 of file gr55xx_hal_spi.h.


The documentation for this struct was generated from the following file: