Return to previous page | Return to menu | Go to next page


EVENT *
Event management function

slSetEvent

Register event

Format

EVENT *slSetEvent(func)
void (*func)() ;

Parameter

func Function pointer to register as event

Function

Get the event area and add it to the end of the event list.
The “func” specified as the execution function for this event is registered.

Return value

If the event is acquired successfully, the function returns the start address of the registered event area.
If no event area remains, the function returns a null code.

Remarks

The event area is reserved as a 128-byte area, but the first 16 bytes are used by the system.

Reference: Chapter 10 Event Control

slSetEvent


Return to previous page | Return to menu | Go to next page