battclock.library Reference¶
Comprehensive function reference for battclock.library, synthesised from the AmigaOS NDK 3.2 Release 4 (Autodocs/AG/battclock).
This page documents 3 functions of battclock.library. Each function entry follows the canonical autodoc format. struct Name, union Name, enum Name are clickable links to the type definition in the types reference.
Function index¶
ReadBattClock()¶
ReadBattClock -- Read time from clock chip. (V36)
Synopsis
AmigaTime = ReadBattClock( )
ULONG ReadBattClock( void );
D0
Function
This routine reads the time from the clock chip and returns it as the number of seconds from 01-jan-1978.
Results
AmigaTime The number of seconds from 01-Jan-1978 that the clock chip thinks it is.
Notes
If the clock chip returns an invalid date, the clock chip is reset and 0 is returned.
ResetBattClock()¶
ResetBattClock -- Reset the clock chip. (V36)
Synopsis
ResetBattClock( )
void ResetBattClock( void );
Function
This routine does whatever is neeeded to put the clock chip into a working and usable state and also sets the date on the clock chip to 01-Jan-1978.
WriteBattClock()¶
WriteBattClock -- Set the time on the clock chip. (V36)
Synopsis
WriteBattClock( AmigaTime )
D0
void WriteBattClock( ULONG );
Function
This routine writes the time given in AmigaTime to the clock chip.
Inputs
AmigaTime The number of seconds from 01-Jan-1978 to the time that should be written to the clock chip.