Vortex Driver
API reference
Loading...
Searching...
No Matches
VortexHostSession.hpp
Go to the documentation of this file.
1
10#pragma once
11
12#include "VortexCanFrame.hpp"
14#include "VortexProtocol.hpp"
15#include <cstdint>
16
17namespace hf::vortex {
18
23public:
26
28 bool sendNmt(NmtCommand cmd, std::uint8_t targetNode) noexcept;
29
34 bool sdoDownloadExpedited(std::uint8_t nodeId, std::uint16_t index, std::uint8_t sub,
35 std::uint32_t value, std::uint8_t size) noexcept;
36
37 VortexCanTransport& transport() noexcept { return transport_; }
38
39private:
41};
42
43} // namespace hf::vortex
Minimal classic-CAN frame for hardware-agnostic Vortex / CANopen host use.
Abstract transport for Vortex / CANopen — implement with BaseCan, socketcan, or stubs.
CiA 301/402 and HardFOC vendor index placeholders for Vortex over CAN.
User-provided link to a CAN bus (one controller).
Definition VortexCanTransport.hpp:18
Small host-side session: sends NMT and expedited SDO download frames.
Definition VortexHostSession.hpp:22
bool sdoDownloadExpedited(std::uint8_t nodeId, std::uint16_t index, std::uint8_t sub, std::uint32_t value, std::uint8_t size) noexcept
SDO download expedited, 1/2/4 bytes to object index / sub.
Definition VortexHostSession.cpp:59
VortexHostSession(VortexCanTransport &transport) noexcept
Definition VortexHostSession.hpp:24
bool sendNmt(NmtCommand cmd, std::uint8_t targetNode) noexcept
NMT 0x000, 2 bytes: command + target node (0 = all).
Definition VortexHostSession.cpp:55
VortexCanTransport & transport() noexcept
Definition VortexHostSession.hpp:37
VortexCanTransport & transport_
Definition VortexHostSession.hpp:40
Definition VortexCanFrame.hpp:12
NmtCommand
NMT command bytes (CANopen CiA 301)
Definition VortexProtocol.hpp:46