Typedefs | |
| typedef POSSEMA_t | NOSSEMA_t |
Functions | |
| NANOEXT NOSSEMA_t POSCALL | nosSemaCreate (INT_t initcount, UVAR_t options, const char *name) |
| NANOEXT void POSCALL | nosSemaDestroy (NOSSEMA_t sema) |
| NANOEXT VAR_t POSCALL | nosSemaSignal (NOSSEMA_t sema) |
| NANOEXT VAR_t POSCALL | nosSemaGet (NOSSEMA_t sema) |
| NANOEXT VAR_t POSCALL | nosSemaWait (NOSSEMA_t sema, UINT_t timeoutticks) |
Semaphore function. Allocates a new semaphore object.
| initcount | Initial semaphore count (see detailed semaphore description in pico laye documentation). | |
| options | Currently unused. Please set this parameter to 0 (zero). | |
| name | Name of the new semaphore object to create. If the last character in the name is an asteriks (*), the operating system automatically assigns the semaphore a unique name (the registry feature must be enabled for this automatism). This parameter can be NULL if the nano layer registry feature is not used and will not be used in future. |
| NANOEXT void POSCALL nosSemaDestroy | ( | NOSSEMA_t | sema | ) |
Semaphore function. Frees a no more needed semaphore object.
| sema | handle to the semaphore object. |
Semaphore function. This function tries to get the semaphore object. If the semaphore is in nonsignalized state (that means its counter is zero or less), this function blocks the task execution until the semaphore gets signaled.
| sema | handle to the semaphore object. |
Semaphore function. This function signalizes a semaphore object, that means it increments the semaphore counter and sets tasks pending on the semaphore to running state, when the counter reaches a positive, nonzero value.
| sema | handle to the semaphore object. |
Semaphore function. This function tries to get the semaphore object. If the semaphore is in nonsignalized state (that means its counter is zero or less), this function blocks the task execution until the semaphore gets signaled or a timeout happens.
| sema | handle to the semaphore object. | |
| timeoutticks | timeout in timer ticks (see HZ define and MS macro). If this parameter is set to zero, the function immediately returns. If this parameter is set to INFINITE, the function will never time out. |
1.5.4