|
xWRL6432 MMWAVE-L-SDK
05.04.00.01
|
|
Go to the documentation of this file.
55 #define SemaphoreP_OBJECT_SIZE_MAX (96u)
59 typedef struct SemaphoreP_Object_ {
68 typedef enum SemaphoreP_Type_ {
77 typedef struct SemaphoreP_Params_ {
@ SemaphoreP_TYPE_MUTEX
Definition: SemaphoreP.h:71
uint32_t initCount
Definition: SemaphoreP.h:80
@ SemaphoreP_TYPE_BINARY
Definition: SemaphoreP.h:69
int32_t SemaphoreP_constructCounting(SemaphoreP_Object *obj, uint32_t initValue, uint32_t maxValue)
Create a counting semaphore object.
void SemaphoreP_destruct(SemaphoreP_Object *obj)
Cleanup, delete, destruct a semaphore object.
int32_t SemaphoreP_constructMutex(SemaphoreP_Object *obj)
Create a mutex semaphore object.
Parameters passed during SemaphoreP_construct.
Definition: SemaphoreP.h:77
void SemaphoreP_Params_init(SemaphoreP_Params *params)
Set default values to SemaphoreP_Params.
SemaphoreP_Type
Semaphore type.
Definition: SemaphoreP.h:68
uint32_t type
Definition: SemaphoreP.h:79
int32_t SemaphoreP_construct(SemaphoreP_Object *obj, SemaphoreP_Params *params)
Create a semaphore object.
@ SemaphoreP_TYPE_COUNTING
Definition: SemaphoreP.h:70
void SemaphoreP_post(SemaphoreP_Object *obj)
Post a semaphore object or unlock a mutex.
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
int32_t SemaphoreP_constructBinary(SemaphoreP_Object *obj, uint32_t initValue)
Create a binary semaphore object.
#define SemaphoreP_OBJECT_SIZE_MAX
Max size of semaphore object across no-RTOS and all OS's.
Definition: SemaphoreP.h:55
uint32_t maxCount
Definition: SemaphoreP.h:84
int32_t SemaphoreP_pend(SemaphoreP_Object *obj, uint32_t timeToWaitInTicks)
Pend on a semaphore object or lock a mutex.