@CHIP-RTOS C Library V2.06 - SPI API
spi_write_hw
Write to the SPI Interface (hardware interface) unsigned int spi_write_hw ( const void far *bufferPtr,
unsigned short nbytes ); Parameters
bufferPtr
- Pointer to buffer which contains write data
nbytes
- number of bytes to write
Return Value
- State:
BIT5 = 1: A collision has occurred between multiple masters
BIT6 = 1: A overrun was detected
Comments
- Use this function if the hardware interface is used.
Overrun detection only works if the SLVSEL pin is used as chipselect.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
n/a | n/a | n/a | V0.90 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|