Configuring the Camera
Basler A400k
4-51
DRAFT
4.3.2.2 Write Command
This section includes a text description the hex digits included in a command message used to
write a value of 0x01 to the Mode field of the Test Image Mode CSR (see page
). The intent
of this section is to give you a basic understanding of the elements included in a write command.
Section
includes actual samples of the code used to send a write command.
The hex digits included in the write command are:
0x01, 0x04, 0x04, 0x01, 0x18, 0x01, 0x18, 0x03
0x01
is the BFS field.
The value in the BFS field is always 0x01.
0x04
is the FTF field.
The hex value of 0x04 in the FTF field converts to a binary value of 0b00000100.
Bits 7 through 3 of the binary value indicate the OpCode. As shown in the table on page
, an OpCode value of 0b00000 indicates that this is a write command frame.
Bit 2 indicates the presence or absence of a BCC in the frame. As shown in the table on
page
, when this bit is set to 0b1, it indicates that a BCC is present.
Bits 1 through 0 indicate the AddrLen. As shown in the table on page
, a value of
0b00 for the AddrLen indicates that the Address field in this frame contains a 16-bit
address. If you check the table on page
, you will find that the address for the Mode
field of the Test Image CSR is 0x1801, a 16-bit address. (You are free to use any
supported AddrLen as long as the CSR address will fit into it.)
0x04
Is the DataLen field.
This field indicates the data size in bytes that will be transferred by using this write
command. As shown in the table on page
, the data size for the Mode field of the
Test Image Mode CSR is 4 bytes.
0x01, 0x18
is the Address field in little endian.
This field indicates the CSR address to which the data bytes will be written.
The little endian values of 0x01, 0x18 in the address field translate to an address of
0x1801. If you check the table on page
, you will find that 0x1801 is the address for
the Mode field the Test Image Mode CSR. (The address for any field within an A400k
CSR is equal to the base address for the CSR plus the offset for the CSR field. In this
case, the base address of the Test Image Mode CSR is 1800 and the offset for the Mode
field is 0001. This results in an address of 1801 for the Mode field.)
0x01
is the Data field.
This field contains the data that must be written to the register in order to activate Test
Image One (see the table on page
).
0x18
is the BCC field.
See page
for instructions on calculating a BCC.
(Note that the use of a BCC is optional. In this example, we assume that a BCC is used.)
0x03
is the BFE field.
The value in the BFE field is always 0x03.
Содержание A400K
Страница 1: ...Basler A400k USER S MANUAL Document Number DA00062410 Release Date 27 September 2007 ...
Страница 4: ......
Страница 25: ...Camera Interface Basler A400k 2 9 DRAFT Figure 2 5 A402k Camera Frame Grabber Interface ...
Страница 26: ...Camera Interface 2 10 Basler A400k DRAFT Figure 2 6 A403k Camera Frame Grabber Interface ...
Страница 27: ...Camera Interface Basler A400k 2 11 DRAFT Figure 2 7 A404k Camera Frame Grabber Interface ...
Страница 52: ...Camera Interface 2 36 Basler A400k DRAFT ...
Страница 154: ...Configuring the Camera 4 54 Basler A400k DRAFT ...
Страница 168: ...Troubleshooting 6 10 Basler A400k DRAFT ...
Страница 172: ...Feedback iv Basler A400k DRAFT ...
Страница 176: ...Index viii Basler A400k DRAFT ...