uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
void * ptxOsal_JustAllocate(size_t allocSize)
Allocate memory. Do not track memory usage. Does not need an instance of OSAL.
struct ptxMutex * ptxMutex_t
Mutex Wrapper Structure - Forward Declaration.
Definition ptxOsal.h:95
ptxStatus_t ptxOsal_MutexInit(struct ptxOsal *osalCtx, ptxMutex_t *hMutex)
Initialize a Mutex.
void ptxOsal_DeInit(struct ptxOsal *osalCtx)
Un-Initialize the OSAL.
uint64_t ptxTimeDiff_t
Time difference type.
Definition ptxOsal.h:107
void ptxOsal_DeAlloc(struct ptxOsal **osalCtx)
De-Allocate the OSAL.
ptxStatus_t ptxOsal_TimerStart(struct ptxOsal *osalCtx, struct ptxTimer *hTimer, uint32_t msInterval)
Start or restart the timer.
void ptxOsal_Free_NoTrack(struct ptxOsal *osalCtx, void *memToFree)
Free memory, allocated by ptxOsal_Allocate_NoTrack.
void(* pptxOsal_ThreadProc_t)(void *threadParam)
Thread procedure function pointer declaration.
Definition ptxOsal.h:114
ptxStatus_t ptxOsal_SemClose(struct ptxOsal *osalCtx, ptxSemaphore_t *hSem)
Close an initialized semaphore object.
ptxStatus_t ptxOsal_SemInit(struct ptxOsal *osalCtx, ptxSemaphore_t *hSem, uint32_t initialCount, uint32_t maxCount)
Initialize an already allocated but non-initialized object.
void * ptxOsal_GetSysCtx(struct ptxOsal *osalCtx)
Get the System Context.
void ptxOsal_JustFree(void *memToFree, uint32_t *sentryViolationCount)
Free memory, allocated by ptxOsal_JustAllocate.
struct ptxThread * ptxOsal_ThreadAllocate(struct ptxOsal *osalCtx)
Allocate a thread structure.
ptxStatus_t ptxOsal_StopwatchStop(struct ptxOsal *osalCtx, ptxTimeDiff_t *startStopVal)
End a time measurement.
ptxStatus_t ptxOsal_ThreadJoin(struct ptxOsal *osalCtx, struct ptxThread *hThd)
Join on a thread, wait until it has exited.
ptxStatus_t ptxOsal_ThreadClose(struct ptxOsal *osalCtx, struct ptxThread *hThd)
Close a thread, once it has exited.
void * ptxOsal_Allocate_NoTrack(struct ptxOsal *osalCtx, size_t allocSize)
Allocate memory. Do not track memory usage.
ptxStatus_t ptxOsal_AllocInit(struct ptxOsal **osalCtx, void *sysCtx)
Initialize the OSAL.
void ptxOsal_FreeNull(struct ptxOsal *osalCtx, void **memToFree)
Free memory, allocated by ptxOsal_Allocate and set the pointer to NULL.
ptxStatus_t ptxOsal_SemPost(struct ptxOsal *osalCtx, ptxSemaphore_t *hSem)
Signal a semaphore, unblock a waiting thread.
void ptxOsal_ThreadSleep(struct ptxOsal *osalCtx, uint32_t msSleep)
Sleep for a number of ms.
void * ptxOsal_Allocate(struct ptxOsal *osalCtx, size_t allocSize)
Allocate memory. Track memory usage.
ptxStatus_t ptxOsal_SemTimedWait(struct ptxOsal *osalCtx, ptxSemaphore_t *hSem, uint32_t msTimeout)
Wait on the semaphore, with timeout.
ptxStatus_t ptxOsal_ThreadCreate(struct ptxOsal *osalCtx, struct ptxThread *hThd, pptxOsal_ThreadProc_t thdFn, void *thdParam)
Create a thread.
void ptxOsal_Free(struct ptxOsal *osalCtx, void *memToFree)
Free memory, allocated by ptxOsal_Allocate.
ptxStatus_t ptxOsal_TimerClose(struct ptxOsal *osalCtx, struct ptxTimer *hTimer)
Close a timer, once it has expired.
ptxStatus_t ptxOsal_TimerCreate(struct ptxOsal *osalCtx, struct ptxTimer *hTimer, pptxOsal_TimerProc_t timerProc, void *timerParam)
Create a timer.
ptxStatus_t ptxOsal_MutexLock(struct ptxOsal *osalCtx, ptxMutex_t *hMutex)
Lock/acquire a Mutex.
struct ptxSemaphore * ptxSemaphore_t
Semaphore Wrapper Structure - Forward Declaration.
Definition ptxOsal.h:100
void(* pptxOsal_TimerProc_t)(void *timerParam)
Timer procedure function pointer declaration.
Definition ptxOsal.h:121
ptxStatus_t ptxOsal_SemWait(struct ptxOsal *osalCtx, ptxSemaphore_t *hSem)
Wait on the semaphore.
ptxStatus_t ptxOsal_TimerCancel(struct ptxOsal *osalCtx, struct ptxTimer *hTimer)
Cancel a timer, if active.
ptxStatus_t ptxOsal_MutexDestroy(struct ptxOsal *osalCtx, ptxMutex_t *hMutex)
Remove a Mutex.
ptxStatus_t ptxOsal_StopwatchStart(struct ptxOsal *osalCtx, ptxTimeDiff_t *startVal)
Start a time measurement or get a time value.
ptxStatus_t ptxOsal_MutexUnlock(struct ptxOsal *osalCtx, ptxMutex_t *hMutex)
Unlock/release a Mutex.
struct ptxTimer * ptxOsal_TimerAllocate(struct ptxOsal *osalCtx)
Allocate a timer structure.