|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Hardware abstraction layer: network, console, time, crypto, and GPIO interfaces. More...
Classes | |
| class | ConsoleInterface |
| Abstract interface for console I/O. More... | |
| class | CryptoInterface |
| Abstract interface for TLS/crypto operations. More... | |
| class | GpioInterface |
| Abstract interface for general-purpose pin I/O. More... | |
| struct | HttpClientConfig |
| Call-time configuration for HTTP client creation. More... | |
| struct | NetworkConfig |
| Construction-time configuration for the network subsystem. More... | |
| class | NetworkInterface |
| Abstract interface for network connectivity. More... | |
| struct | PlatformConfig |
| Construction-time configuration passed to CreatePlatform(). More... | |
| class | PlatformContext |
| Holds all platform subsystems and provides a factory for HTTP clients. More... | |
| struct | PwmConfig |
| Configuration for a PWM output channel. More... | |
| struct | TimeConfig |
| Call-time configuration for time synchronization. More... | |
| class | TimeInterface |
| Abstract interface for time operations. More... | |
| class | TLSClientWrapper |
| Wrapper around a platform-specific TLS client. More... | |
Typedefs | |
| using | PinId = uint32_t |
| 32-bit pin identifier. | |
Enumerations | |
| enum class | PinMode : uint8_t { kInput = 0 , kOutput = 1 , kInputPullup = 2 } |
| Direction and pull configuration of a pin. More... | |
| enum class | NetworkStatus : uint8_t { kDisconnected , kConnecting , kConnected , kFailed } |
| Connection state of the network subsystem. More... | |
Functions | |
| std::shared_ptr< PlatformContext > | CreatePlatform (const PlatformConfig &config={}) |
| Factory function. | |
Hardware abstraction layer: network, console, time, crypto, and GPIO interfaces.
| using foresthub::platform::PinId = uint32_t |
32-bit pin identifier.
Wide enough for port+pin encoding schemes (e.g. port << 8 | pin) used by various microcontroller families while remaining trivially copyable.
|
strong |
|
strong |
| std::shared_ptr< PlatformContext > foresthub::platform::CreatePlatform | ( | const PlatformConfig & | config = {} | ) |
Factory function.
Returns the platform-specific context.
| config | Network and connectivity configuration. |