A2C-SG2-M12
WWW.LILLIESYSTEMS.COM
27 of 44
0x01 = Calibrate channel 2
INX:
Coefficient index. Value must be between 0 and 31.
RESV:
Reserved byte for future use, and can have any value.
COEFF:
The floating formatted using big endianness. Data[2] thus contains the sign bit and 7 exponent bits.
Example 1: Setting channel 1, coefficient index 1 to a value of 5000.0f
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
0x45
0x00
(channel 1)
0x01
Reserved
0x45
0x9C
0x40
0x00
DLC = 0x08
Example 2: Setting channel 2, coefficient index 31 to a value of -5000.0f
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
0x45
0x01
(channel 2)
0x1F
Last Index 31
Reserved
0xC5
0x9C
0x40
0x00
DLC = 0x08
11.1.3
Command: Get FIR parameters
Send this command:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xD4
Channel
DLC = 0x02 (values above 0x02 are also valid, but Data bytes are not used)
Channel:
is the channel number that is requested and must be one of the following values
0x00 = channel 1
0x01 = channel 2
Reply:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xD4
Channel
EN
TAPS
DLC = 0x04
EN:
Enable filter
0x00 = Filter disabled (bypassed)
0x01 = Filter enabled
TAPS:
Number of taps used.
11.1.4
Command: Get FIR Coefficients
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xD5
Channel
INX
DLC = 0x03
Channel:
0x00 = Calibrate channel 1
0x01 = Calibrate channel 2
INX:
Coefficient index. Value must be between 0 and 31.
Reply:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xD5
Channel
INX
0x00
COEFF
COEFF
COEFF
COEFF
DLC = 0x08