sensor_sdr.c 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133
  1. /*
  2. * config sensor sdr in here.
  3. * Author:Jimbo
  4. */
  5. #include <stdio.h>
  6. #include <stdint.h>
  7. #include "com_IPMI_SDRRecord.h"
  8. /*
  9. * sdr table
  10. */
  11. const MgmtCtrlrDevLocator_T bmc_sdr = {
  12. /* SDR Record Header */
  13. {
  14. 0x01, //Record ID
  15. 0x51, //SDR Version
  16. MGMT_CTRL_DEV_LOCATOR_SDR_REC, //Record Type
  17. 11+MAX_ID_STR_LEN, //Record Length = 11+string length
  18. },
  19. /* Record Key Bytes*/
  20. 0x20, /* Slave address - 0x20 Primary BMC */
  21. 0x00, /* ChannelNumber - 0x00 Primary BMC */
  22. /* Record Body Bytes*/
  23. 0x0, /* power state notification */
  24. 0xff, /* Device Capablities */
  25. {0, 0, 0,}, /* RESERVED */
  26. 0x0, /* Entity ID */
  27. 0x1, /* Entity Instance */
  28. 0x0, /* OEM */
  29. 0xc0 +MAX_ID_STR_LEN, /* ID String Type / Length Code */
  30. "STM32F429_BMC"
  31. };
  32. /***************** Attation ************************
  33. * <Record ID>, <Sensor Number> must be modified!!!
  34. **************************************************/
  35. const FullSensorRec_T full_sdr_tbl[] = {
  36. /*
  37. * sensor number: 1
  38. * sensor name: +12V
  39. * brief: ltc4280
  40. */
  41. {
  42. /* SDR Record Header */
  43. {
  44. 0x02, //Record ID
  45. 0x51, //SDR Version
  46. FULL_SDR_REC, //Record Type
  47. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  48. },
  49. /* Record Key Bytes */
  50. 0x20, //Sensor Owner ID
  51. 0x0, //Sensor Owner LUN
  52. 0x01, //Sensor Number
  53. /* Record Body Bytes */
  54. 0x7, //Entity ID
  55. 0x1, //Entity Instance
  56. 0x7f, //Entity Initialization
  57. 0x68, //Sensor Capabilities
  58. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  59. 0x01, //Event / Reading Type
  60. 0x7a95, //Lower Threshold Reading Mask
  61. 0x7a95, //Upper Threshold Reading Mask
  62. 0x3f3f, //Settable / Readable Threshold Mask
  63. /*
  64. [7:6] - Analog (numeric) Data Format**
  65. 00b = unsigned
  66. 01b = 1's complement(singed)
  67. 10b = 2's complement(singed)
  68. 11b = Does not return analog (numeric) reading
  69. [5:3] - Rate unit
  70. 000b = none
  71. 001b = per µS
  72. 010b = per ms
  73. 011b = per s
  74. 100b = per minute
  75. 101b = per hour
  76. 110b = per day
  77. 111b = reserved
  78. [2:1] - Modifier unit
  79. 00b = none
  80. 01b = Basic Unit / Modifier Unit
  81. 10b = Basic Unit * Modifier Unit
  82. 11b = reserved
  83. [0] - Percentage 0b = no, 1b = yes
  84. */
  85. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  86. /*
  87. 0 unspecified
  88. 1 degrees C
  89. 2 degrees F
  90. 3 degrees K
  91. 4 Volts
  92. 5 Amps
  93. */
  94. 0x4, //Sensor Units 2 - Base Unit
  95. 0x0, //Sensor Units 3 - Modifier Unit
  96. 0x0, //Linerization
  97. /* M = 0x12e x 10^-4 */
  98. 0x3d, //M_LSB
  99. /*
  100. [7:6] - M: MS 2 bits
  101. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  102. */
  103. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  104. 0x0, //B_LSB
  105. /*
  106. [7:6] - B: MS 2 bits
  107. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  108. Accuracy exponent:
  109. [5:0] - Accuracy: LS 6 bits
  110. */
  111. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  112. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  113. (uint8_t)(0xfd<<4)+(0x0&0x0F), //R exponent,B exponent
  114. 0x0, //Analog Characteristics Flags
  115. 0x7f, //Nominal Reading
  116. 0xff, //Normal Maximum
  117. 0x00, //Normal Minimum
  118. 0xff, //Sensor Maximum Reading
  119. 0x00, //Sensor Minimum Reading
  120. 0xff, //Upper Non-Recoverable Threshold
  121. 0xff, //Upper Critical Threshold
  122. 0xff, //Upper Non-Critical Threshold
  123. 0x00, //Lower Non-Recoverable Threshold
  124. 0x00, //Lower Critical Threshold
  125. 0x00, //Lower Non-Critical threshold
  126. 0x0, //Positive - threshold Hysteresis value
  127. 0x0, //Negative - threshold Hysteresis value
  128. 0x0, //Reserved
  129. 0x0, //Reserved
  130. 0x0, //OEM
  131. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  132. "+12V"
  133. },
  134. /*
  135. * sensor number: 2
  136. * sensor name: +12V_Current
  137. * brief: ltc4280
  138. */
  139. {
  140. /* SDR Record Header */
  141. {
  142. 0x03, //Record ID
  143. 0x51, //SDR Version
  144. FULL_SDR_REC, //Record Type
  145. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  146. },
  147. /* Record Key Bytes */
  148. 0x20, //Sensor Owner ID
  149. 0x0, //Sensor Owner LUN
  150. 0x02, //Sensor Number
  151. /* Record Body Bytes */
  152. 0x7, //Entity ID
  153. 0x1, //Entity Instance
  154. 0x7f, //Entity Initialization
  155. 0x68, //Sensor Capabilities
  156. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  157. 0x01, //Event / Reading Type
  158. 0x7a95, //Lower Threshold Reading Mask
  159. 0x7a95, //Upper Threshold Reading Mask
  160. 0x3f3f, //Settable / Readable Threshold Mask
  161. /*
  162. [7:6] - Analog (numeric) Data Format**
  163. 00b = unsigned
  164. 01b = 1's complement(singed)
  165. 10b = 2's complement(singed)
  166. 11b = Does not return analog (numeric) reading
  167. [5:3] - Rate unit
  168. 000b = none
  169. 001b = per µS
  170. 010b = per ms
  171. 011b = per s
  172. 100b = per minute
  173. 101b = per hour
  174. 110b = per day
  175. 111b = reserved
  176. [2:1] - Modifier unit
  177. 00b = none
  178. 01b = Basic Unit / Modifier Unit
  179. 10b = Basic Unit * Modifier Unit
  180. 11b = reserved
  181. [0] - Percentage 0b = no, 1b = yes
  182. */
  183. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  184. /*
  185. 0 unspecified
  186. 1 degrees C
  187. 2 degrees F
  188. 3 degrees K
  189. 4 Volts
  190. 5 Amps
  191. */
  192. 0x5, //Sensor Units 2 - Base Unit
  193. 0x0, //Sensor Units 3 - Modifier Unit
  194. 0x0, //Linerization
  195. /* M = 0x12e x 10^-4 */
  196. 0x2e, //M_LSB
  197. /*
  198. [7:6] - M: MS 2 bits
  199. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  200. */
  201. ((0x12e>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  202. 0x0, //B_LSB
  203. /*
  204. [7:6] - B: MS 2 bits
  205. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  206. Accuracy exponent:
  207. [5:0] - Accuracy: LS 6 bits
  208. */
  209. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  210. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  211. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  212. 0x0, //Analog Characteristics Flags
  213. 0x7f, //Nominal Reading
  214. 0xff, //Normal Maximum
  215. 0x00, //Normal Minimum
  216. 0xff, //Sensor Maximum Reading
  217. 0x00, //Sensor Minimum Reading
  218. 0xff, //Upper Non-Recoverable Threshold
  219. 0xff, //Upper Critical Threshold
  220. 0xff, //Upper Non-Critical Threshold
  221. 0x00, //Lower Non-Recoverable Threshold
  222. 0x00, //Lower Critical Threshold
  223. 0x00, //Lower Non-Critical threshold
  224. 0x0, //Positive - threshold Hysteresis value
  225. 0x0, //Negative - threshold Hysteresis value
  226. 0x0, //Reserved
  227. 0x0, //Reserved
  228. 0x0, //OEM
  229. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  230. "+12V_Current"
  231. },
  232. /*
  233. * sensor number: 3
  234. * sensor name: Temp_Board
  235. * brief: G780 local
  236. */
  237. {
  238. /* SDR Record Header */
  239. {
  240. 0x04, //Record ID
  241. 0x51, //SDR Version
  242. FULL_SDR_REC, //Record Type
  243. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  244. },
  245. /* Record Key Bytes */
  246. 0x20, //Sensor Owner ID
  247. 0x0, //Sensor Owner LUN
  248. 0x03, //Sensor Number
  249. /* Record Body Bytes */
  250. 0x7, //Entity ID
  251. 0x1, //Entity Instance
  252. 0x7f, //Entity Initialization
  253. 0x68, //Sensor Capabilities
  254. 0x01, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  255. 0x01, //Event / Reading Type
  256. 0x7a95, //Lower Threshold Reading Mask
  257. 0x7a95, //Upper Threshold Reading Mask
  258. 0x3f3f, //Settable / Readable Threshold Mask
  259. /*
  260. [7:6] - Analog (numeric) Data Format**
  261. 00b = unsigned
  262. 01b = 1's complement(singed)
  263. 10b = 2's complement(singed)
  264. 11b = Does not return analog (numeric) reading
  265. [5:3] - Rate unit
  266. 000b = none
  267. 001b = per µS
  268. 010b = per ms
  269. 011b = per s
  270. 100b = per minute
  271. 101b = per hour
  272. 110b = per day
  273. 111b = reserved
  274. [2:1] - Modifier unit
  275. 00b = none
  276. 01b = Basic Unit / Modifier Unit
  277. 10b = Basic Unit * Modifier Unit
  278. 11b = reserved
  279. [0] - Percentage 0b = no, 1b = yes
  280. */
  281. (0x2<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  282. /*
  283. 0 unspecified
  284. 1 degrees C
  285. 2 degrees F
  286. 3 degrees K
  287. 4 Volts
  288. 5 Amps
  289. */
  290. 0x1, //Sensor Units 2 - Base Unit
  291. 0x0, //Sensor Units 3 - Modifier Unit
  292. 0x0, //Linerization
  293. 0x1, //M_LSB
  294. /*
  295. [7:6] - M: MS 2 bits
  296. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  297. */
  298. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  299. 0x0, //B_LSB
  300. /*
  301. [7:6] - B: MS 2 bits
  302. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  303. Accuracy exponent:
  304. [5:0] - Accuracy: LS 6 bits
  305. */
  306. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  307. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  308. (0x0<<4)+(0x0&0x0F), //R exponent,B exponent
  309. 0x0, //Analog Characteristics Flags
  310. 0x7f, //Nominal Reading
  311. 0x7f, //Normal Maximum
  312. 0x80, //Normal Minimum
  313. 0x7f, //Sensor Maximum Reading
  314. 0x80, //Sensor Minimum Reading
  315. 0x7f, //Upper Non-Recoverable Threshold
  316. 0x7f, //Upper Critical Threshold
  317. 0x7f, //Upper Non-Critical Threshold
  318. 0x80, //Lower Non-Recoverable Threshold
  319. 0x80, //Lower Critical Threshold
  320. 0x80, //Lower Non-Critical threshold
  321. 0x0, //Positive - threshold Hysteresis value
  322. 0x0, //Negative - threshold Hysteresis value
  323. 0x0, //Reserved
  324. 0x0, //Reserved
  325. 0x0, //OEM
  326. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  327. "Temp_Board"
  328. },
  329. /*
  330. * sensor number: 4
  331. * sensor name: Temp_FPGA
  332. * brief: G780 remote
  333. */
  334. {
  335. /* SDR Record Header */
  336. {
  337. 0x05, //Record ID
  338. 0x51, //SDR Version
  339. FULL_SDR_REC, //Record Type
  340. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  341. },
  342. /* Record Key Bytes */
  343. 0x20, //Sensor Owner ID
  344. 0x0, //Sensor Owner LUN
  345. 0x04, //Sensor Number
  346. /* Record Body Bytes */
  347. 0x7, //Entity ID
  348. 0x1, //Entity Instance
  349. 0x7f, //Entity Initialization
  350. 0x68, //Sensor Capabilities
  351. 0x01, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  352. 0x01, //Event / Reading Type
  353. 0x7a95, //Lower Threshold Reading Mask
  354. 0x7a95, //Upper Threshold Reading Mask
  355. 0x3f3f, //Settable / Readable Threshold Mask
  356. /*
  357. [7:6] - Analog (numeric) Data Format**
  358. 00b = unsigned
  359. 01b = 1's complement(singed)
  360. 10b = 2's complement(singed)
  361. 11b = Does not return analog (numeric) reading
  362. [5:3] - Rate unit
  363. 000b = none
  364. 001b = per µS
  365. 010b = per ms
  366. 011b = per s
  367. 100b = per minute
  368. 101b = per hour
  369. 110b = per day
  370. 111b = reserved
  371. [2:1] - Modifier unit
  372. 00b = none
  373. 01b = Basic Unit / Modifier Unit
  374. 10b = Basic Unit * Modifier Unit
  375. 11b = reserved
  376. [0] - Percentage 0b = no, 1b = yes
  377. */
  378. (0x2<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  379. /*
  380. 0 unspecified
  381. 1 degrees C
  382. 2 degrees F
  383. 3 degrees K
  384. 4 Volts
  385. 5 Amps
  386. */
  387. 0x1, //Sensor Units 2 - Base Unit
  388. 0x0, //Sensor Units 3 - Modifier Unit
  389. 0x0, //Linerization
  390. 0x1, //M_LSB
  391. /*
  392. [7:6] - M: MS 2 bits
  393. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  394. */
  395. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  396. 0x0, //B_LSB
  397. /*
  398. [7:6] - B: MS 2 bits
  399. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  400. Accuracy exponent:
  401. [5:0] - Accuracy: LS 6 bits
  402. */
  403. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  404. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  405. (0x0<<4)+(0x0&0x0F), //R exponent,B exponent
  406. 0x0, //Analog Characteristics Flags
  407. 0x7f, //Nominal Reading
  408. 0x7f, //Normal Maximum
  409. 0x80, //Normal Minimum
  410. 0x7f, //Sensor Maximum Reading
  411. 0x80, //Sensor Minimum Reading
  412. 0x7f, //Upper Non-Recoverable Threshold
  413. 0x7f, //Upper Critical Threshold
  414. 0x7f, //Upper Non-Critical Threshold
  415. 0x80, //Lower Non-Recoverable Threshold
  416. 0x80, //Lower Critical Threshold
  417. 0x80, //Lower Non-Critical threshold
  418. 0x0, //Positive - threshold Hysteresis value
  419. 0x0, //Negative - threshold Hysteresis value
  420. 0x0, //Reserved
  421. 0x0, //Reserved
  422. 0x0, //OEM
  423. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  424. "Temp_FPGA"
  425. },
  426. /*
  427. * sensor number: 5
  428. * sensor name: +1.5V
  429. * brief: adc_ch1
  430. */
  431. {
  432. /* SDR Record Header */
  433. {
  434. 0x06, //Record ID
  435. 0x51, //SDR Version
  436. FULL_SDR_REC, //Record Type
  437. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  438. },
  439. /* Record Key Bytes */
  440. 0x20, //Sensor Owner ID
  441. 0x0, //Sensor Owner LUN
  442. 0x05, //Sensor Number
  443. /* Record Body Bytes */
  444. 0x7, //Entity ID
  445. 0x1, //Entity Instance
  446. 0x7f, //Entity Initialization
  447. 0x68, //Sensor Capabilities
  448. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  449. 0x01, //Event / Reading Type
  450. 0x7a95, //Lower Threshold Reading Mask
  451. 0x7a95, //Upper Threshold Reading Mask
  452. 0x3f3f, //Settable / Readable Threshold Mask
  453. /*
  454. [7:6] - Analog (numeric) Data Format**
  455. 00b = unsigned
  456. 01b = 1's complement(singed)
  457. 10b = 2's complement(singed)
  458. 11b = Does not return analog (numeric) reading
  459. [5:3] - Rate unit
  460. 000b = none
  461. 001b = per µS
  462. 010b = per ms
  463. 011b = per s
  464. 100b = per minute
  465. 101b = per hour
  466. 110b = per day
  467. 111b = reserved
  468. [2:1] - Modifier unit
  469. 00b = none
  470. 01b = Basic Unit / Modifier Unit
  471. 10b = Basic Unit * Modifier Unit
  472. 11b = reserved
  473. [0] - Percentage 0b = no, 1b = yes
  474. */
  475. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  476. /*
  477. 0 unspecified
  478. 1 degrees C
  479. 2 degrees F
  480. 3 degrees K
  481. 4 Volts
  482. 5 Amps
  483. */
  484. 0x4, //Sensor Units 2 - Base Unit
  485. 0x0, //Sensor Units 3 - Modifier Unit
  486. 0x0, //Linerization
  487. 0x81, //M_LSB
  488. /*
  489. [7:6] - M: MS 2 bits
  490. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  491. */
  492. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  493. 0x0, //B_LSB
  494. /*
  495. [7:6] - B: MS 2 bits
  496. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  497. Accuracy exponent:
  498. [5:0] - Accuracy: LS 6 bits
  499. */
  500. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  501. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  502. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  503. 0x0, //Analog Characteristics Flags
  504. 0x7f, //Nominal Reading
  505. 0xff, //Normal Maximum
  506. 0x00, //Normal Minimum
  507. 0xff, //Sensor Maximum Reading
  508. 0x00, //Sensor Minimum Reading
  509. 0xff, //Upper Non-Recoverable Threshold
  510. 0xff, //Upper Critical Threshold
  511. 0xff, //Upper Non-Critical Threshold
  512. 0x00, //Lower Non-Recoverable Threshold
  513. 0x00, //Lower Critical Threshold
  514. 0x00, //Lower Non-Critical threshold
  515. 0x0, //Positive - threshold Hysteresis value
  516. 0x0, //Negative - threshold Hysteresis value
  517. 0x0, //Reserved
  518. 0x0, //Reserved
  519. 0x0, //OEM
  520. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  521. "+1.5V"
  522. },
  523. /*
  524. * sensor number: 6
  525. * sensor name: +0.75V
  526. * brief: adc_ch2
  527. */
  528. {
  529. /* SDR Record Header */
  530. {
  531. 0x07, //Record ID
  532. 0x51, //SDR Version
  533. FULL_SDR_REC, //Record Type
  534. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  535. },
  536. /* Record Key Bytes */
  537. 0x20, //Sensor Owner ID
  538. 0x0, //Sensor Owner LUN
  539. 0x06, //Sensor Number
  540. /* Record Body Bytes */
  541. 0x7, //Entity ID
  542. 0x1, //Entity Instance
  543. 0x7f, //Entity Initialization
  544. 0x68, //Sensor Capabilities
  545. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  546. 0x01, //Event / Reading Type
  547. 0x7a95, //Lower Threshold Reading Mask
  548. 0x7a95, //Upper Threshold Reading Mask
  549. 0x3f3f, //Settable / Readable Threshold Mask
  550. /*
  551. [7:6] - Analog (numeric) Data Format**
  552. 00b = unsigned
  553. 01b = 1's complement(singed)
  554. 10b = 2's complement(singed)
  555. 11b = Does not return analog (numeric) reading
  556. [5:3] - Rate unit
  557. 000b = none
  558. 001b = per µS
  559. 010b = per ms
  560. 011b = per s
  561. 100b = per minute
  562. 101b = per hour
  563. 110b = per day
  564. 111b = reserved
  565. [2:1] - Modifier unit
  566. 00b = none
  567. 01b = Basic Unit / Modifier Unit
  568. 10b = Basic Unit * Modifier Unit
  569. 11b = reserved
  570. [0] - Percentage 0b = no, 1b = yes
  571. */
  572. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  573. /*
  574. 0 unspecified
  575. 1 degrees C
  576. 2 degrees F
  577. 3 degrees K
  578. 4 Volts
  579. 5 Amps
  580. */
  581. 0x4, //Sensor Units 2 - Base Unit
  582. 0x0, //Sensor Units 3 - Modifier Unit
  583. 0x0, //Linerization
  584. 0x81, //M_LSB
  585. /*
  586. [7:6] - M: MS 2 bits
  587. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  588. */
  589. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  590. 0x0, //B_LSB
  591. /*
  592. [7:6] - B: MS 2 bits
  593. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  594. Accuracy exponent:
  595. [5:0] - Accuracy: LS 6 bits
  596. */
  597. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  598. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  599. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  600. 0x0, //Analog Characteristics Flags
  601. 0x7f, //Nominal Reading
  602. 0xff, //Normal Maximum
  603. 0x00, //Normal Minimum
  604. 0xff, //Sensor Maximum Reading
  605. 0x00, //Sensor Minimum Reading
  606. 0xff, //Upper Non-Recoverable Threshold
  607. 0xff, //Upper Critical Threshold
  608. 0xff, //Upper Non-Critical Threshold
  609. 0x00, //Lower Non-Recoverable Threshold
  610. 0x00, //Lower Critical Threshold
  611. 0x00, //Lower Non-Critical threshold
  612. 0x0, //Positive - threshold Hysteresis value
  613. 0x0, //Negative - threshold Hysteresis value
  614. 0x0, //Reserved
  615. 0x0, //Reserved
  616. 0x0, //OEM
  617. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  618. "+0.75V"
  619. },
  620. /*
  621. * sensor number: 7
  622. * sensor name: +1.8V
  623. * brief: adc_ch3
  624. */
  625. {
  626. /* SDR Record Header */
  627. {
  628. 0x08, //Record ID
  629. 0x51, //SDR Version
  630. FULL_SDR_REC, //Record Type
  631. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  632. },
  633. /* Record Key Bytes */
  634. 0x20, //Sensor Owner ID
  635. 0x0, //Sensor Owner LUN
  636. 0x07, //Sensor Number
  637. /* Record Body Bytes */
  638. 0x7, //Entity ID
  639. 0x1, //Entity Instance
  640. 0x7f, //Entity Initialization
  641. 0x68, //Sensor Capabilities
  642. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  643. 0x01, //Event / Reading Type
  644. 0x7a95, //Lower Threshold Reading Mask
  645. 0x7a95, //Upper Threshold Reading Mask
  646. 0x3f3f, //Settable / Readable Threshold Mask
  647. /*
  648. [7:6] - Analog (numeric) Data Format**
  649. 00b = unsigned
  650. 01b = 1's complement(singed)
  651. 10b = 2's complement(singed)
  652. 11b = Does not return analog (numeric) reading
  653. [5:3] - Rate unit
  654. 000b = none
  655. 001b = per µS
  656. 010b = per ms
  657. 011b = per s
  658. 100b = per minute
  659. 101b = per hour
  660. 110b = per day
  661. 111b = reserved
  662. [2:1] - Modifier unit
  663. 00b = none
  664. 01b = Basic Unit / Modifier Unit
  665. 10b = Basic Unit * Modifier Unit
  666. 11b = reserved
  667. [0] - Percentage 0b = no, 1b = yes
  668. */
  669. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  670. /*
  671. 0 unspecified
  672. 1 degrees C
  673. 2 degrees F
  674. 3 degrees K
  675. 4 Volts
  676. 5 Amps
  677. */
  678. 0x4, //Sensor Units 2 - Base Unit
  679. 0x0, //Sensor Units 3 - Modifier Unit
  680. 0x0, //Linerization
  681. 0x81, //M_LSB
  682. /*
  683. [7:6] - M: MS 2 bits
  684. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  685. */
  686. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  687. 0x0, //B_LSB
  688. /*
  689. [7:6] - B: MS 2 bits
  690. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  691. Accuracy exponent:
  692. [5:0] - Accuracy: LS 6 bits
  693. */
  694. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  695. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  696. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  697. 0x0, //Analog Characteristics Flags
  698. 0x7f, //Nominal Reading
  699. 0xff, //Normal Maximum
  700. 0x00, //Normal Minimum
  701. 0xff, //Sensor Maximum Reading
  702. 0x00, //Sensor Minimum Reading
  703. 0xff, //Upper Non-Recoverable Threshold
  704. 0xff, //Upper Critical Threshold
  705. 0xff, //Upper Non-Critical Threshold
  706. 0x00, //Lower Non-Recoverable Threshold
  707. 0x00, //Lower Critical Threshold
  708. 0x00, //Lower Non-Critical threshold
  709. 0x0, //Positive - threshold Hysteresis value
  710. 0x0, //Negative - threshold Hysteresis value
  711. 0x0, //Reserved
  712. 0x0, //Reserved
  713. 0x0, //OEM
  714. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  715. "+1.8V"
  716. },
  717. /*
  718. * sensor number: 8
  719. * sensor name: +1.2V
  720. * brief: adc_ch4
  721. */
  722. {
  723. /* SDR Record Header */
  724. {
  725. 0x09, //Record ID
  726. 0x51, //SDR Version
  727. FULL_SDR_REC, //Record Type
  728. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  729. },
  730. /* Record Key Bytes */
  731. 0x20, //Sensor Owner ID
  732. 0x0, //Sensor Owner LUN
  733. 0x08, //Sensor Number
  734. /* Record Body Bytes */
  735. 0x7, //Entity ID
  736. 0x1, //Entity Instance
  737. 0x7f, //Entity Initialization
  738. 0x68, //Sensor Capabilities
  739. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  740. 0x01, //Event / Reading Type
  741. 0x7a95, //Lower Threshold Reading Mask
  742. 0x7a95, //Upper Threshold Reading Mask
  743. 0x3f3f, //Settable / Readable Threshold Mask
  744. /*
  745. [7:6] - Analog (numeric) Data Format**
  746. 00b = unsigned
  747. 01b = 1's complement(singed)
  748. 10b = 2's complement(singed)
  749. 11b = Does not return analog (numeric) reading
  750. [5:3] - Rate unit
  751. 000b = none
  752. 001b = per µS
  753. 010b = per ms
  754. 011b = per s
  755. 100b = per minute
  756. 101b = per hour
  757. 110b = per day
  758. 111b = reserved
  759. [2:1] - Modifier unit
  760. 00b = none
  761. 01b = Basic Unit / Modifier Unit
  762. 10b = Basic Unit * Modifier Unit
  763. 11b = reserved
  764. [0] - Percentage 0b = no, 1b = yes
  765. */
  766. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  767. /*
  768. 0 unspecified
  769. 1 degrees C
  770. 2 degrees F
  771. 3 degrees K
  772. 4 Volts
  773. 5 Amps
  774. */
  775. 0x4, //Sensor Units 2 - Base Unit
  776. 0x0, //Sensor Units 3 - Modifier Unit
  777. 0x0, //Linerization
  778. 0x81, //M_LSB
  779. /*
  780. [7:6] - M: MS 2 bits
  781. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  782. */
  783. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  784. 0x0, //B_LSB
  785. /*
  786. [7:6] - B: MS 2 bits
  787. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  788. Accuracy exponent:
  789. [5:0] - Accuracy: LS 6 bits
  790. */
  791. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  792. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  793. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  794. 0x0, //Analog Characteristics Flags
  795. 0x7f, //Nominal Reading
  796. 0xff, //Normal Maximum
  797. 0x00, //Normal Minimum
  798. 0xff, //Sensor Maximum Reading
  799. 0x00, //Sensor Minimum Reading
  800. 0xff, //Upper Non-Recoverable Threshold
  801. 0xff, //Upper Critical Threshold
  802. 0xff, //Upper Non-Critical Threshold
  803. 0x00, //Lower Non-Recoverable Threshold
  804. 0x00, //Lower Critical Threshold
  805. 0x00, //Lower Non-Critical threshold
  806. 0x0, //Positive - threshold Hysteresis value
  807. 0x0, //Negative - threshold Hysteresis value
  808. 0x0, //Reserved
  809. 0x0, //Reserved
  810. 0x0, //OEM
  811. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  812. "+1.2V"
  813. },
  814. /*
  815. * sensor number: 9
  816. * sensor name: +1.0V
  817. * brief: adc_ch5
  818. */
  819. {
  820. /* SDR Record Header */
  821. {
  822. 0x0A, //Record ID
  823. 0x51, //SDR Version
  824. FULL_SDR_REC, //Record Type
  825. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  826. },
  827. /* Record Key Bytes */
  828. 0x20, //Sensor Owner ID
  829. 0x0, //Sensor Owner LUN
  830. 0x09, //Sensor Number
  831. /* Record Body Bytes */
  832. 0x7, //Entity ID
  833. 0x1, //Entity Instance
  834. 0x7f, //Entity Initialization
  835. 0x68, //Sensor Capabilities
  836. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  837. 0x01, //Event / Reading Type
  838. 0x7a95, //Lower Threshold Reading Mask
  839. 0x7a95, //Upper Threshold Reading Mask
  840. 0x3f3f, //Settable / Readable Threshold Mask
  841. /*
  842. [7:6] - Analog (numeric) Data Format**
  843. 00b = unsigned
  844. 01b = 1's complement(singed)
  845. 10b = 2's complement(singed)
  846. 11b = Does not return analog (numeric) reading
  847. [5:3] - Rate unit
  848. 000b = none
  849. 001b = per µS
  850. 010b = per ms
  851. 011b = per s
  852. 100b = per minute
  853. 101b = per hour
  854. 110b = per day
  855. 111b = reserved
  856. [2:1] - Modifier unit
  857. 00b = none
  858. 01b = Basic Unit / Modifier Unit
  859. 10b = Basic Unit * Modifier Unit
  860. 11b = reserved
  861. [0] - Percentage 0b = no, 1b = yes
  862. */
  863. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  864. /*
  865. 0 unspecified
  866. 1 degrees C
  867. 2 degrees F
  868. 3 degrees K
  869. 4 Volts
  870. 5 Amps
  871. */
  872. 0x4, //Sensor Units 2 - Base Unit
  873. 0x0, //Sensor Units 3 - Modifier Unit
  874. 0x0, //Linerization
  875. 0x81, //M_LSB
  876. /*
  877. [7:6] - M: MS 2 bits
  878. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  879. */
  880. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  881. 0x0, //B_LSB
  882. /*
  883. [7:6] - B: MS 2 bits
  884. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  885. Accuracy exponent:
  886. [5:0] - Accuracy: LS 6 bits
  887. */
  888. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  889. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  890. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  891. 0x0, //Analog Characteristics Flags
  892. 0x7f, //Nominal Reading
  893. 0xff, //Normal Maximum
  894. 0x00, //Normal Minimum
  895. 0xff, //Sensor Maximum Reading
  896. 0x00, //Sensor Minimum Reading
  897. 0xff, //Upper Non-Recoverable Threshold
  898. 0xff, //Upper Critical Threshold
  899. 0xff, //Upper Non-Critical Threshold
  900. 0x00, //Lower Non-Recoverable Threshold
  901. 0x00, //Lower Critical Threshold
  902. 0x00, //Lower Non-Critical threshold
  903. 0x0, //Positive - threshold Hysteresis value
  904. 0x0, //Negative - threshold Hysteresis value
  905. 0x0, //Reserved
  906. 0x0, //Reserved
  907. 0x0, //OEM
  908. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  909. "+1.0V"
  910. },
  911. /*
  912. * sensor number: 10
  913. * sensor name: +2.5V
  914. * brief: adc_ch6
  915. */
  916. {
  917. /* SDR Record Header */
  918. {
  919. 0x0B, //Record ID
  920. 0x51, //SDR Version
  921. FULL_SDR_REC, //Record Type
  922. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  923. },
  924. /* Record Key Bytes */
  925. 0x20, //Sensor Owner ID
  926. 0x0, //Sensor Owner LUN
  927. 0x0A, //Sensor Number
  928. /* Record Body Bytes */
  929. 0x7, //Entity ID
  930. 0x1, //Entity Instance
  931. 0x7f, //Entity Initialization
  932. 0x68, //Sensor Capabilities
  933. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  934. 0x01, //Event / Reading Type
  935. 0x7a95, //Lower Threshold Reading Mask
  936. 0x7a95, //Upper Threshold Reading Mask
  937. 0x3f3f, //Settable / Readable Threshold Mask
  938. /*
  939. [7:6] - Analog (numeric) Data Format**
  940. 00b = unsigned
  941. 01b = 1's complement(singed)
  942. 10b = 2's complement(singed)
  943. 11b = Does not return analog (numeric) reading
  944. [5:3] - Rate unit
  945. 000b = none
  946. 001b = per µS
  947. 010b = per ms
  948. 011b = per s
  949. 100b = per minute
  950. 101b = per hour
  951. 110b = per day
  952. 111b = reserved
  953. [2:1] - Modifier unit
  954. 00b = none
  955. 01b = Basic Unit / Modifier Unit
  956. 10b = Basic Unit * Modifier Unit
  957. 11b = reserved
  958. [0] - Percentage 0b = no, 1b = yes
  959. */
  960. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  961. /*
  962. 0 unspecified
  963. 1 degrees C
  964. 2 degrees F
  965. 3 degrees K
  966. 4 Volts
  967. 5 Amps
  968. */
  969. 0x4, //Sensor Units 2 - Base Unit
  970. 0x0, //Sensor Units 3 - Modifier Unit
  971. 0x0, //Linerization
  972. 0x81, //M_LSB
  973. /*
  974. [7:6] - M: MS 2 bits
  975. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  976. */
  977. ((0x0>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  978. 0x0, //B_LSB
  979. /*
  980. [7:6] - B: MS 2 bits
  981. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  982. Accuracy exponent:
  983. [5:0] - Accuracy: LS 6 bits
  984. */
  985. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  986. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  987. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  988. 0x0, //Analog Characteristics Flags
  989. 0x7f, //Nominal Reading
  990. 0xff, //Normal Maximum
  991. 0x00, //Normal Minimum
  992. 0xff, //Sensor Maximum Reading
  993. 0x00, //Sensor Minimum Reading
  994. 0xff, //Upper Non-Recoverable Threshold
  995. 0xff, //Upper Critical Threshold
  996. 0xff, //Upper Non-Critical Threshold
  997. 0x00, //Lower Non-Recoverable Threshold
  998. 0x00, //Lower Critical Threshold
  999. 0x00, //Lower Non-Critical threshold
  1000. 0x0, //Positive - threshold Hysteresis value
  1001. 0x0, //Negative - threshold Hysteresis value
  1002. 0x0, //Reserved
  1003. 0x0, //Reserved
  1004. 0x0, //OEM
  1005. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  1006. "+2.5V"
  1007. },
  1008. /*
  1009. * sensor number: 11
  1010. * sensor name: +3.3V
  1011. * brief: adc_ch7
  1012. */
  1013. {
  1014. /* SDR Record Header */
  1015. {
  1016. 0x0C, //Record ID
  1017. 0x51, //SDR Version
  1018. FULL_SDR_REC, //Record Type
  1019. 43+MAX_ID_STR_LEN, //Record Length = 43+string length
  1020. },
  1021. /* Record Key Bytes */
  1022. 0x20, //Sensor Owner ID
  1023. 0x0, //Sensor Owner LUN
  1024. 0x0B, //Sensor Number
  1025. /* Record Body Bytes */
  1026. 0x7, //Entity ID
  1027. 0x1, //Entity Instance
  1028. 0x7f, //Entity Initialization
  1029. 0x68, //Sensor Capabilities
  1030. 0x02, //Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
  1031. 0x01, //Event / Reading Type
  1032. 0x7a95, //Lower Threshold Reading Mask
  1033. 0x7a95, //Upper Threshold Reading Mask
  1034. 0x3f3f, //Settable / Readable Threshold Mask
  1035. /*
  1036. [7:6] - Analog (numeric) Data Format**
  1037. 00b = unsigned
  1038. 01b = 1's complement(singed)
  1039. 10b = 2's complement(singed)
  1040. 11b = Does not return analog (numeric) reading
  1041. [5:3] - Rate unit
  1042. 000b = none
  1043. 001b = per µS
  1044. 010b = per ms
  1045. 011b = per s
  1046. 100b = per minute
  1047. 101b = per hour
  1048. 110b = per day
  1049. 111b = reserved
  1050. [2:1] - Modifier unit
  1051. 00b = none
  1052. 01b = Basic Unit / Modifier Unit
  1053. 10b = Basic Unit * Modifier Unit
  1054. 11b = reserved
  1055. [0] - Percentage 0b = no, 1b = yes
  1056. */
  1057. (0x0<<6)+(0x0<<3)+(0x0<<1)+0x0, //Sensor Units 1
  1058. /*
  1059. 0 unspecified
  1060. 1 degrees C
  1061. 2 degrees F
  1062. 3 degrees K
  1063. 4 Volts
  1064. 5 Amps
  1065. */
  1066. 0x4, //Sensor Units 2 - Base Unit
  1067. 0x0, //Sensor Units 3 - Modifier Unit
  1068. 0x0, //Linerization
  1069. /* M = 0x103 */
  1070. (0x103 & 0xff), //M_LSB
  1071. /*
  1072. [7:6] - M: MS 2 bits
  1073. [5:0] - Tolerance: 6 bits, unsigned (Tolerance in +/- ½ raw counts)
  1074. */
  1075. ((0x103>>2)&0xC0)+(0x0&0x3F), //M,Tolerance
  1076. 0x0, //B_LSB
  1077. /*
  1078. [7:6] - B: MS 2 bits
  1079. Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up by unsigned
  1080. Accuracy exponent:
  1081. [5:0] - Accuracy: LS 6 bits
  1082. */
  1083. ((0x0>>2)&0xC0)+(0x0&0x3F), //B,Accuracy
  1084. ((0x0>>2)&0xF0)+(0x0&0x0C)+0x0, //Accuracy,Accuracy exponent
  1085. (uint8_t)(0xfc<<4)+(0x0&0x0F), //R exponent,B exponent
  1086. 0x0, //Analog Characteristics Flags
  1087. 0x7f, //Nominal Reading
  1088. 0xff, //Normal Maximum
  1089. 0x00, //Normal Minimum
  1090. 0xff, //Sensor Maximum Reading
  1091. 0x00, //Sensor Minimum Reading
  1092. 0xff, //Upper Non-Recoverable Threshold
  1093. 0xff, //Upper Critical Threshold
  1094. 0xff, //Upper Non-Critical Threshold
  1095. 0x00, //Lower Non-Recoverable Threshold
  1096. 0x00, //Lower Critical Threshold
  1097. 0x00, //Lower Non-Critical threshold
  1098. 0x0, //Positive - threshold Hysteresis value
  1099. 0x0, //Negative - threshold Hysteresis value
  1100. 0x0, //Reserved
  1101. 0x0, //Reserved
  1102. 0x0, //OEM
  1103. 0xC0+MAX_ID_STR_LEN, //ID String Type / Length Code
  1104. "+3.3V"
  1105. },
  1106. };
  1107. const CompactSensorRec_T Compact_sdr_tbl[] = {
  1108. {0}, //dummy sensor, make compiler happy.
  1109. };