ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ble_npl_sem Struct Reference

Counting semaphore mapped onto TX_SEMAPHORE. More...

#include <nimble_npl_os.h>

Data Fields

TX_SEMAPHORE handle
 Backing ThreadX counting semaphore.

Detailed Description

Counting semaphore mapped onto TX_SEMAPHORE.

Initial and maximum counts come from the caller and k_ble_npl_threadx_sem_max respectively.

Invariant
handle is a created TX_SEMAPHORE after a successful init.
Example:
struct ble_npl_sem sem;
ble_npl_sem_init(&sem, 0U);
ble_npl_error_t ble_npl_sem_init(struct ble_npl_sem *sem, uint16_t tokens)
Counting semaphore mapped onto TX_SEMAPHORE.
See also
ble_npl_mutex

Definition at line 191 of file nimble_npl_os.h.

Field Documentation

◆ handle

TX_SEMAPHORE ble_npl_sem::handle

Backing ThreadX counting semaphore.

Definition at line 192 of file nimble_npl_os.h.

Referenced by ble_npl_sem_get_count(), ble_npl_sem_init(), ble_npl_sem_pend(), and ble_npl_sem_release().


The documentation for this struct was generated from the following file: