DIGITAL-LOGIC AG
MSM800 SEV Manual V1.0A
73
12.1.2.4
Programming Int15dl interface under Windows:
Programming of the Int15dl Interface is very similar to DOS programming, based on DeviceIoControl
function, which operate with predefined structure named "Registers".
Files:
Int15srv.h contains definitions for Registers structure.
Int15dlioctl.h contains definition for IO control code constants.
Test_Int15dl.cpp - example of subroutines, which provide access to hardware functions over Int15dl driver.
12.1.2.4.1 Functions (Test_Int15dl.cpp)
bool Int15(Registers *Regs)
- the main function, which send user request to driver.
Returns
true
, if request finished successfully, otherwise
false
.
Regs - address of Registers structure, which contains specific data of request (defined in Int15srv.h).
For example, the following code will initiate temperature measuring:
Registers Regs;
Regs.ah = 0xEC;
if
(!Int15(&Regs)) //error in driver request
{
printf("Error reading temperature\n");
return;
}
//success - temperature value is in Regs.al
if
(Regs.bl == 0)printf("\tTemperature = %d C\n",Regs.al);
//error - not valid value
else
printf("\tError reading Temperature\n");
Note:
Input and output arguments of Int15 function for different chipsets and
BIOSes are different, please, read the user manual about registers definition.
For example: To get temperature value on the board with PIIX4 chipset you have
to use "Regs.ah = 0xEC;", but on the board with ICH4 chipset, please use
"Regs.ax = 0x78EC;".
bool Open_Int15dl(void)
- the first function, which must be called to create a link between "Digital-Logic
INT15 functions emulator" driver and user software. It returns “
true
”, if device was successfully opened,
otherwise - “
false
”.
void Close_Int15dl(void)
- the last function, which breaks a link between driver and user software.
int GetChipID(void)
- additional service function, returns the type of chipset -
for PIIX4 = 4, for ICH4 = 5.
Содержание MICROSPACE MSM800SEV
Страница 42: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 42 Top Side of the MSM800SEV V1 2...
Страница 43: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 43 Bottom Side of the MSM800SEV V1 2...
Страница 57: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 57 8 4 The Micro Floppy interface cable 1 1 1 1 1 1 1 1...
Страница 60: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 60...
Страница 61: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 61...
Страница 64: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 64...
Страница 66: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 66...
Страница 87: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 87 15 ASSEMBLINGS VIEW 15 1 MSM800SEV 1 2...
Страница 88: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 88...
Страница 89: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 89 16 DRAWINGS OF OLDER BOARD VERSIONS 16 1 Version 1 0 V1 1...
Страница 90: ...DIGITAL LOGIC AG MSM800 SEV Manual V1 0A 90...