Home |
RTTarget-32 Programming Manual Function RTCMOSRead System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTCMOSReadThis function can read one byte of battery-backed CMOS RAM: BYTE RTCMOSRead(BYTE Addr); ParametersAddrThe byte offset within the CMOS RAM of the value to retrieve. return valueThe retrieved value. Example:printf("The equipment byte of this PC is: %u\n", RTCMOSRead(0x14)); RTCMOSRead only works on systems equipped with an MC146818A Real-Time Clock or compatible device. The contents of the CMOS RAM area are valid only if it has been initialized by a BIOS or by the program itself.
|