MIL-STD-1553 Reference Manual
Chapter 7 – Bus Controller Functions
7.1.19 ApiCmdBCModeCtrl
Prototype:
AiInt16 ApiCmdBCModeCtrl ( AiUInt32 ul_ModuleHandle, AiUInt8 uc_Biu,
TY_API_BC_MODE_CTRL *px_BcModeCtrl);
Driver Command:
API_BC_MODE_CTRL (0x67)
Purpose:
This function is used to enable / disable various BC functionality on-the-fly.
I
I
n
n
p
p
u
u
t
t
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
B
B
C
C
_
_
M
M
O
O
D
D
E
E
_
_
C
C
T
T
R
R
L
L
*
*
p
p
x
x
_
_
B
B
c
c
M
M
o
o
d
d
e
e
C
C
t
t
r
r
l
l
BC Mode Control description
typedef struct ty_api_bc_mode_ctrl
{
AiUInt32 ul_BcMode;
AiUInt32 ul_Ctrl;
AiUInt32 ul_Param1;
AiUInt32 ul_Param2;
AiUInt32 ul_Param3;
} TY_API_BC_MODE_CTRL;
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
B
B
c
c
M
M
o
o
d
d
e
e
API_BC_MODE_INSERT_MC17_SYNC_CNT
If enabled this mode makes the BC inserting
the synchronization counter in the data word of
a mode code 17 (Synchronize with Data). The
mode code transfer to be handled is given with
the transfer id in parameter ‘ul_Param1’.
see also the commands :
ApiCmdSyncCounterSet
ApiCmdSyncCounterGet
API_BC_MODE_STOP_ON_MC0_DBCA_FLAG
If enabled this mode makes the BC stopping if
an RT sets the DBCA flag in its status word in
reaction of a previously sent mode code 0
(Dynamic Bus Control). The mode code transfer
to be handled is given with the transfer id in
parameter ‘ul_Param1’.
API_BC_MODE_CONFIGURED_DYTAGS
This mode is used to enable / disable all
configured BC dytags
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
C
C
t
t
r
r
l
l
Disable the functionality referenced with parameter ‘ul_BcMode’
Enable the functionality referenced with parameter ‘ul_BcMode’
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
P
P
a
a
r
r
a
a
m
m
1
1
BC Transfer ID
Note: See Section 1.3.5 for the range allowed for this parameter.