164
Reference Manual AFDX / ARINC 664 Application Interface Library
Section 4 – Function Reference: Receiver Functions
4
4
.
.
4
4
.
.
2
2
.
.
3
3
F
F
d
d
x
x
C
C
m
m
d
d
R
R
x
x
S
S
A
A
P
P
R
R
e
e
a
a
d
d
Prototype:
AiReturn FdxCmdRxSAPRead ( AiUInt32 ul_Handle,
const TY_FDX_RX_SAP_READ_IN *px_SapReadIn,
TY_FDX_RX_SAP_READ_OUT *px_SapReadOut );
Driver Command:
FDX_RX_SAP_READ
(0x00008081)
Purpose:
This function reads data from an SAP Connectionless port.
Input:
T
T
Y
Y
_
_
F
F
D
D
X
X
_
_
R
R
X
X
_
_
S
S
A
A
P
P
_
_
R
R
E
E
A
A
D
D
_
_
I
I
N
N
*
*
p
p
x
x
_
_
S
S
a
a
p
p
R
R
e
e
a
a
d
d
I
I
n
n
Pointer to a SAP port definition structure.
typedef struct {
AiUInt32 ul_UdpHandle;
AiUInt32 ul_MsgCount;
} TY_FDX_RX_SAP_READ_IN;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
U
U
d
d
p
p
H
H
a
a
n
n
d
d
l
l
e
e
See description of FdxCmdRxSAPCreatePort.
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
M
M
s
s
g
g
C
C
o
o
u
u
n
n
t
t
Number of Messages to read. This means the newest ul_MsgCount Entries.
Output:
T
T
Y
Y
_
_
F
F
D
D
X
X
_
_
R
R
X
X
_
_
S
S
A
A
P
P
_
_
R
R
E
E
A
A
D
D
_
_
O
O
U
U
T
T
*
*
p
p
x
x
_
_
S
S
a
a
p
p
R
R
e
e
a
a
d
d
O
O
u
u
t
t
Pointer to a structure which contains SAP port data.
typedef struct {
AiUInt32 ul_MsgRead;
void *pv_ReadBuffer;
} TY_FDX_RX_SAP_READ_OUT;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
M
M
s
s
g
g
R
R
e
e
a
a
d
d
Number of Messages actually read.
v
v
o
o
i
i
d
d
*
*
p
p
v
v
_
_
R
R
e
e
a
a
d
d
B
B
u
u
f
f
f
f
e
e
r
r
Pointer to the data buffer the Entries should be stored. Required size of buffer can be
calculated: ul_UdpMaxMessageSize * ul_MsgCount.
The ul_UdpMaxMessageSize is defined with function
FdxCmdRxSAPCreatePort
.
Summary of Contents for AFDX / ARINC 664
Page 2: ......