Diagnostic SpaceWire Interface
EtherSpaceLink family User Manual
17.
6
.
2
8.
EtherSpaceLink_HWA_to_serial_number_string()
S
ynops
i
s
char * EtherSpaceLink_HWA_to_serial_number_string
( unsigned char * HWA
)
D
esc
ri
pt
i
on
EtherSpaceLink_HWA_to_serial_number_string()
r
etu
r
n
s a
n
E
t
h
e
r
S
pac
eL
i
n
k
un
i
t
’
s
s
e
ri
a
l numbe
r,
as d
e
ri
ve
d f
r
om
i
t
s
un
i
q
ue
E
t
h
e
r
net me
d
i
a acc
e
ss c
ont
r
olle
r
(
MAC
)
add
r
e
ss
.
I
nput p
ara
mete
r
s
HWA
a p
o
i
nte
r
to
a
n
a
rr
ay
o
f
6
b
y
te
s c
ont
a
i
n
i
n
g
t
h
e
add
r
e
ss
.
Retu
r
ns
char *
Th
i
s
i
s a p
o
i
nte
r
to t
h
e memo
r
y a
r
e
a c
ont
a
i
n
i
n
g
a z
e
r
o
-
te
r
m
i
n
a
te
d s
t
ri
n
g
o
f
8
-
b
i
t
cha
r
ac
te
rs
.
E
xa
mple
EtherSpaceLink DSI_unit;
unsigned char HWA[6];
DSI_unit = EtherSpaceLink_open( "192.168.3.40" );
EtherSpaceLink_get_HWA ( DSI_unit, HWA );
printf ( "Serial number %s",
EtherSpaceLink_HWA_to_serial_number_string( HWA )
);
4Links Limited
www.4Links.co.uk
[email protected]
page 105 of 130
T +44 1908 642001; F +44 1908 363463
Milton Keynes MK3 6EB, UK
Suite EU2, Bletchley Park