cryptnox-sdk-arduino 1.0.0
Arduino library for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
CW_Platform Class Referenceabstract

Abstract interface for platform-specific operations used by the SDK. More...

#include <CW_Platform.h>

Inheritance diagram for CW_Platform:
[legend]

Public Member Functions

virtual void sleep_ms (uint32_t ms)=0
 Block for at least ms milliseconds.
virtual ~CW_Platform ()

Detailed Description

Abstract interface for platform-specific operations used by the SDK.

Decouples the SDK core from any specific RTOS or bare-metal delay mechanism, allowing the same SDK to run on ESP32 (FreeRTOS), Arduino, and hosted (Linux/macOS) test environments.

Definition at line 39 of file CW_Platform.h.

Constructor & Destructor Documentation

◆ ~CW_Platform()

virtual CW_Platform::~CW_Platform ( )
inlinevirtual

Definition at line 48 of file CW_Platform.h.

Member Function Documentation

◆ sleep_ms()

virtual void CW_Platform::sleep_ms ( uint32_t ms)
pure virtual

Block for at least ms milliseconds.

Parameters
[in]msDuration to sleep in milliseconds.

Implemented in ArduinoPlatform, and StubPlatform.


The documentation for this class was generated from the following file: