Download PowerDNA API Reference Manual

Transcript
PowerDNA API Reference Manual, Release 4.0
DQ_SUCCESS
successful completion
Other negative values
low level IOM error
Description:
This function reads voltage, current and temperature parameters from DNR power layer. Layer
uses a 24 bit converter that reads data once a second.
Following cannels are defined (as well as macros to convert data):
// ADC allocation 0x40
#define DQ_L4_ADC_TEMP2
0x800000)*149nV)/0.00295K]
#define DQ_L4_ADC_I_1_5
#define DQ_L4_ADC_TEMP1
0x800000)*149nV)/0.00295K]
#define DQ_L4_ADC_I_3_3
#define DQ_L4_ADC_GND_3
#define DQ_L4_ADC_I_IN
#define DQ_L4_ADC_V_FAN
#define DQ_L4_ADC_V_1_2
#define DQ_L4_ADC_V_1_5
#define DQ_L4_ADC_V_IN
#define DQ_L4_ADC_GND_2
#define DQ_L4_ADC_V_24DNR
#define DQ_L4_ADC_V_CAP
#define DQ_L4_ADC_V_3_3DNR
#define DQ_L4_ADC_GND
#define DQ_L4_ADC_V_2_5DNR
(15)
// Temperature Code/644 [(Code-
(14)
(13)
// 1.5V output current (Code-0x800000)*7.45uA
// Temperature Code/644 [(Code-
(12)
(11)
(10)
(9)
(8)
(7)
(6)
(5)
(4)
(3)
(2)
(1)
(0)
//
//
//
//
//
//
//
//
//
//
//
//
//
3.3V output current (Code-0x800000)*7.45uA
internal reference ground
Input current (Code-0x800000)*1.788uA
Fan voltage (Code-0x800000)*149nV*23.1V
1.2V source (Code-0x800000)*149nV*23.1V
1.5V source (Code-0x800000)*149nV*23.1V
Input voltage (Code-0x800000)*149nV*45.3V
internal reference ground
24V DNR (Code-0x800000)*149nV*23.1V
V capacitor
3.3V DNR (Code-0x800000)*149nV*23.1V
internal reference ground
2.5V DNR (Code-0x800000)*149nV*23.1V
Channels from 0x10 to 0x1c return over-the-limit settings for abovementioned channels.
Channels from 0x20 to 0x2c return under-the-limit settings for abovementioned channels.
Channel 0x30 is a direct write/read to/from LED register (i.e. write occurs upon command execution).
Channel 0x31 is a direct write/read into configuration register.
Channels 0x32 and 0x33 have similar functionality; however actual read/write is performed by
periodic supervisor routine.
#define
#define
#define
#define
DQ_L2_DNRP_LED_CH
DQ_L2_DNRP_FAN_CH
DQ_L2_DNRP_LED_MNGD
DQ_L2_DNRP_FAN_MNGD
0x30
0x31
0x32
0x33
//
//
//
//
direct R/W to LED register
direct R/W to CFG register
managed R/W to LED register
managed R/W to CFG register
Note:
None
4.31.2
DqAdvDnxpSetConfig
Syntax:
int
DqAdvDnrpSetConfig(int hd, int devn, uint32 action, uint32* config)
Command:
IOCTL
Input:
int hd
int devn
uint32 action
Handle to the IOM received from DqOpenIOM()
Layer inside the IOM
What to set:
- 359 -