DNx-SL-514 Synchronous Serial Interface Board
Chapter 3
24
Programming with the Low-Level API
May 2018
www.ueidaq.com
508.921.4600
© Copyright 2018
United Electronic Industries, Inc.
3.3.3
Enabling SSI
Channels
The SL-514 offers four independent SSI channels, and each channel has a
master port and a slave port. Each of the four channels can be enabled with the
DqAdv514Enable()
function described below.
NOTE:
Individual master and slave ports are enabled or disabled through the
DqAdv514Config()
API (Section 3.3.1).
DqAdv514Enable(
int hd,
// Handle to IOM received from DqOpenIOM()
int devn,
// Board device # inside the IOM chassis
int channel_mask);// Bitmask of channels:
// “1” to enable (or keep running),
// and “0” to disable.
As an example, setting
channel_mask = 0x3
will enable channel 0 and
channel 1.
3.3.4
Writing Slave
Data for
Transmit
Each slave port on the SL-514 has a 1024 FIFO for holding data to be output.
The FIFO can be filled using the
DqAdv514WriteFIFO()
API.
DqAdv514WriteFIFO(
int hd,
// Handle to IOM received from DqOpenIOM()
int devn,
// Board device # inside the IOM chassis
int chan,
// Channel to be configured
int flags,
// <Reserved>
int size,
// size of transmit buffer
uint32* buffer,
// Pointer to the array of transmit data
int* written,
// Number of data words stored in FIFO
int* available);
// Amount of free space in FIFO