SPI Slave Interface
DLN-series adapters SPI slave interface can operate in full duplex or half duplex mode. You can configure frame size, clock polarity (CPOL) and clock phase (CPHA) to communicate with different SPI master devices.
Event Driven SPI Slave Interface
SPI slave adapters from other vendors encourage you to poll the adapter to detect if it receives data from SPI master device. This polling unreasonable increases USB bandwidth usage and introduces latency problems into SPI communication.
DLN-series adapters allows you can configure the event driven interface. With event driver SPI interface you send several buffers to SPI slave adapter and configure the notification method for your application. When SPI master activates SPI slave adapter and transmits data, DLN-series adapter notifies your application. After event receipt, your application receives data transmitted from SPI master device. You can also use this event to send additional data to SPI slave adapter, maintaining the continuous communication.
By using SPI Slave Interface with SPI Adapter you can operate with the single or multiple slave devices which are connected to master device.
The slave device is not capable of generating the serial clock (SCK) signal and thus can not get active on its own. The slave just sends and receives data if the master generates the necessary SCK. The slave device receives the clock and slave select from the master device.
In multiple slave device systems the SPI slave devices can share out the same MISO (master input slave output) and MOSI (master output slave input) lines. Each slave device has MOSI connected to its data input and MISO connected to its data output. And the only one slave device is actually enabled at a time by giving each slave device a unique slave select pin.
To configure your slave device for data transmission in SPI Slave mode use DlnSpiSlaveSetMode() function. You can configure the clock polarity (CPOL), clock phase (CPHA), the ability to transmit or receive data. You can also set SPI transaction length in bytes. To get slave device configuration use DlnSpiSlaveGetMode() function.
2006-2012