
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.
Comentários a estes Manuais