|
enum | { SPI_CS_SHIFT = 24,
SPI_CLK_SHIFT = 16,
SPI_MOSI_SHIFT = 8,
SPI_MISO_SHIFT = 0
} |
|
enum | spi_interface_t { SPI1 = 0,
SPI2 = 1
} |
| SPI Interfaces. More...
|
|
enum | { SPI_MASTER = 1,
SPI_SLAVE = 2
} |
| SPI Device Role. More...
|
|
enum | SPI_MODE { SPI_MODE_0,
SPI_MODE_1,
SPI_MODE_2,
SPI_MODE_3
} |
|
enum | SPI_SS_POLARITY { SPI_SS_ACTIVE_LOW,
SPI_SS_ACTIVE_HIGH
} |
| Slave select polarity (output from master) More...
|
|
enum | SPI_ENDIAN { SPI_MSB_FIRST,
SPI_LSB_FIRST
} |
| SPI Endian: Direction of bit data flow (MSB or LSB first). More...
|
|
enum | SPI_SS_MODE { SPI_SS_NORMAL,
SPI_SS_INACTIVE_BTW_BYTES
} |
| Slave Select mode (output from master) More...
|
|
enum | { INPUT_PIN_PULL_UP = 0x0400,
INPUT_PIN_PULL_DOWN = 0x0200,
INPUT_PIN_FLOATING = 0x0
} |
|
enum | SPIFFY_STATUS { SPIFFY_SUCCESS,
SPIFFY_SLAVE_NOT_ENOUGH_RX_FIFO_BYTES
} |
| Return values. More...
|
|
|
void | wiced_hal_pspi_init (spi_interface_t spi, UINT8 devRole, UINT16 spiPinPullConfig, UINT32 spiGpioCfg, UINT32 clkSpeed, SPI_ENDIAN endian, SPI_SS_POLARITY polarity, SPI_MODE mode, UINT8 csPin) |
| Initialize the SPI driver with the given parameters. More...
|
|
void | wiced_hal_pspi_tx_data (spi_interface_t spi, UINT32 txLen, const UINT8 *txBuf) |
| Send/transmit data over SPI as the master. More...
|
|
void | wiced_hal_pspi_rx_data (spi_interface_t spi, UINT32 rxLen, UINT8 *rxBuf) |
| Receive data over SPI as the master. More...
|
|
void | wiced_hal_pspi_reset (spi_interface_t spi) |
| Reset and bring the SPI driver to a known good state with default configuration. More...
|
|
void | wiced_hal_pspi_exchange_data (spi_interface_t spi, UINT32 len, const UINT8 *txBuf, UINT8 *rxBuf) |
| Transmit one buffer of data while simultaneously receiving data (as the master). More...
|
|
void | wiced_hal_pspi_slave_enable_tx (spi_interface_t spi) |
| Enable the tx fifo so any data in it will be transmitted when the SPI master clocks it out. More...
|
|
void | wiced_hal_pspi_slave_disable_tx (spi_interface_t spi) |
| Disable the tx fifo. More...
|
|
void | wiced_hal_pspi_slave_enable_rx (spi_interface_t spi) |
| Enable the rx fifo. More...
|
|
void | wiced_hal_pspi_slave_disable_rx (spi_interface_t spi) |
| Disable the rx fifo. More...
|
|
void | wiced_hal_pspi_slave_tx_data (spi_interface_t spi, UINT32 txLen, const UINT8 *txBuf) |
| Send/transmit data over SPI as a slave. More...
|
|
SPIFFY_STATUS | wiced_hal_pspi_slave_rx_data (spi_interface_t spi, UINT32 rxLen, UINT8 *rxBuf) |
| Receive data over SPI as a slave. More...
|
|
UINT32 | wiced_hal_pspi_slave_get_tx_fifo_count (spi_interface_t spi) |
| Get the number of bytes in the slave tx fifo. More...
|
|
UINT32 | wiced_hal_pspi_slave_get_rx_fifo_count (spi_interface_t spi) |
| Get the number of bytes in the slave rx fifo. More...
|
|
>
List of parameters and defined functions needed to access the Peripheral SPI driver.