|
cryptnox-sdk-cpp 1.0.0
Platform-independent C++ core SDK for Cryptnox Hardware Wallet
|
Arduino compatibility shims for non-Arduino (plain C++) builds. More...
#include <stdint.h>#include <stddef.h>#include <string.h>#include <stdbool.h>Go to the source code of this file.
Classes | |
| class | __FlashStringHelper |
Macros | |
| #define | DEC 10 |
| #define | HEX 16 |
| #define | OCT 8 |
| #define | BIN 2 |
| #define | F(string_literal) |
Arduino compatibility shims for non-Arduino (plain C++) builds.
Include this file instead of <Arduino.h> in platform-independent headers. When building for Arduino, ARDUINO is already defined by the toolchain and this file is a no-op — Arduino.h has already provided all these definitions. When building outside Arduino (desktop, ESP-IDF, CI) this file provides the minimum set of defines/types needed so the SDK headers compile cleanly.
Definition in file platform_compat.h.
| #define BIN 2 |
Definition at line 37 of file platform_compat.h.
| #define DEC 10 |
Definition at line 34 of file platform_compat.h.
Referenced by CW_Logger::print(), CW_Logger::print(), CW_Logger::print(), CW_Logger::print(), CW_Logger::println(), CW_Logger::println(), CW_Logger::println(), and CW_Logger::println().
| #define F | ( | string_literal | ) |
Definition at line 42 of file platform_compat.h.
Referenced by CW_SecureChannel::aesCbcDecrypt(), CW_SecureChannel::aesCbcEncrypt(), CW_SecureChannel::checkStatusWord(), CryptnoxWallet::connect(), CryptnoxWallet::debugPrintSignature(), CryptnoxWallet::establishSecureChannel(), CryptnoxWallet::extractRawSignature(), CW_SecureChannel::getCardCertificate(), CryptnoxWallet::getCardInfo(), CW_SecureChannel::getManufacturerCertificate(), CW_SecureChannel::mutuallyAuthenticate(), CW_SecureChannel::openSecureChannel(), CW_SecureChannel::selectApdu(), CryptnoxWallet::sendSignApdu(), CryptnoxWallet::validateSignRequest(), CW_SecureChannel::verifyCertificateChain(), CryptnoxWallet::verifyPin(), and CryptnoxWallet::writeUserData().
| #define HEX 16 |
Definition at line 35 of file platform_compat.h.
Referenced by CW_SecureChannel::aesCbcDecrypt(), CW_SecureChannel::aesCbcEncrypt(), CW_SecureChannel::checkStatusWord(), CryptnoxWallet::debugPrintSignature(), and CryptnoxWallet::establishSecureChannel().
| #define OCT 8 |
Definition at line 36 of file platform_compat.h.