EasyManua.ls Logo

Aim MIL-STD-1553 - Apisetdeviceconfig

Aim MIL-STD-1553
502 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
48 MIL-STD-1553 Reference Manual
Chapter 2 - Library Administration and Initialization Functions
2.1.20 ApiSetDeviceConfig
Prototype:
AiInt16 ApiSetDeviceConfig( AiUInt32 ul_Module, TY_API_DEVICE_CONFIG* px_Config);
Driver Command:
(none)
Purpose:
Set the device configuration from px_Config. The configuration should be read with
ApiGetDeviceConfig. After the changes have been done the configuration can be
written back with this function.
Input
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
D
D
E
E
V
V
I
I
C
C
E
E
_
_
C
C
O
O
N
N
F
F
I
I
G
G
*
*
p
p
x
x
_
_
C
C
o
o
n
n
f
f
i
i
g
g
The device config struct.
typedef struct ty_api_device_config
{
AiUInt8 uc_DmaEnabled;
AiUInt8 uc_DataQueueMemoryType;
AiUInt8 uc_ReservedB3;
AiUInt8 uc_ReservedB4;
AiUInt16 uw_ReservedW1;
AiUInt16 uw_ReservedW2;
AiUInt32 ul_DmaMinimumSize;
AiUInt32 ul_IntRequestCount;
AiUInt32 ul_DriverFlags;
AiUInt32 ul_ReservedLW4;
AiUInt32 ul_ReservedLW5;
AiUInt32 ul_ReservedLW6;
AiUInt32 ul_ReservedLW7;
AiUInt32 ul_ReservedLW8;
} TY_API_DEVICE_CONFIG;
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
D
D
m
m
a
a
E
E
n
n
a
a
b
b
l
l
e
e
d
d
Enable or disable DMA read transfers.
This value is only applicable for system driver version 12 or higher.
Value
Description
0
DMA disabled
1
DMA enabled
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
D
D
m
m
a
a
M
M
i
i
n
n
i
i
m
m
u
u
m
m
S
S
i
i
z
z
e
e
The memory size limit for DMA transfers. If a requested memory block is bigger or equal to this
value a DMA transfer will be issued.
This value is only applicable for system driver version 12 or higher.
A
A
i
i
U
U
I
I
n
n
t
t
8
8
u
u
c
c
_
_
D
D
a
a
t
t
a
a
Q
Q
u
u
e
e
u
u
e
e
M
M
e
e
m
m
o
o
r
r
y
y
T
T
y
y
p
p
e
e
The memory type of the memory where the data queue headers are located.
Value
Define
Description
1
API_MEMTYPE_SHARED
Shared memory
2
API_MEMTYPE_LOCAL
Local memory (AyI)
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
I
I
n
n
t
t
R
R
e
e
q
q
u
u
e
e
s
s
t
t
C
C
o
o
u
u
n
n
t
t
The number of interrupt requests sent to the driver.

Table of Contents

Other manuals for Aim MIL-STD-1553