
Configuring the Camera
BASLER L800
k
4-57
Draft
4.3.2 Basic Read/Write Command Explanations
4.3.2.1 Read Command
This section includes a text description the hex digits included in a command message used to
read the Status 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 read command. Sample code that
illustrates how to send a read command is available from Basler (see Section
The hex digits included in the read command are:
0x01, 0x0C, 0x01, 0x00, 0x18, 0x01, 0x03
0x01
is the BFS field.
The value in the BFS field is always 0x01.
0x0C
is the FTF field.
The hex value of 0x0C in the FTF field converts to a binary value of 0b00001100.
Bits 7 through 3 of the binary value indicate the OpCode. As shown in the table on page
, an OpCode value of 0b00001 indicates that this is a read 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 and 0 indicate the AddrLen. As shown in the table on page
, a value of 0b00
for the AddrLen indicates that the address portion of this frame contains a 16-bit address.
If you check the table on page
, you will find that the address for the Status field of
the Test Image CSR is 0x1800, a 16-bit address. (You are free to use any supported
AddrLen as long as the CSR address will fit into it.)
0x01
is the DataLen field.
This field indicates the data size in bytes that will be transferred by using this read
command. As shown in the table on page
, the data size for the Status field of the
Test Image CSR is 1 byte.
(Note that for read commands, the data size specified in the DataLen field represents the
number of bytes of data that you expect to see in the response frame. No data bytes are
actually included in the read command.)
0x00, 0x18
is the Address field (in little endian).
This field indicates the CSR address from which the data bytes will be read.
The little endian values of 0x00, 0x18 in the address field translate to an address of
0x1800. If you check the table on page
, you will find that 0x1800 is the address for
the Status field of the Test Image CSR.
0x15
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.
The value in the BFE field is always
0x03
.
Summary of Contents for L800k
Page 4: ......
Page 10: ...Contents VI BASLER L800k Draft...
Page 23: ...Camera Interface BASLER L800k 2 7 Draft Figure 2 3 Camera Frame Grabber Interface...
Page 40: ...Camera Interface 2 24 BASLER L800k Draft...
Page 152: ...Mechanical Considerations 5 6 BASLER L800k Draft...
Page 166: ...Feedback iv BASLER L800k Draft...