Data_Management
+ Collaboration diagram for Data_Management:

Functions

__STATIC_INLINE void ll_spi_transmit_data8 (ssi_regs_t *SPIx, uint8_t tx_data)
 Write 8-Bits in the data register. More...
 
__STATIC_INLINE void ll_spi_transmit_data16 (ssi_regs_t *SPIx, uint16_t tx_data)
 Write 16-Bits in the data register. More...
 
__STATIC_INLINE void ll_spi_transmit_data32 (ssi_regs_t *SPIx, uint32_t tx_data)
 Write 32-Bits in the data register. More...
 
__STATIC_INLINE uint8_t ll_spi_receive_data8 (ssi_regs_t *SPIx)
 Read 8-Bits in the data register. More...
 
__STATIC_INLINE uint16_t ll_spi_receive_data16 (ssi_regs_t *SPIx)
 Read 16-Bits in the data register. More...
 
__STATIC_INLINE uint32_t ll_spi_receive_data32 (ssi_regs_t *SPIx)
 Read 32-Bits in the data register. More...
 
__STATIC_INLINE void ll_spi_set_rx_sample_delay (ssi_regs_t *SPIx, uint32_t delay)
 Set Rx sample delay. More...
 
__STATIC_INLINE uint32_t ll_spi_get_rx_sample_delay (ssi_regs_t *SPIx)
 Get Rx sample delay. More...
 
__STATIC_INLINE void ll_spi_set_wait_cycles (ssi_regs_t *SPIx, uint32_t wait_cycles)
 Set number of wait cycles in Dual/Quad SPI mode. More...
 
__STATIC_INLINE uint32_t ll_spi_get_wait_cycles (ssi_regs_t *SPIx)
 Get number of wait cycles in Dual/Quad SPI mode. More...
 
__STATIC_INLINE void ll_spi_set_instruction_size (ssi_regs_t *SPIx, uint32_t size)
 Set Dual/Quad SPI mode instruction length in bits. More...
 
__STATIC_INLINE uint32_t ll_spi_get_instruction_size (ssi_regs_t *SPIx)
 Get Dual/Quad SPI mode instruction length in bits. More...
 
__STATIC_INLINE void ll_spi_set_address_size (ssi_regs_t *SPIx, uint32_t size)
 Set Dual/Quad SPI mode address length in bits. More...
 
__STATIC_INLINE uint32_t ll_spi_get_address_size (ssi_regs_t *SPIx)
 Get Dual/Quad SPI mode address length in bits. More...
 
__STATIC_INLINE void ll_spi_set_add_inst_transfer_format (ssi_regs_t *SPIx, uint32_t format)
 Set Dual/Quad SPI mode address and instruction transfer format. More...
 
__STATIC_INLINE uint32_t ll_spi_get_addr_inst_transfer_format (ssi_regs_t *SPIx)
 Get Dual/Quad SPI mode address and instruction transfer format. More...
 

Detailed Description

Function Documentation

◆ ll_spi_get_addr_inst_transfer_format()

__STATIC_INLINE uint32_t ll_spi_get_addr_inst_transfer_format ( ssi_regs_t *  SPIx)

Get Dual/Quad SPI mode address and instruction transfer format.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | TRANSTYPE | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 2506 of file gr55xx_ll_spi.h.

◆ ll_spi_get_address_size()

__STATIC_INLINE uint32_t ll_spi_get_address_size ( ssi_regs_t *  SPIx)

Get Dual/Quad SPI mode address length in bits.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | ADDRL | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 2459 of file gr55xx_ll_spi.h.

◆ ll_spi_get_instruction_size()

__STATIC_INLINE uint32_t ll_spi_get_instruction_size ( ssi_regs_t *  SPIx)

Get Dual/Quad SPI mode instruction length in bits.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | INSTL | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 2386 of file gr55xx_ll_spi.h.

◆ ll_spi_get_rx_sample_delay()

__STATIC_INLINE uint32_t ll_spi_get_rx_sample_delay ( ssi_regs_t *  SPIx)

Get Rx sample delay.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | RX_SAMPLEDLY | RX_SAMPLEDLY | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ 256

Definition at line 2296 of file gr55xx_ll_spi.h.

◆ ll_spi_get_wait_cycles()

__STATIC_INLINE uint32_t ll_spi_get_wait_cycles ( ssi_regs_t *  SPIx)

Get number of wait cycles in Dual/Quad SPI mode.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | WAITCYCLES | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ 31

Definition at line 2337 of file gr55xx_ll_spi.h.

