Components/Libraries/XF/FreeRTOS/Semaphore

(Difference between revisions)
Jump to: navigation, search
(Member Functions Description)
(Semaphore(baseUInt oMaxCount, baseUInt oInitalCount))
Line 9: Line 9:
  
 
== Semaphore(baseUInt oMaxCount, baseUInt oInitalCount) ==
 
== Semaphore(baseUInt oMaxCount, baseUInt oInitalCount) ==
 +
=== Description ===
 +
The constructor of the semaphore. It will create a free RTOS semaphore and initialize it with the given count value
 +
=== Parameters ===
 +
oMaxCount : the maximal count value that can be reached
 +
 +
oInitalCount : the count value assigned to the semaphore when it is created
 +
 
== ~Semaphore() ==
 
== ~Semaphore() ==
 
== baseUInt getCount() ==
 
== baseUInt getCount() ==

Revision as of 13:56, 10 August 2017

Contents

Semaphore

This class is a C++ class that manage a FreeRTOS Semaphore.

Member Attibuts

SemaphoreHandle_t _semaphoreHandler : The FreeRTOS semaphore

Member Functions Description

Semaphore(baseUInt oMaxCount, baseUInt oInitalCount)

Description

The constructor of the semaphore. It will create a free RTOS semaphore and initialize it with the given count value

Parameters

oMaxCount : the maximal count value that can be reached

oInitalCount : the count value assigned to the semaphore when it is created

~Semaphore()

baseUInt getCount()

bool take(timeSize oTicksToWait = INFINIT_TIME)

bool takeFromISR()

bool give()

bool giveFromISR()

bool isCreated()

Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox