|
@@ -117,7 +117,7 @@ const FullSensorRec_T full_sdr_tbl[] = {
|
|
|
*/
|
|
|
((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
- (0xfd<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ (uint8_t)(0xfd<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
0x0, //Analog Characteristics Flags
|
|
|
0x7f, //Nominal Reading
|
|
|
0xff, //Normal Maximum
|
|
@@ -216,7 +216,7 @@ const FullSensorRec_T full_sdr_tbl[] = {
|
|
|
*/
|
|
|
((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
- (0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
0x0, //Analog Characteristics Flags
|
|
|
0x7f, //Nominal Reading
|
|
|
0xff, //Normal Maximum
|
|
@@ -435,6 +435,694 @@ const FullSensorRec_T full_sdr_tbl[] = {
|
|
|
0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
"Temp_FPGA"
|
|
|
},
|
|
|
+/*
|
|
|
+ * sensor number: 5
|
|
|
+ * sensor name: +1.5V
|
|
|
+ * brief: adc_ch1
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x06, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x05, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ 0x81, //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+1.5V"
|
|
|
+ },
|
|
|
+/*
|
|
|
+ * sensor number: 6
|
|
|
+ * sensor name: +0.75V
|
|
|
+ * brief: adc_ch2
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x07, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x06, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ 0x81, //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+0.75V"
|
|
|
+ },
|
|
|
+/*
|
|
|
+ * sensor number: 7
|
|
|
+ * sensor name: +1.8V
|
|
|
+ * brief: adc_ch3
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x08, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x07, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ 0x81, //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+1.8V"
|
|
|
+ },
|
|
|
+/*
|
|
|
+ * sensor number: 8
|
|
|
+ * sensor name: +1.2V
|
|
|
+ * brief: adc_ch4
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x09, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x08, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ 0x81, //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+1.2V"
|
|
|
+ },
|
|
|
+/*
|
|
|
+ * sensor number: 9
|
|
|
+ * sensor name: +1.0V
|
|
|
+ * brief: adc_ch5
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x0A, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x09, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ 0x81, //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+1.0V"
|
|
|
+ },
|
|
|
+/*
|
|
|
+ * sensor number: 10
|
|
|
+ * sensor name: +2.5V
|
|
|
+ * brief: adc_ch6
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x0B, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x0A, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ 0x81, //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+2.5V"
|
|
|
+ },
|
|
|
+/*
|
|
|
+ * sensor number: 11
|
|
|
+ * sensor name: +3.3V
|
|
|
+ * brief: adc_ch7
|
|
|
+ */
|
|
|
+ {
|
|
|
+ /* SDR Record Header */
|
|
|
+ {
|
|
|
+ 0x0C, //Record ID
|
|
|
+ 0x51, //SDR Version
|
|
|
+ FULL_SDR_REC, //Record Type
|
|
|
+ 43+MAX_ID_STR_LEN, //Record Length = 43+string length
|
|
|
+ },
|
|
|
+ /* Record Key Bytes */
|
|
|
+ 0x20, //Sensor Owner ID
|
|
|
+ 0x0, //Sensor Owner LUN
|
|
|
+ 0x0B, //Sensor Number
|
|
|
+ /* Record Body Bytes */
|
|
|
+ 0x7, //Entity ID
|
|
|
+ 0x1, //Entity Instance
|
|
|
+ 0x7f, //Entity Initialization
|
|
|
+ 0x68, //Sensor Capabilities
|
|
|
+ 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
|
|
|
+ 0x01, //Event / Reading Type
|
|
|
+ 0x7a95, //Lower Threshold Reading Mask
|
|
|
+ 0x7a95, //Upper Threshold Reading Mask
|
|
|
+ 0x3f3f, //Settable / Readable Threshold Mask
|
|
|
+
|
|
|
+ /*
|
|
|
+ [7:6] - Analog (numeric) Data Format**
|
|
|
+ 00b = unsigned
|
|
|
+ 01b = 1's complement(singed)
|
|
|
+ 10b = 2's complement(singed)
|
|
|
+ 11b = Does not return analog (numeric) reading
|
|
|
+ [5:3] - Rate unit
|
|
|
+ 000b = none
|
|
|
+ 001b = per µS
|
|
|
+ 010b = per ms
|
|
|
+ 011b = per s
|
|
|
+ 100b = per minute
|
|
|
+ 101b = per hour
|
|
|
+ 110b = per day
|
|
|
+ 111b = reserved
|
|
|
+ [2:1] - Modifier unit
|
|
|
+ 00b = none
|
|
|
+ 01b = Basic Unit / Modifier Unit
|
|
|
+ 10b = Basic Unit * Modifier Unit
|
|
|
+ 11b = reserved
|
|
|
+ [0] - Percentage 0b = no, 1b = yes
|
|
|
+ */
|
|
|
+ (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
|
|
|
+ /*
|
|
|
+ 0 unspecified
|
|
|
+ 1 degrees C
|
|
|
+ 2 degrees F
|
|
|
+ 3 degrees K
|
|
|
+ 4 Volts
|
|
|
+ 5 Amps
|
|
|
+ */
|
|
|
+ 0x4, //Sensor Units 2 - Base Unit
|
|
|
+ 0x0, //Sensor Units 3 - Modifier Unit
|
|
|
+ 0x0, //Linerization
|
|
|
+ /* M = 0x103 */
|
|
|
+ (0x103 & 0xff), //M_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - M: MS 2 bits
|
|
|
+ [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
|
|
|
+ */
|
|
|
+ ((0x103>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
|
|
|
+ 0x0, //B_LSB
|
|
|
+ /*
|
|
|
+ [7:6] - B: MS 2 bits
|
|
|
+ Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
|
|
|
+ Accuracy exponent:
|
|
|
+ [5:0] - Accuracy: LS 6 bits
|
|
|
+ */
|
|
|
+ ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
|
|
|
+ ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
|
|
|
+ (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
|
|
|
+ 0x0, //Analog Characteristics Flags
|
|
|
+ 0x7f, //Nominal Reading
|
|
|
+ 0xff, //Normal Maximum
|
|
|
+ 0x00, //Normal Minimum
|
|
|
+ 0xff, //Sensor Maximum Reading
|
|
|
+ 0x00, //Sensor Minimum Reading
|
|
|
+ 0xff, //Upper Non-Recoverable Threshold
|
|
|
+ 0xff, //Upper Critical Threshold
|
|
|
+ 0xff, //Upper Non-Critical Threshold
|
|
|
+ 0x00, //Lower Non-Recoverable Threshold
|
|
|
+ 0x00, //Lower Critical Threshold
|
|
|
+ 0x00, //Lower Non-Critical threshold
|
|
|
+ 0x0, //Positive - threshold Hysteresis value
|
|
|
+ 0x0, //Negative - threshold Hysteresis value
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //Reserved
|
|
|
+ 0x0, //OEM
|
|
|
+ 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
|
|
|
+ "+3.3V"
|
|
|
+ },
|
|
|
+
|
|
|
};
|
|
|
|
|
|
const CompactSensorRec_T Compact_sdr_tbl[] = {
|