Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_hal_pspi.h File Reference

List of parameters and defined functions needed to access the Peripheral SPI driver. More...

Macros

#define wiced_hal_pspi_init   wiced_hal_pspi_init_patch
 Initialize the SPI driver with the given parameters. More...
 

Enumerations

enum  { SPI_MASTER_ROLE = 1, SPI_SLAVE_ROLE = 2 }
 SPI Device Role.
 

Functions

void wiced_hal_pspi_init_patch (UINT8 devRole, UINT8 spiPinPullConfig, UINT32 spiGpioCfg, UINT32 clkSpeed, SPI_ENDIAN endian, SPI_SS_POLARITY polarity, SPI_MODE mode, UINT8 csPin)
 
static INLINE void wiced_hal_pspi_tx_data (UINT32 txLen, const UINT8 *txBuf)
 Send/transmit data over SPI as the master. More...
 
static INLINE void wiced_hal_pspi_rx_data (UINT32 rxLen, UINT8 *rxBuf)
 Receive data over SPI as the master. More...
 
static INLINE void wiced_hal_pspi_reset (void)
 Reset and bring the SPI driver to a known good state with default configuration. More...
 
static INLINE void wiced_hal_pspi_exchange_data (UINT32 len, const UINT8 *txBuf, UINT8 *rxBuf)
 Transmit one buffer of data while simultaneously receiving data (as the master). More...
 
static INLINE void wiced_hal_pspi_slave_enable_tx (void)
 Enable the tx fifo so any data in it will be transmitted when the SPI master clocks it out. More...
 
static INLINE void wiced_hal_pspi_slave_disable_tx (void)
 Disable the tx fifo. More...
 
static INLINE void wiced_hal_pspi_slave_enable_rx (void)
 Enable the rx fifo for incoming data when the SPI master clocks it in. More...
 
static INLINE void wiced_hal_pspi_slave_disable_rx (void)
 Disable the rx fifo. More...
 
static INLINE void wiced_hal_pspi_slave_tx_data (UINT32 txLen, const UINT8 *txBuf)
 Send/transmit data over SPI as a slave. More...
 
static INLINE SPIFFY_STATUS wiced_hal_pspi_slave_rx_data (UINT32 rxLen, UINT8 *rxBuf)
 Receive data over SPI as a slave. More...
 
static INLINE UINT32 wiced_hal_pspi_slave_get_tx_fifo_count (void)
 Get the number of bytes in the slave tx fifo. More...
 
static INLINE UINT32 wiced_hal_pspi_slave_get_rx_fifo_count (void)
 Get the number of bytes in the slave rx fifo. More...
 

Detailed Description

List of parameters and defined functions needed to access the Peripheral SPI driver.