www.beck-ipc.com

@CHIP-RTOS C Library - SPI API


Header File:         #include <SPIAPI.H>

Here is the CLIB API for access to the IPC@CHIP®'s SPI bus.

SPI is a serial bus standard established by Motorola. The Serial Peripheral Interface (SPI) is a synchronous serial interface useful for communicating with other peripheral or microcontroller devices. These peripheral devices may be Serial EEPROMs, shift registers, display drivers, A/D converters, etc.

SPI Init Functions

spi_initInit the SPI Interface (software emulation)
spi_init_hwInit the SPI Interface (hardware interface)

SPI Access Functions

spi_writeWrite to the SPI Interface (software emulation/hardware interface)
spi_readRead from the SPI Interface (software emulation/hardware interface)
spi_read_writeRead and write from/to the SPI Interface (software emulation/hardware interface)
spi_write_hwWrite to the SPI Interface (with return value for hardware interface)
spi_read_hwRead from the SPI Interface (with return value for hardware interface)
spi_read_write_hwRead and write from/to the SPI Interface (with return value for hardware interface)
spi_waiton_semWait on SPI semaphore (hardware interface)
spi_waiton_sem_extWait on SPI semaphore with timeout (hardware interface)
spi_waiton_sem_setmodeWait on SPI semaphore, set SPI mode and divider (hardware interface)
spi_waiton_sem_setmode_extWait on SPI semaphore with timeout, set SPI mode and divider (hardware interface)
spi_release_semRelease the SPI semaphore (hardware interface)

SPI Slave Functions

spi_slave_initInit the SPI Slave Interface (hardware interface)
spi_slave_writeWrite to the SPI Slave Interface (hardware interface)
spi_slave_readRead from the SPI Slave Interface (hardware interface)
spi_slave_read_writeRead and write from/to the SPI Slave Interface (hardware interface)


List of C Libraries
@CHIP-RTOS Main Index


End of document