This repository was archived by the owner on Apr 6, 2025. It is now read-only.
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Support library for 107-Arduino-Cyphal providing permanent register storage, unique IDs, etc.
License
NotificationsYou must be signed in to change notification settings
107-systems/107-Arduino-Cyphal-Support
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This library provides support functionality for building a completeCyphal application in combination with107-Arduino-Cyphal.
This library works for
- arduino-pico:
Raspberry Pi Pico
,Adafruit Feather RP2040
, ... ✔️ - ArduinoCore-renesas:
Portenta C33
,Uno R4 WiFi
,Uno R4 Minima
, ... ✔️
Features:
- API for obtaining aunique 64-bit ID.
auto/* std::array<uint8_t, 16>*/const UNIQUE_ID = cyphal::support::UniqueId::instance().value();
- API forpersistent register storage and retrieval.
/* Declaration of key/value storage.*/cyphal::support::platform::storage::littlefs::KeyValueStoragekv_storage(filesystem);/* Load persistently stored registers from a non-volatile memory (EEPROM, flash, etc.).*/if (autoconst opt_err = cyphal::support::load(kv_storage, *node_registry); opt_err.has_value()){ Serial.print("load failed with error code"); Serial.println(static_cast<int>(opt_err.value()));}/* Store persistent registers to a non-volatile memory (EEPROM, flash, etc.).*/if (autoconst opt_err = cyphal::support::save(kv_storage, *node_registry); opt_err.has_value()){ Serial.print("save failed with error code"); Serial.println(static_cast<int>(opt_err.value()));}
- API for performingsynchronous and asynchronous resets.
/* Synchronous reset:*/cyphal::support::platform::reset_sync(std::chrono::milliseconds(5000));/* Asynchronous reset:*/cyphal::support::platform::reset_async(std::chrono::milliseconds(5000));
About
Support library for 107-Arduino-Cyphal providing permanent register storage, unique IDs, etc.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.