IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


unsigned int spiGetMOSI ( BYTE  idx  ) 

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 input mode and reads the level of the pin.

Parameters:
idx SPI bus index
     0 = dedicated SPI on PSC3 or GPT

Compatibility:
This function is not available on SC1x, SC2x and SC1x3.
Returns:
Level of MOSI. 0 = Low, 1 = High.
Since:
SC2x3 V1.02 - CLIB V1.02
See also:
spiSlaveInit()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:37 2017 by Doxygen 1.6.1