MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.17 ApiCmdSyncCounterSet
Prototype:
AiInt16 ApiCmdSyncCounterSet ( AiUInt32 ul_ModuleHandle, AiUInt8 uc_Biu,
TY_API_SYNC_CNT_SET *px_SyncCntSet );
Driver Command:
API_SYNC_CNT_SET (0x25)
Purpose:
This function sets synchronization counter init value. This counter is used for the data
word of a synchronize mode code (MC17).
Note: The functionaliy is only applicaple if enabled with the function
ApiCmdBCModeCtrl().
Input
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
S
S
N
N
Y
Y
C
C
_
_
C
C
N
N
T
T
_
_
S
S
E
E
T
T
*
*
p
p
x
x
_
_
S
S
y
y
n
n
c
c
C
C
n
n
t
t
S
S
e
e
t
t
Synchronization Counter set structure
typedef struct ty_api_sync_cnt_set
{
AiUInt32 ul_SyncCntVal;
} TY_API_SYNC_CNT_SET
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
S
S
y
y
n
n
c
c
C
C
n
n
t
t
V
V
a
a
l
l
Synchronization Counter Init Value
Synchronization Counter in steps of 64µs
(range from 0..4,19 sec)
Output
Return Value
All API functions return API_OK if no error occurred. If the return value is not equal
to API_OK the function ApiGetErrorDescription can be used to obtain an error
description.