Platform independent SPI driver.
More...
Platform independent SPI driver.
Indicate the SPI index number.
Enumerator |
---|
WIZ_SPI1 |
Indicate the 1st SPI.
|
WIZ_SPI2 |
Indicate the 2nd SPI.
|
WIZ_SPI3 |
Indicate the 3rd SPI.
|
Definition at line 22 of file wizspi.h.
uint8 wizspi_byte |
( |
wizpf_spi |
spi, |
|
|
uint8 |
byte |
|
) |
| |
Send/Receive 1 Byte through SPI.
- Parameters
-
spi | SPI index number (wizpf_spi) |
byte | 1 Byte to send |
- Returns
- Received 1 Byte
Definition at line 127 of file wizspi.c.
Set/Clear SPI CS Pin.
- Parameters
-
spi | SPI index number (wizpf_spi) |
val | VAL_LOW: Active(set low)
VAL_HIGH: Inactive(set high) |
Definition at line 93 of file wizspi.c.
Initialize SPI Peripheral Device.
- Parameters
-
- Returns
- RET_OK: Success
-
RET_NOK: Error
Definition at line 27 of file wizspi.c.