154 Software Library Reference Manual for VME 429
Section 7 – Receiver Monitor Functions
7.7 Api429CmdRmReadRecData
P
P
r
r
o
o
t
t
o
o
t
t
y
y
p
p
e
e
:
:
AiUInt8 Api429CmdRmReadRecData( AiUInt8 b_Module, AiUInt8 b_Chn,
TY_API429_RM_REC *px_RecStatus,
void *p_Buffer, AiUInt32 *pl_BytesRead );
D
D
r
r
i
i
v
v
e
e
r
r
C
C
o
o
m
m
m
m
a
a
n
n
d
d
:
:
Indirect calls: API429_RM_REC_STATUS_READ (0xBE)
API429_RM_COPY_REC_DATA (0xBF)
P
P
u
u
r
r
p
p
o
o
s
s
e
e
:
:
This function allows an easy implementation of an ARINC Recording task. The
recording status information is read, if the transmitter is operating in the Continuous
Capture / Recording mode. The initial value of the parameter
‘px_RecStatus.hfi_cnt’ indicates the amount of half buffer full interrupts required
for storing the requested recording file size (see function Api429CmdRmCapDef).
If available, the received monitor data (recording data) will be copied from the
Receiver Monitor Buffer to a buffer in the Shared Memory RAM area of the API429
board. Finally the data is provided to the user application with the parameter
‘p_Buf’.
Note: To record receive data, it is absolutely necessary that the Half Buffer Full
Interrupt is enabled! (see function Api429CmdRmCapDef)
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
8
8
b
b
_
_
C
C
h
h
n
n
Channel Number
Value Description
1..32
API429 receiver channel number
O
O
u
u
t
t
p
p
u
u
t
t
T
T
Y
Y
_
_
A
A
P
P
I
I
4
4
2
2
9
9
_
_
R
R
M
M
_
_
R
R
E
E
C
C
*
*
p
p
x
x
_
_
R
R
e
e
c
c
S
S
t
t
a
a
t
t
u
u
s
s
Pointer to Recording structure (api429.h)
typedef struct
{
AiUInt8 status;
AiUInt8 padding1;
AiUInt16 padding2;
AiUInt32 hfi_cnt;
AiUInt32 saddr;
AiUInt32 size;
} TY_API429_RM_REC;
'
'
A
A
i
i
U
U
I
I
n
n
t
t
8
8
s
s
t
t
a
a
t
t
u
u
s
s
'
'
Receiver Monitor Status
Value Constant Description
1 API429_HALT Receiver Monitor halted
2 API429_BUSY Receiver Monitor busy