home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / inc&ad2.0 / text_autodocs / battclock.doc < prev    next >
Text File  |  1992-09-01  |  2KB  |  88 lines

  1. TABLE OF CONTENTS
  2.  
  3. battclock.resource/ReadBattClock
  4. battclock.resource/ResetBattClock
  5. battclock.resource/WriteBattClock
  6. battclock.resource/ReadBattClock             battclock.resource/ReadBattClock
  7.  
  8.    NAME
  9.     ReadBattClock -- Read time from clock chip.  (V36)
  10.  
  11.    SYNOPSIS
  12.     AmigaTime = ReadBattClock( )
  13.  
  14.     ULONG ReadBattClock( void );
  15.     D0
  16.  
  17.    FUNCTION
  18.     This routine reads the time from the clock chip and returns it
  19.     as the number of seconds from 01-jan-1978.
  20.  
  21.    INPUTS
  22.  
  23.    RESULTS
  24.     AmigaTime       The number of seconds from 01-Jan-1978 that
  25.                         the clock chip thinks it is.
  26.  
  27.    NOTES
  28.     If the clock chip returns an invalid date, the clock chip is
  29.     reset and 0 is returned.
  30.  
  31.    SEE ALSO
  32.  
  33.    BUGS
  34.  
  35. battclock.resource/ResetBattClock           battclock.resource/ResetBattClock
  36.  
  37.    NAME
  38.     ResetBattClock -- Reset the clock chip.  (V36)
  39.  
  40.    SYNOPSIS
  41.     ResetBattClock( )
  42.  
  43.     void ResetBattClock( void );
  44.  
  45.    FUNCTION
  46.     This routine does whatever is neeeded to put the clock chip
  47.     into a working and usable state and also sets the date on the
  48.     clock chip to 01-Jan-1978.
  49.  
  50.    INPUTS
  51.  
  52.    RESULTS
  53.  
  54.    NOTES
  55.  
  56.    SEE ALSO
  57.  
  58.    BUGS
  59.  
  60. battclock.resource/WriteBattClock           battclock.resource/WriteBattClock
  61.  
  62.    NAME
  63.     WriteBattClock -- Set the time on the clock chip.  (V36)
  64.  
  65.    SYNOPSIS
  66.     WriteBattClock( AmigaTime )
  67.                     D0
  68.  
  69.     void WriteBattClock( ULONG );
  70.  
  71.    FUNCTION
  72.     This routine writes the time given in AmigaTime to the clock
  73.     chip.
  74.  
  75.    INPUTS
  76.     AmigaTime       The number of seconds from 01-Jan-1978 to the
  77.                         time that should be written to the clock
  78.                         chip.
  79.  
  80.    RESULTS
  81.  
  82.    NOTES
  83.  
  84.    SEE ALSO
  85.  
  86.    BUGS
  87.  
  88.