pSOS SOFTWARE DEVELOPMENT
CPCI-810 User’s Manual
4-5
Revision 1.1, June 2001
long PssSetIntHandler(
ULONG Level,
/* Interrupt vector number */
void *handler,
/* Pointer to handler function */
void *arg,
/* Optional argument to handler */
ULONG type
/* Optional wrapper type */
)
The function PssUnSetIntHandler is used to disconnect an interrupt handler:
long PssUnSetIntHandler(
ULONG Level, /* Interrupt vector number */
void *handler, /* Pointer to handler function */
void *arg /* Optional argument to handler */
)
4.6
LM75 TEMPERATURE SENSORS
The two on-board LM75 devices can be used to detect possible temperature problems in the system,
such as overheating. The BSP file lm75.c contains a collection of routines that simplify the use of the
devices. Included are functions to read and write to registers on the LM75, including the temperature,
trip, and hysteresis registers.
Before use, the LM75 should be placed in interrupt mode. When in this mode an LM75 will interrupt if
the temperature goes above the value in the trip register, and will interrupt again when the temperature
falls back below the value in the hysteresis register.
Also included in the lm75.c file is the function lm75_test, which is a simple diagnostic that uses useful
LM75 routines to test the devices. Developers can use this as an example for writing their own utilities
to operate the LM75, and can also call this test in their application to ensure that the devices are
operating correctly.
For further information consult the National Semiconductor LM75 Data Sheet.
StockCheck.com