DNx-SL-514 Synchronous Serial Interface Board
Chapter 2
15
Programming with the High-Level API
May 2018
www.ueidaq.com
508.921.4600
© Copyright 2018
United Electronic Industries, Inc.
2.5
Configuring
an SSI Slave
Port
Use the method
CreateSSISlavePort()
to configure one or more channel(s)
as a slave SSI port.
The following call configures SSI slave ports 0 and 1 of a SL-514 set as
device 1:
It configures the following parameters:
•
Bits per second
: the number of bits per second transferred over the
synchronous port (unsigned integer)
•
Word size
: The number of bits per word (3 to 32) (unsigned integer)
•
Transmit Enable
: Enable or disable the data output (boolean)
•
Termination Enable
: Enable or disable termination resistor (boolean)
•
Pause Time
: Specifies the time delay (t
p
) in microseconds between two
consecutive clock sequences from the master (double)
•
Transfer Timeout
: Specifies the minimum time (t
m
) in microseconds
required by the slave to realize that the data transmission is complete
(double)
•
Bit Update Time
: Specifies the time (t
v
) in microseconds from the rising
clock edge to the data out transitioning high to low or low to high
(double)
// Configure session’s ports
ssiSession.CreateSSISlavePort(“pdna://192.168.100.2/Dev1/ssi0,1”,
125000,
8,
TRUE,
FALSE,
10000.0,
16.09,
0.0);