Components/Libraries/XF/FreeRTOS/Semaphore
(Difference between revisions)
Sara.chalokh (Talk | contribs) (→Semaphore(baseUInt oMaxCount, baseUInt oInitalCount)) |
Sara.chalokh (Talk | contribs) (→Member Functions Description) |
||
Line 17: | Line 17: | ||
== ~Semaphore() == | == ~Semaphore() == | ||
+ | === Description === | ||
== baseUInt getCount() == | == baseUInt getCount() == | ||
− | == bool take(timeSize | + | === Description === |
+ | == bool take(timeSize oTimeToWait) == | ||
+ | === Description === | ||
+ | === Parameters === | ||
+ | === Return === | ||
== bool takeFromISR() == | == bool takeFromISR() == | ||
+ | === Description === | ||
+ | === Return === | ||
== bool give() == | == bool give() == | ||
+ | === Description === | ||
+ | === Return === | ||
== bool giveFromISR() == | == bool giveFromISR() == | ||
+ | === Description === | ||
+ | === Return === | ||
== bool isCreated() == | == bool isCreated() == | ||
+ | === Description === |
Revision as of 13:58, 10 August 2017
|
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