|
void spiSetMOSI |
( |
BYTE |
idx, |
|
|
BOOL |
value | |
|
) |
| | |
This function can be used in slave mode when the bidirectional mode (SPI_BIDIRECTIONAL) is enabled. In this mode the MOSI pin can be used as a GPIO pin. This function will set the pin to output mode and set the level of the pin.
- Parameters:
-
| idx | SPI bus index
0 = dedicated SPI on PSC3 or GPT
|
| value | MOSI output level, 0 = MOSI low, 1 = MOSI high |
- Compatibility:
- This function is not available on SC1x, SC2x and SC1x3.
- Returns:
- Nothing
- Since:
- SC2x3 V1.02 - CLIB V1.02
- See also:
- spiSlaveInit()
|