API Reference

This section documents the user-facing APIs methods and constants of CosmicSDK, grouped by class and protocol.

C++ Blocking API

These pages cover the blocking C++ API defined in CosmicSDK.hpp, grouped by protocol.

C++ Asynchronous API

These pages cover the non-blocking C++ API defined in CosmicAsyncSDK.hpp, grouped by protocol.

C API

These pages cover the C API defined in CosmicSDK_API_c.h, grouped by protocol.

Structures

These pages cover all structures used by the C and C++ APIs, grouped by protocol.

Parameters

These pages cover all the constants that can be passed as parameters to the C and C++ APIs methods, grouped by protocol.

Result Codes

These pages cover all result codes returned by the C and C++ APIs, grouped by protocol. Those result codes whose name has the FW_ prefix are returned by the firmware, while those with the SDK_ prefix are returned by the SDK. The result code SUCCESS is returned by both the SDK and the firmware.