This file defines sync event platform abstraction interface.
More...
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
|
|
typedef struct iotmiPal_SyncEvent | iotmiPal_SyncEvent_t |
| |
|
typedef struct iotmiPal_SyncEvent * | iotmiPal_SyncEventHandle_t |
| |
|
| 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.
|
| |
This file defines sync event platform abstraction interface.
◆ iotmiPal_syncEventClear()
| bool iotmiPal_syncEventClear |
( |
iotmiPal_SyncEventHandle_t |
syncEventHandle | ) |
|
Platform sync event clear API.
- Parameters
-
| [in] | syncEventHandle | Handle 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] | syncEventHandle | Handle to iotmiPal_SyncEvent structure to be deleted. |
◆ iotmiPal_syncEventSet()
| bool iotmiPal_syncEventSet |
( |
iotmiPal_SyncEventHandle_t |
syncEventHandle | ) |
|
Platform sync event set API.
- Parameters
-
| [in] | syncEventHandle | Handle 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] | syncEventHandle | Handle to iotmiPal_SyncEvent_t structure. |
| [in] | blockTimeMs | Maximum block time to wait for the event in miliseconds. |
| [in] | clearOnExit | Clear the event when exit. |
- Returns
- true to indicate the notification within blockTimeMs. Return false for error.