beautypg.com

Managing critical sections, Managing binary semaphores, Managing operating system events – Echelon FTXL User Manual

Page 170

background image

158

FTXL LonTalk API

• HTML API documentation: Start Programs Echelon FTXL

Developer’s Kit Documentation API Reference

• API source code for the example applications: Start Programs

Echelon FTXL Developer’s Kit Source Code

The following sections provide an overview of the functions that the FTXL OSAL

provides.

Managing Critical Sections

To manage critical sections, the FTXL OSAL provides the functions listed in

Table 24.

Table 24. FTXL OSAL Critical Section Functions

Function

Description

OsalCreateCriticalSection() Creates a critical section.

OsalDeleteCriticalSection() Deletes a critical section.

OsalEnterCriticalSection() Enters a critical section.

OsalLeaveCriticalSection() Leaves a critical section.

Managing Binary Semaphores

To manage binary semaphores, the FTXL OSAL provides the functions listed in
Table 25.

Table 25. FTXL OSAL Binary Semaphore Functions

Function

Description

OsalCreateBinarySemaphore()

Creates a binary semaphore.

OsalDeleteBinarySemaphore()

Deletes a binary semaphore.

OsalReleaseBinarySemaphore() Releases a binary semaphore.

OsalWaitForBinarySemaphore() Waits for binary semaphore.

Managing Operating System Events

To manage operating system events, the FTXL OSAL provides the functions

listed in Table 26.

Table 26. FTXL OSAL Event Functions

Function

Description

OsalCreateEvent()

Creates an event.