MIL-STD-1553 Reference Manual
Chapter 7 – Bus Controller Functions
7.1.25 ApiCmdBCXferDef
Prototype:
AiInt16 ApiCmdBCXferDef ( AiUInt32 ul_ModuleHandle, AiUInt8 biu,
TY_API_BC_XFER *pxfer, AiUInt32 *desc_addr );
Driver Command:
API_BC_XFER_DEF (0x72)
Purpose:
This function is used to define all transfer properties of a Bus Controller Transfer
including source/destination information, error injection specifications, and interrupt
generation.
Note: The Status Word Exception Mask swxm is used to mask (AND mask) the Status
Word response of the terminal (both terminals for RT-RT transfer type). If the
result of the mask process is not zero an Interrupt on Status Word Exception is
asserted if enabled. Unexpected responses are not counted as errors and will
not cause an error interrupt. The terminal address field of the received Status
Word is checked automatically and causes a Transfer Error on mismatch. In
this case error counting and Interrupt on Transfer Error assertion is enabled.
I
I
n
n
p
p
u
u
t
t
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
B
B
C
C
_
_
X
X
F
F
E
E
R
R
*
*
p
p
x
x
f
f
e
e
r
r
BC Transfer description
typedef struct ty_api_bc_xfer
{
AiUInt16 xid;
AiUInt16 hid;
AiUInt8 type;
AiUInt8 chn;
AiUInt8 xmt_rt;
AiUInt8 rcv_rt;
AiUInt8 xmt_sa;
AiUInt8 rcv_sa;
AiUInt8 wcnt;
AiUInt8 tic;
AiUInt8 hlt;
AiUInt8 rte;
AiUInt8 res;
AiUInt8 sxh;
AiUInt8 rsp;
AiUInt8 gap_mode;
AiUInt16 swxm;
struct ty_api_bc_err err;
AiUInt16 gap;
} TY_API_BC_XFER;