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


EVENT *
Event management function

slGetEvent

Get an area of ​​the same size as the event

Format

EVENT *slGetEvent()

Parameter

None

Function

The RAM area (128 bytes) of the same size as the event is extracted from the RAM area allocated for the event, and the pointer is returned.
This function is only for acquiring an area of ​​the same size as the event from the event area, and the acquired area is not registered as an event.

Return value

Pointer to the acquired RAM area.
If the area could not be acquired (maximum 64 events), NULL is returned.

Remarks

The RAM area acquired by the function “slGetEvent” must be released using the function “slReturnEvent” when closing the event that uses the area.
If the area is not freed, the acquired area remains unused and continues to exist in the event area.

Reference: Chapter 10 Event Control

slGetEvent


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