◆ ll_spi_receive_data16()

__STATIC_INLINE uint16_t ll_spi_receive_data16 ( ssi_regs_t *  SPIx)

Read 16-Bits in the data register.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | DATA | DATA | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
ReturnedValue between Min_Data=0x0000 and Max_Data=0xFFFF

Definition at line 2236 of file gr55xx_ll_spi.h.

◆ ll_spi_receive_data32()

__STATIC_INLINE uint32_t ll_spi_receive_data32 ( ssi_regs_t *  SPIx)

Read 32-Bits in the data register.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | DATA | DATA | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
ReturnedValue between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF

Definition at line 2255 of file gr55xx_ll_spi.h.

◆ ll_spi_receive_data8()

__STATIC_INLINE uint8_t ll_spi_receive_data8 ( ssi_regs_t *  SPIx)

Read 8-Bits in the data register.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | DATA | DATA | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
Return values
RerturnedValue between Min_Data=0x00 and Max_Data=0xFF

Definition at line 2217 of file gr55xx_ll_spi.h.

◆ ll_spi_set_add_inst_transfer_format()

__STATIC_INLINE void ll_spi_set_add_inst_transfer_format ( ssi_regs_t *  SPIx,
uint32_t  format 
)

Set Dual/Quad SPI mode address and instruction transfer format.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | TRANSTYPE | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
formatThis parameter can be one of the following values:
Return values
None

Definition at line 2483 of file gr55xx_ll_spi.h.

◆ ll_spi_set_address_size()

__STATIC_INLINE void ll_spi_set_address_size ( ssi_regs_t *  SPIx,
uint32_t  size 
)

Set Dual/Quad SPI mode address length in bits.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | ADDRL | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
sizeThis parameter can be one of the following values:
Return values
None

Definition at line 2423 of file gr55xx_ll_spi.h.

◆ ll_spi_set_instruction_size()

__STATIC_INLINE void ll_spi_set_instruction_size ( ssi_regs_t *  SPIx,
uint32_t  size 
)

Set Dual/Quad SPI mode instruction length in bits.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | INSTL | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
sizeThis parameter can be one of the following values:
Return values
None

Definition at line 2362 of file gr55xx_ll_spi.h.

◆ ll_spi_set_rx_sample_delay()

__STATIC_INLINE void ll_spi_set_rx_sample_delay ( ssi_regs_t *  SPIx,
uint32_t  delay 
)

Set Rx sample delay.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | RX_SAMPLEDLY | RX_SAMPLEDLY | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
delayThis parameter can be one of the following values: 0 ~ 256
Return values
None

Definition at line 2276 of file gr55xx_ll_spi.h.

◆ ll_spi_set_wait_cycles()

__STATIC_INLINE void ll_spi_set_wait_cycles ( ssi_regs_t *  SPIx,
uint32_t  wait_cycles 
)

Set number of wait cycles in Dual/Quad SPI mode.

Note
This bit should not be changed when communication is ongoing.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | SCTRL0 | WAITCYCLES | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
wait_cyclesThis parameter can be one of the following values: 0 ~ 31
Return values
None

Definition at line 2317 of file gr55xx_ll_spi.h.

◆ ll_spi_transmit_data16()

__STATIC_INLINE void ll_spi_transmit_data16 ( ssi_regs_t *  SPIx,
uint16_t  tx_data 
)

Write 16-Bits in the data register.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | DATA | DATA | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
tx_dataValue between Min_Data=0x0000 and Max_Data=0xFFFF
Return values
None

Definition at line 2178 of file gr55xx_ll_spi.h.

◆ ll_spi_transmit_data32()

__STATIC_INLINE void ll_spi_transmit_data32 ( ssi_regs_t *  SPIx,
uint32_t  tx_data 
)

Write 32-Bits in the data register.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | DATA | DATA | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
tx_dataValue between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF
Return values
None

Definition at line 2198 of file gr55xx_ll_spi.h.

◆ ll_spi_transmit_data8()

__STATIC_INLINE void ll_spi_transmit_data8 ( ssi_regs_t *  SPIx,
uint8_t  tx_data 
)

Write 8-Bits in the data register.

\rst +-------------------—+--------------------------------—+ | Register | BitsName | +======================+===================================+ | DATA | DATA | +-------------------—+--------------------------------—+ \endrst

Parameters
SPIxSPI instance
tx_dataValue between Min_Data=0x00 and Max_Data=0xFF
Return values
None

Definition at line 2158 of file gr55xx_ll_spi.h.