first commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user