Diagnostic SpaceWire Interface
EtherSpaceLink family User Manual
Note
See
s
e
c
t
i
on
f
o
r
a
n ex
p
l
a
n
a
t
i
on o
f
t
h
e
E
vent /
E
rr
o
r
Wa
ve
f
o
r
m o
p
t
i
on
a
n
d
t
h
e v
a
ri
ou
s
t
rigg
e
r s
ou
r
c
e
s
.
I
nput p
ara
mete
r
s
DSI_unit
t
h
e
ha
n
d
le
r
etu
r
ne
d
b
y a
s
u
cc
e
ss
f
ul
EtherSpaceLink_open()
c
omm
a
n
d
.
sources
a
s
et o
f
b
i
t
s i
n
di
ca
t
i
n
g
wh
i
ch
t
rigg
e
rs
a
r
e to be u
s
e
d
to
i
n
i
t
i
a
te
a wa
ve
f
o
r
m
cap
tu
r
e.
Retu
r
ns
0
i
f
s
u
cc
e
ss
f
ul;
-
1
i
f a
n e
rr
o
r
o
cc
u
rr
e
d
.
E
xa
mple
// Capture waveform on ALL ports whenever an error occurs on
// any one (or more)
int all_ports = EtherSpaceLink_EW_source_port_1
| EtherSpaceLink_EW_source_port_2
| EtherSpaceLink_EW_source_port_3
| EtherSpaceLink_EW_source_port_4
| EtherSpaceLink_EW_source_port_5
| EtherSpaceLink_EW_source_port_6
| EtherSpaceLink_EW_source_port_7
| EtherSpaceLink_EW_source_port_8;
int port;
for ( port = 1; port <= 8; port ++ )
{
EtherSpaceLink_set_active_link ( DSI_unit, port );
EtherSpaceLink_EW_enable_reporting
(DSI_unit, EtherSpaceLink_EW_report_running_error );
EtherSpaceLink_EW_sources ( DSI_unit, all_ports );
}
4Links Limited
www.4Links.co.uk
[email protected]
page 113 of 130
T +44 1908 642001; F +44 1908 363463
Milton Keynes MK3 6EB, UK
Suite EU2, Bletchley Park