18 |
4. Register address mapping
Address mapping should be applied to lower-level programming development. Before that,
developers should be familiar with the principles of computer system and PCI interface.
Therefore, in the Windows system environment, we recommend developers to use the
drivers and dll provided by us to develop the devices.
All registers in the device are 32-bit wide, some registers use all 32-bits, and some
registers only use a part of them. The register addresses given in this paper are all offset
addresses.
Later, by default, developers are already familiar with the principle of computer system
and PCI interface, so the related terms and reading and writing methods will not be
described in detail.
4.1.
PCI register
Offset
Address
Name
R/W
Explain
0x0000
Interrupt
state
R/W
Bit-0: DMA completes the interrupt, 1 means an
interrupt is generated, and 0 means no interrupt is
generated.
Bit-1:An interrupt is generated about the DI electrical
level, 1 means an interrupt is generated, and 0 means
no interrupt is generated.
0x0004
Interrupt
enable
R/W
Bit-0: DMA completes the interrupt enable, 1 means
an interrupt is generated, and 0 means no interrupt is
generated.
Bit-1:An interrupt enable is generated about the DI
electrical level, 1 means an interrupt is generated, and
0 means no interrupt is generated.
0x0008
DMA
transfer
destination
header
address
R/W
When the device performs DMA transfer, it
corresponds to the first address of the computer
memory target.
0x000C
DMA
transfer
length
R/W
Actual DMA transfer length, in DWORD.
0x0010
DMA
transfer
counter
R/W
Actual DMA transfer length, in DWORD.