Software

UG_12xxF_016 73S12xxF Software User Guide
Rev. 1.50 55
4.2.11 Event Management API Available with all 73S12xxF Devices
The Event Management API allows the application to handle all system events. An application should
always call Events_Init() to initialize all event vectors at the beginning of the main program. The API
includes:
Events_Init() (page 55)
Events_Clear() (page 55)
Get_Event () (page 56)
Set_Event () (page 56)
Events_Init()
Purpose Initialize the system default event vectors. Upon exiting this function, all vectors will
point to a null_isr. For this reason, every feature (Smart card, USB, RTC, Keypad,
LCD, etc.) must call its initialization routine so that its interrupt service routine will be
set properly.
Synopsis void Events_Init ( void );
Parameters None.
Return Codes None.
Events_Clear()
Purpose Clear selected events.
Synopsis Void Events_Clear ( unsigned long Events );
Parameters Events: Input parameter
Specifies which events to clear. Multiple events are specified by OR’ing together
individual events. Possible values are:
EVENT_EXT0 BIT0
EVENT_EXT1 BIT1
EVENT_EXT2 BIT2
EVENT_EXT3 BIT3
EVENT_TIMER0 BIT4
EVENT_TIMER1 BIT5
RFU BIT6
EVENT_RTC BIT7 //not available with the 73S1205F
EVENT_KEY_DETECT BIT8
EVENT_USB BIT9 //not available with the 73S1205F
EVENT_VDDF BIT10
EVENT_I2C BIT11
EVENT_ANALOG BIT12
EVENT_USR0 BIT13
EVENT_USR1 BIT14
EVENT_USR2 BIT15
EVENT_USR3 BIT16
RFU BIT17
Return Codes None.