Vortex Driver
API reference
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
hf::vortex::VortexHostSession Class Reference

Small host-side session: sends NMT and expedited SDO download frames. More...

#include <VortexHostSession.hpp>

Public Member Functions

 VortexHostSession (VortexCanTransport &transport) noexcept
 
bool sendNmt (NmtCommand cmd, std::uint8_t targetNode) noexcept
 NMT 0x000, 2 bytes: command + target node (0 = all).
 
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.
 
VortexCanTransport & transport () noexcept
 

Private Attributes

VortexCanTransport & transport_
 

Detailed Description

Small host-side session: sends NMT and expedited SDO download frames.

Constructor & Destructor Documentation

◆ VortexHostSession()

hf::vortex::VortexHostSession::VortexHostSession ( VortexCanTransport &  transport)
inlineexplicitnoexcept

Member Function Documentation

◆ sdoDownloadExpedited()

bool hf::vortex::VortexHostSession::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.

Parameters
size1, 2, or 4

◆ sendNmt()

bool hf::vortex::VortexHostSession::sendNmt ( NmtCommand  cmd,
std::uint8_t  targetNode 
)
noexcept

NMT 0x000, 2 bytes: command + target node (0 = all).

◆ transport()

VortexCanTransport & hf::vortex::VortexHostSession::transport ( )
inlinenoexcept

Member Data Documentation

◆ transport_

VortexCanTransport& hf::vortex::VortexHostSession::transport_
private

The documentation for this class was generated from the following files: