IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Typedefs | Functions
iotmi_pal_SyncEvent.h File Reference

This file defines sync event platform abstraction interface. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct iotmiPal_SyncEvent iotmiPal_SyncEvent_t
 
typedef struct iotmiPal_SyncEvent * iotmiPal_SyncEventHandle_t
 

Functions

iotmiPal_SyncEventHandle_t iotmiPal_syncEventCreate (void)
 Platform sync event create API. Event status is unset when created.
 
void iotmiPal_syncEventDelete (iotmiPal_SyncEventHandle_t syncEventHandle)
 Platform sync event delete API.
 
bool iotmiPal_syncEventWait (iotmiPal_SyncEventHandle_t syncEventHandle, uint32_t blockTimeMs, bool clearOnExit)
 Platform sync event wait API.
 
bool iotmiPal_syncEventSet (iotmiPal_SyncEventHandle_t syncEventHandle)
 Platform sync event set API.
 
bool iotmiPal_syncEventClear (iotmiPal_SyncEventHandle_t syncEventHandle)
 Platform sync event clear API.
 

Detailed Description

This file defines sync event platform abstraction interface.

Function Documentation

◆ iotmiPal_syncEventClear()

bool iotmiPal_syncEventClear ( iotmiPal_SyncEventHandle_t  syncEventHandle)

Platform sync event clear API.

Parameters
[in]syncEventHandleHandle to iotmiPal_SyncEvent_t structure.
Returns
true to indicate success. Return false for error.

◆ iotmiPal_syncEventCreate()

iotmiPal_SyncEventHandle_t iotmiPal_syncEventCreate ( void  )

Platform sync event create API. Event status is unset when created.

Returns
Handle to created iotmiPal_SyncEvent_t structure when success. NULL on failure to indicate sync event creation failure.

◆ iotmiPal_syncEventDelete()

void iotmiPal_syncEventDelete ( iotmiPal_SyncEventHandle_t  syncEventHandle)

Platform sync event delete API.

Parameters
[in]syncEventHandleHandle to iotmiPal_SyncEvent structure to be deleted.

◆ iotmiPal_syncEventSet()

bool iotmiPal_syncEventSet ( iotmiPal_SyncEventHandle_t  syncEventHandle)

Platform sync event set API.

Parameters
[in]syncEventHandleHandle iotmiPal_SyncEvent_t structure.
Returns
true to indicate success. Return false for error.

◆ iotmiPal_syncEventWait()

bool iotmiPal_syncEventWait ( iotmiPal_SyncEventHandle_t  syncEventHandle,
uint32_t  blockTimeMs,
bool  clearOnExit 
)

Platform sync event wait API.

Parameters
[in]syncEventHandleHandle to iotmiPal_SyncEvent_t structure.
[in]blockTimeMsMaximum block time to wait for the event in miliseconds.
[in]clearOnExitClear the event when exit.
Returns
true to indicate the notification within blockTimeMs. Return false for error.