Parameters passed during SemaphoreP_construct.
Data Fields | |
uint32_t | type |
uint32_t | initCount |
uint32_t | maxCount |
uint32_t SemaphoreP_Params::type |
see SemaphoreP_Type
uint32_t SemaphoreP_Params::initCount |
initial value of the semaphore.
Only valid for SemaphoreP_TYPE_COUNTING and SemaphoreP_TYPE_BINARY.
MUST be 0 or 1 for SemaphoreP_TYPE_BINARY
Ignored for SemaphoreP_TYPE_MUTEX
uint32_t SemaphoreP_Params::maxCount |
max value the semaphore can take.
Only valid for SemaphoreP_TYPE_COUNTING.
MUST be >= SemaphoreP_Params.initCount
Ignored for SemaphoreP_TYPE_MUTEX and SemaphoreP_TYPE_BINARY