User`s manual
Configuring the Camera
4-20 Basler L304kc
Draft
Red Gain CSR
Note: The red gain can be set by writing a floating point value to the Absolute Red Gain field or
by writing an integer value to the Raw Red Gain field. Refer to Section 4.2.2.2 for an explanation
of the difference between these two fields.
Register Base Address: 0x0E80
Field Name: Register Status Offset: 0x0000 Size: 1 Byte Type: Read only
Description: The integer value in this field indicates the status of this control register:
0x00 = The register is not available
0x01 = The register is available. All related settings are OK
0x80 = A value in the register is set out of range
Field Name: Absolute Red Gain Offset: 0x0001 Size: 4 Bytes Type: Read / Write
Description: Writing a floating point value to this field to sets the red gain in dB. For example, if the value
in this field is set to +0.55, the red gain would be +0.55 dB.
The red gain can normally range from -6.00 dB to +20.00 dB in increments of 0.01.
When the gain lock feature (see Section 3.6.2) is enabled, the upper and lower limits of the
red gain range may be restricted. Before writing to this field, be sure to check the values in
the Absolute Min and Absolute Max fields.
The value in this field is a standard IEEE-754 single precision (32 bit) floating point number.
See Section 3.6.2 for more information about red gain.
Field Name: Absolute Min Offset: 0x0005 Size: 4 Bytes Type: Read only
Description: Minimum allowed floating point value for the absolute red gain setting. This field is updated
to reflect limitations caused by the way any related features are set.
The value in this field is a standard IEEE-754 single precision (32 bit) floating point number.
Field Name: Absolute Max Offset: 0x0009 Size: 4 Bytes Type: Read only
Description: Maximum allowed floating point value for the absolute red gain setting. This field is updated
to reflect limitations caused by the way any related features are set.
The value in this field is a standard IEEE-754 single precision (32 bit) floating point number.
Field Name: Raw Red Gain Offset: 0x000D Size: 2 Bytes Type: Read / Write
Description: Writing an integer value to this field sets the red gain.
The value can normally range from 128 (0x0080) to 2560 (0x0A00).
When the gain lock feature (see Section 3.6.2) is enabled, the upper and lower limits of this
range may be restricted. Before writing to this field, be sure to check the values in the Raw
Min and Raw Max fields.
The dB of red gain that the camera will apply at a given setting in this field is determined
by this formula:
dB = 20 x log ( raw setting / 256 )
For example, if the value in this field is set to 270 (0x00F0), then:
dB = 20 x log (270 / 256)
dB = +0.46
The 2 bytes in this field are interpreted as follows:
Byte 1 = Low byte of the raw value
Byte 2 = High byte of the raw value
See Section 3.6.2 for more information about red gain.