first commit

This commit is contained in:
flowerstonezl
2026-06-09 16:50:28 +08:00
commit 70f675a48b
93 changed files with 3802 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <cstdint>
#include <map>
#include <string>
namespace canopen {
class CanopenNodeManager {
public:
bool registerNode(uint8_t nodeId);
bool setState(uint8_t nodeId, const std::string& state);
std::string state(uint8_t nodeId) const;
private:
std::map<uint8_t, std::string> states_;
};
} // namespace canopen