Maxim-integrated 73S12xxF Software Bedienungsanleitung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 93
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 56
UG_12xxF_016 73S12xxF Software User Guide
Rev. 1.50 57
RFU // 17
pEventVector: Input parameter
Pointer (vector) to the function to call when the event occurs.
Return Codes None.
The eUSB handler should check the x.USBStatus value and/or call the
USB_Status() routine to determine which USB event occurred. All other events have unique causes.
4.2.12 Timers API Available with all 73S12xxF Devices
The Timers API allows up to four 16-bit 10 ms timers to be run concurrently. Hardware timer T0 is
dedicated for the Timers API. The API includes:
Timers_Init () (page 57)
Wait() (page 57)
Wait_1ms() (page 57)
Add_Timer() (page 57)
Add_Timer_Func() (page 58)
Remove_Timer() (page 58)
Process_Timers() (page 58)
Timers_Init ()
Purpose Initialize all registers and functions associated with Timer 0 and Timer 1.
Synopsis Void Timers_Init ( void );
Parameters None.
Return Codes None.
Wait()
Purpose Wait (10 x nTimeWait) milliseconds and then return.
Synopsis Void Wait ( IN unsigned int nTimeWait );
Parameters nTimeWait: Input parameter
Specifies how many 10 msec units to wait before returning to the caller.
Return Codes None.
Wait_1ms()
Purpose Wait (nTimeWait) milliseconds and then return.
Synopsis Void Wait ( IN unsigned int nTimeWait );
Parameters nTimeWait: Input parameter
Specifies how many 1 msec units to wait before returning to the caller.
Return Codes None.
Add_Timer()
Purpose Add a 10 ms software timer.
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 92 93

Kommentare zu diesen Handbüchern

Keine Kommentare