xWRL6432 MMWAVE-L-SDK  05.04.00.01
SemaphoreP.h File Reference

Go to the source code of this file.

Data Structures

struct  SemaphoreP_Object
 Opaque semaphore object used with the semaphore APIs. More...
 
struct  SemaphoreP_Params
 Parameters passed during SemaphoreP_construct. More...
 

Macros

#define SemaphoreP_OBJECT_SIZE_MAX   (96u)
 Max size of semaphore object across no-RTOS and all OS's. More...
 

Enumerations

enum  SemaphoreP_Type { SemaphoreP_TYPE_BINARY, SemaphoreP_TYPE_COUNTING, SemaphoreP_TYPE_MUTEX }
 Semaphore type. More...
 

Functions

int32_t SemaphoreP_constructMutex (SemaphoreP_Object *obj)
 Create a mutex semaphore object. More...
 
void SemaphoreP_Params_init (SemaphoreP_Params *params)
 Set default values to SemaphoreP_Params. More...
 
int32_t SemaphoreP_constructBinary (SemaphoreP_Object *obj, uint32_t initValue)
 Create a binary semaphore object. More...
 
int32_t SemaphoreP_construct (SemaphoreP_Object *obj, SemaphoreP_Params *params)
 Create a semaphore object. More...
 
int32_t SemaphoreP_constructCounting (SemaphoreP_Object *obj, uint32_t initValue, uint32_t maxValue)
 Create a counting semaphore object. More...
 
void SemaphoreP_destruct (SemaphoreP_Object *obj)
 Cleanup, delete, destruct a semaphore object. More...
 
void SemaphoreP_post (SemaphoreP_Object *obj)
 Post a semaphore object or unlock a mutex. More...
 
int32_t SemaphoreP_pend (SemaphoreP_Object *obj, uint32_t timeToWaitInTicks)
 Pend on a semaphore object or lock a mutex. More...