IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
iotmi_pal_SyncEvent.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
3 *
4 * AMAZON PROPRIETARY/CONFIDENTIAL
5 *
6 * You may not use this file except in compliance with the terms and
7 * conditions set forth in the accompanying LICENSE.txt file.
8 *
9 * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
10 * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
11 * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
12 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
13 */
14
20#ifndef IOTMI_PAL_SYNC_EVENT_H_
21#define IOTMI_PAL_SYNC_EVENT_H_
22
23/* Standard includes. */
24#include <stdbool.h>
25#include <stdint.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
34struct iotmiPal_SyncEvent;
35typedef struct iotmiPal_SyncEvent iotmiPal_SyncEvent_t;
36typedef struct iotmiPal_SyncEvent* iotmiPal_SyncEventHandle_t;
37
44iotmiPal_SyncEventHandle_t iotmiPal_syncEventCreate(void);
45
52void iotmiPal_syncEventDelete(iotmiPal_SyncEventHandle_t syncEventHandle);
53
65bool iotmiPal_syncEventWait(iotmiPal_SyncEventHandle_t syncEventHandle,
66 uint32_t blockTimeMs, bool clearOnExit);
67
75bool iotmiPal_syncEventSet(iotmiPal_SyncEventHandle_t syncEventHandle);
76
84bool iotmiPal_syncEventClear(iotmiPal_SyncEventHandle_t syncEventHandle);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* IOTMI_PAL_SYNC_EVENT_H_ */
void iotmiPal_syncEventDelete(iotmiPal_SyncEventHandle_t syncEventHandle)
Platform sync event delete API.
bool iotmiPal_syncEventClear(iotmiPal_SyncEventHandle_t syncEventHandle)
Platform sync event clear API.
bool iotmiPal_syncEventSet(iotmiPal_SyncEventHandle_t syncEventHandle)
Platform sync event set API.
iotmiPal_SyncEventHandle_t iotmiPal_syncEventCreate(void)
Platform sync event create API. Event status is unset when created.
bool iotmiPal_syncEventWait(iotmiPal_SyncEventHandle_t syncEventHandle, uint32_t blockTimeMs, bool clearOnExit)
Platform sync event wait API.