|
AWS IoT Device SDK C:
Platform
Platform portability layer
|
| Return to main page ↑ |
| Configuration | Configuration settings of the platform layer |
| Clock | Time-related functions used by libraries in this SDK. |
| Thread Management | Threading and synchronization functions used by libraries in this SDK. |
| Networking | Abstraction of network functions used by libraries in this SDK. |
| Metrics | Functions for retrieving Device Defender metrics. |
| Atomics | Atomic operations: small inlined functions used for atomically manipulating memory |
| ▼Functions | Functions of the platform layer |
| ▼Clock | Functions of the platform clock component |
| IotClock_GetTimestring | Generates a human-readable timestring, such as "01 Jan 2018 12:00". |
| IotClock_GetTimeMs | Returns a nonzero, monotonically-increasing system time in milliseconds. |
| IotClock_SleepMs | Delay for the given number of milliseconds. |
| IotClock_TimerCreate | Create a new timer. |
| IotClock_TimerDestroy | Free resources used by a timer. |
| IotClock_TimerArm | Arm a timer to expire at the given relative timeout. |
| ▼Networking | Functions of the network abstraction component |
| IotNetworkInterface_t::create | Create network connection. |
| IotNetworkInterface_t::setReceiveCallback | Set receive callback. |
| IotNetworkInterface_t::setCloseCallback | Set close callback. |
| IotNetworkInterface_t::send | Send data. |
| IotNetworkInterface_t::receive | Block and wait for receive data. |
| IotNetworkInterface_t::close | Close network connection. |
| IotNetworkInterface_t::destroy | Destroy network connection. |
| IotNetworkReceiveCallback_t | Provide an asynchronous notification of incoming network data. |
| IotNetworkReceiveCallback_t | Provide an asynchronous notification of incoming network data. |
| ▼Thread Management | Functions of the platform thread management |
| Iot_CreateDetachedThread | Create a new detached thread, i.e. a thread that cleans up after itself. |
| IotMutex_Create | Create a new mutex. |
| IotMutex_Destroy | Free resources used by a mutex. |
| IotMutex_Lock | Lock a mutex. This function should only return when the mutex is locked; it is not expected to fail. |
| IotMutex_TryLock | Attempt to lock a mutex. Return immediately if the mutex is not available. |
| IotMutex_Unlock | Unlock a mutex. This function should only return when the mutex is unlocked; it is not expected to fail. |
| IotSemaphore_Create | Create a new counting semaphore. |
| IotSemaphore_Destroy | Free resources used by a semaphore. |
| IotSemaphore_GetCount | Query the current count of the semaphore. |
| IotSemaphore_Wait | Wait on (lock) a semaphore. This function should only return when the semaphore wait succeeds; it is not expected to fail. |
| IotSemaphore_TryWait | Attempt to wait on (lock) a semaphore. Return immediately if the semaphore is not available. |
| IotSemaphore_TimedWait | Attempt to wait on (lock) a semaphore with a timeout. |
| IotSemaphore_Post | Post to (unlock) a semaphore. This function should only return when the semaphore post succeeds; it is not expected to fail. |
| ▼Metrics | Functions of the platform metrics component |
| IotMetrics_Init | One-time initialization function for the platform metrics component. |
| IotMetrics_Cleanup | One-time deinitialization function for the platform metrics component. |
| IotMetrics_GetTcpConnections | Retrieve a list of active TCP connections from the system. |
| ▼Atomics | Functions of the platform atomics component |
| Atomic_CompareAndSwap_u32 | Performs an atomic compare-and-swap operation on the given values. |
| Atomic_Swap_Pointer | Atomically writes a pointer value to memory. |
| Atomic_CompareAndSwap_Pointer | Performs an atomic compare-and-swap operation on the given pointers. |
| Atomic_Add_u32 | Performs an atomic addition of the given values. |
| Atomic_Subtract_u32 | Performs an atomic subtraction of the given values. |
| Atomic_Increment_u32 | Atomically adds 1 to the given value. |
| Atomic_Decrement_u32 | Atomically subtracts 1 from the given value. |
| Atomic_OR_u32 | Performs an atomic bitwise OR of the given values. |
| Atomic_XOR_u32 | Performs an atomic bitwise XOR of the given values. |
| Atomic_AND_u32 | Performs an atomic bitwise AND of the given values. |
| Atomic_NAND_u32 | Performs an atomic bitwise NAND of the given values. |