![]() |
Synergy Software Package User's Manual
|
Interface for SPI communications. More...
Data Structures | |
| struct | spi_callback_args_t |
| struct | spi_cfg_t |
| struct | spi_api_t |
| struct | spi_instance_t |
Typedefs | |
| typedef void | spi_ctrl_t |
Enumerations | |
| enum | spi_bit_width_t { SPI_BIT_WIDTH_8_BITS = (1), SPI_BIT_WIDTH_16_BITS = (2), SPI_BIT_WIDTH_32_BITS = (4) } |
| enum | spi_mode_t { SPI_MODE_MASTER, SPI_MODE_SLAVE } |
| enum | spi_clk_phase_t { SPI_CLK_PHASE_EDGE_ODD, SPI_CLK_PHASE_EDGE_EVEN } |
| enum | spi_clk_polarity_t { SPI_CLK_POLARITY_LOW, SPI_CLK_POLARITY_HIGH } |
| enum | spi_mode_fault_t { SPI_MODE_FAULT_ERROR_ENABLE, SPI_MODE_FAULT_ERROR_DISABLE } |
| enum | spi_bit_order_t { SPI_BIT_ORDER_MSB_FIRST, SPI_BIT_ORDER_LSB_FIRST } |
| enum | spi_event_t { SPI_EVENT_TRANSFER_COMPLETE = 1, SPI_EVENT_TRANSFER_ABORTED, SPI_EVENT_ERR_MODE_FAULT, SPI_EVENT_ERR_READ_OVERFLOW, SPI_EVENT_ERR_PARITY, SPI_EVENT_ERR_OVERRUN, SPI_EVENT_ERR_FRAMING, SPI_EVENT_ERR_MODE_UNDERRUN } |
| enum | spi_operation_t { SPI_OPERATION_DO_TX = 0x1, SPI_OPERATION_DO_RX = 0x2, SPI_OPERATION_DO_TX_RX = 0x3 } |
Interface for SPI communications.
The SPI Interface provides access to the SPI bus API. The Interface implements the Simple SPI on SCI HAL layer driver module.
Implemented by:
Related SSP architecture topics:
SPI Interface description: SPI Driver
| typedef void spi_ctrl_t |
SPI control block. Allocate an instance specific control block to pass into the SPI API calls.
| enum spi_bit_order_t |
| enum spi_bit_width_t |
| enum spi_clk_phase_t |
| enum spi_clk_polarity_t |
| enum spi_event_t |
SPI events
| enum spi_mode_fault_t |
Mode fault error flag. This error occurs when the device is setup as a master, but the SSLA line does not seem to be controlled by the master. This usually happens when the connecting device is also acting as master. A similar situation can also happen when configured as a slave.
| Enumerator | |
|---|---|
| SPI_MODE_FAULT_ERROR_ENABLE | Mode fault error flag on. |
| SPI_MODE_FAULT_ERROR_DISABLE | Mode fault error flag off. |
| enum spi_mode_t |
| enum spi_operation_t |