vxbW83627dhgK - Driver for the hardware monitoring
vxbW83627dhgDrvRegister( ) - register template sensor driver
W83627dhgInstInit( ) - first level initialization routine of sensor device
W83627dhgInstInit2( ) - second level initialization routine of sensor device
W83627dhgInstConnect( ) - third level initialization routine of sensor device
W83627dhgShow( ) - show routine
W83627dhgTempGet( ) - retrieve the value of the current temperature
W83627dhgTempGetMax( ) - retrieve the maximum value of the temperature
W83627dhgTempHyst( ) - retrieve temperature sensor hysteresis values
W83627dhgVoltageGet( ) - retrieve voltage values
W83627dhgFanGet( ) - retrieve fan values
W83627dhgSetFanSpeed( ) - set fan speed value
W83627dhgIODirGet( ) - retrieve GPIO direction settings
W83627dhgIODir( ) - set GPIO direction
W83627dhgIOPinsGet( ) - retrieve state of IO pins
W83627dhgIOPins( ) - set state of output IO pins
W83627dhgIOEdgeDetectGet( ) - Check edge event
W83627dhgIOTrigger( ) - Update trigger & and input filter settings
W83627dhgIOTriggerGet( ) - Get trigger & and input filter settings
W83627dhgIOInvert( ) - Set invertion for IO pins
W83627dhgIOInvertGet( ) - Get invertion for IO pins
This driver provides support for the Winbond W83627DHG hardware monitor.
There are functions available to read the operating voltage of the CPU and power supply voltages of the system,
CPU and system temperature, speed of fans, GPIO port.
vxbW83627dhgDrvRegister( ) - register template sensor driver
This routine registers the template sensor driver with the VxBus subsystem.
This routine contains the first instructions of the device driver that are ever executed within a VxWorks system. This function registers the driver with VxBus by providing pointers to the data structures listed previously. Once this step is complete, VxWorks is able to associate this driver with appropriate hardware within the system to form an instance.
N/A
Not Available
W83627dhgInstInit( ) - first level initialization routine of sensor device
This is the function called to perform the first level initialization of the template sensor device.
This routine is called early during system initialization, and *MUST NOT* make calls to OS facilities such as memory allocation and I/O.
N/A
Not Available
W83627dhgInstInit2( ) - second level initialization routine of sensor device
This routine performs the second level initialization of the sensor device.
This routine is called later during system initialization. OS features such as memory allocation are available at this time.
N/A
Not Available
W83627dhgInstConnect( ) - third level initialization routine of sensor device
This is the function called to perform the third level initialization of the sensor device.
N/A
Not Available
W83627dhgShow( ) - show routine
This routine prints information about the instance to the system
console. This is integrated with vxBusShow.
pInst - device identifier
0, always
Not Available
W83627dhgTempGet( ) - retrieve the value of the current temperature
This function retrives current temperature values for system, CPU and auxiliary device
VXB_DEVICE_ID pInst - device identifier
INT8* sysTemp - system current temperature
double* cpuTemp - CPU current temperature
double* auxTemp - auxiliary device current temperature
OK, or ERROR
Not Available
W83627dhgTempGetMax( ) - retrieve the maximum value of the temperature
This function retrives maximum temperature values for system, CPU and auxiliary device
VXB_DEVICE_ID pInst - device identifier
INT8* sysTempMax - system maximum temperature
double* cpuTempMax - CPU maximum temperature
double* auxTempMax - auxiliary device maximum temperature
OK, or ERROR
Not Available
W83627dhgTempHyst( ) - retrieve temperature sensor hysteresis values
This function retrives temperature sensor hysteresis values for system, CPU and auxiliary device
VXB_DEVICE_ID pInst - device identifier
INT8* sysTempHyst - system temperature sensor hysteresis
double* cpuTempHyst - CPU temperature sensor hysteresis
double* auxTempHyst - auxiliary device temperature sensor hysteresis
OK, or ERROR
Not Available
W83627dhgVoltageGet( ) - retrieve voltage values
This function retrives output voltage (mV), high/low limits of output voltage (mV), output name.
VXB_DEVICE_ID pInst - device identifier ,
double* voltage - output voltage value,
double* HighLimit - output voltage high limit,
double* LowLimit - output voltage low limit,
char* name - output name,
int n - output number
OK, or ERROR
Not Available
W83627dhgFanGet( ) - retrieve fan values
This function retrives fan speed (revolution per minute), minimum fan speed, divisor
VXB_DEVICE_ID pInst - device identifier ,
UINT16* fan - fan speed in revolutuion per minute,
UINT16* min - minimum fan speed in revolutuion per minute,
UINT8* div - fan divisor value,
int n - fan number.
OK, or ERROR
Not Available
W83627dhgSetFanSpeed( ) - set fan speed value
This function sets fan speed value (for PWM or DC mode)
VXB_DEVICE_ID pInst - device identifier,
UINT8 n, - fan number,
UINT8 val - fan speed value to set.
OK, or ERROR
Not Available
W83627dhgIODirGet( ) - retrieve GPIO direction settings
This function retrives current setting of GPIO direction
The 8-bit result carries state of individual IO pins (bit0 - IO0, bit1 - IO1 ... bit7 - IO7)
Value of 0 means pin is configurated as OUTPUT, 1 means INPUT
OK, or ERROR
Not Available
W83627dhgIODir( ) - set GPIO direction
This function set direction of individual IO pins
Value of 0 corresponds to OUTPUT, 1 - INPUT
OK, or ERROR
Not Available
W83627dhgIOPinsGet( ) - retrieve state of IO pins
This function retrives current state IO pins.
Result reflect state of each pins regardless input or output it are.
OK, or ERROR
Not Available
W83627dhgIOPins( ) - set state of output IO pins
This function update output pins
OK, or ERROR
Not Available
W83627dhgIOEdgeDetectGet( ) - Check edge event
This function check the register responsible for edge detection.
Return 1 bit if respective IO pin has changed its state.
OK, or ERROR
Not Available
W83627dhgIOTrigger( ) - Update trigger & and input filter settings
This function gives effect to IO0, IO1 and IO5 only
2nd function argument:
Bit 0 corresponds to IO0 Trigger type: 0 means Edge type, 1 means Level type
Bit 1 => IO1 Trigger type
Bit 2 => IO5 Trigger type
Bit 4 enables IO0 input filter: 0 turn ON input de-bouncer, 1 turn OFF it
Bit 5 => IO1 input filter
Bit 6 => IO5 input filter
OK, or ERROR
Not Available
W83627dhgIOTriggerGet( ) - Get trigger & and input filter settings
Check W83627dhgIOTrigger( ) for details.
OK, or ERROR
Not Available
W83627dhgIOInvert( ) - Set invertion for IO pins
This function enable/disable the invertion for IO pins regardless of its direction
The 1 bit enable invertion for respective IO pin.
OK, or ERROR
Not Available
W83627dhgIOInvertGet( ) - Get invertion for IO pins
OK, or ERROR
Not Available