File Information
Library: IoT/CAN
Package: Generated
Header: IoT/CAN/CANEndpointRemoteObject.h
Description
The CANEndpoint is used to receive and send CAN and CAN-FD frames.
Inheritance
Direct Base Classes: ICANEndpoint, Poco::RemotingNG::RemoteObject
All Base Classes: ICANEndpoint, Poco::OSP::Service, Poco::RefCountedObject, Poco::RemotingNG::Identifiable, Poco::RemotingNG::RemoteObject
Member Summary
Member Functions: addFilter, device, enableEvents, enableFD, event__frameReceived, eventsEnabled, fdEnabled, fdSupported, getFilter, getFilterMode, remoting__enableEvents, remoting__enableRemoteEvents, remoting__hasEvents, remoting__typeId, removeFilter, sendCANFDFrame, sendCANFrame, sendFrame, setFilter, setFilterMode
Inherited Functions: addFilter, device, duplicate, enableEvents, enableFD, eventsEnabled, fdEnabled, fdSupported, getFilter, getFilterMode, isA, mutex, referenceCount, release, remoting__enableEvents, remoting__enableRemoteEvents, remoting__getURI, remoting__hasEvents, remoting__objectId, remoting__setURI, remoting__typeId, removeFilter, sendCANFDFrame, sendCANFrame, sendFrame, setFilter, setFilterMode, type
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < CANEndpointRemoteObject >;
Constructors
CANEndpointRemoteObject
CANEndpointRemoteObject(
const Poco::RemotingNG::Identifiable::ObjectId & oid,
Poco::SharedPtr < IoT::CAN::CANEndpoint > pServiceObject
);
Creates a CANEndpointRemoteObject.
Destructor
~CANEndpointRemoteObject
virtual ~CANEndpointRemoteObject();
Destroys the CANEndpointRemoteObject.
Member Functions
addFilter
virtual bool addFilter(
const IoT::CAN::Filter & filter
);
Adds a filter element to the frame filter.
Returns true if the filter was added, or false if the filter was already present.
See also: IoT::CAN::ICANEndpoint::addFilter()
device
virtual std::string device() const;
Returns the interface device name (e.g., "can0").
See also: IoT::CAN::ICANEndpoint::device()
enableEvents
virtual void enableEvents(
bool enable = bool (true)
);
Enables or disables events for received CAN frames.
See also: IoT::CAN::ICANEndpoint::enableEvents()
enableFD
virtual void enableFD(
bool enable = bool (true)
);
Enables or disables support for CAN-FD frames.
See also: IoT::CAN::ICANEndpoint::enableFD()
eventsEnabled
virtual bool eventsEnabled() const;
Returns true if events for received CAN frames are enabled, otherwise false.
See also: IoT::CAN::ICANEndpoint::eventsEnabled()
fdEnabled
virtual bool fdEnabled() const;
Returns true if CAN-FD frames are enabled, otherwise false.
See also: IoT::CAN::ICANEndpoint::fdEnabled()
fdSupported
virtual bool fdSupported() const;
Returns true if the implementation supports CAN-FD, otherwise false.
See also: IoT::CAN::ICANEndpoint::fdSupported()
getFilter
std::vector < IoT::CAN::Filter > getFilter() const;
Returns the current filter.
See also: IoT::CAN::ICANEndpoint::getFilter()
getFilterMode
IoT::CAN::FilterMode getFilterMode() const;
Returns the filter mode.
See also: IoT::CAN::ICANEndpoint::getFilterMode()
remoting__enableEvents
virtual std::string remoting__enableEvents(
Poco::RemotingNG::Listener::Ptr pListener,
bool enable = bool (true)
);
remoting__enableRemoteEvents
virtual void remoting__enableRemoteEvents(
const std::string & protocol
);
remoting__hasEvents
virtual bool remoting__hasEvents() const;
remoting__typeId
virtual const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId() const;
removeFilter
virtual bool removeFilter(
const IoT::CAN::Filter & filter
);
Removes the given filter element.
Returns true if the filter was removed, or false if no such filter was set.
See also: IoT::CAN::ICANEndpoint::removeFilter()
sendCANFDFrame
virtual void sendCANFDFrame(
const IoT::CAN::CANFDFrame & frame
);
Transmits the given CAN-FD frame.
See also: IoT::CAN::ICANEndpoint::sendCANFDFrame()
sendCANFrame
virtual void sendCANFrame(
const IoT::CAN::CANFrame & frame
);
Transmits the given CAN frame.
See also: IoT::CAN::ICANEndpoint::sendCANFrame()
sendFrame
virtual void sendFrame(
const IoT::CAN::CANFDFrame & frame,
IoT::CAN::FrameType type = IoT::CAN::FrameType (IoT::CAN::CAN_FRAME_AUTO)
);
See also: IoT::CAN::ICANEndpoint::sendFrame()
setFilter
virtual void setFilter(
const std::vector < IoT::CAN::Filter > & filter
);
Sets a frame filter for CAN messages.
See also: IoT::CAN::ICANEndpoint::setFilter()
setFilterMode
virtual void setFilterMode(
IoT::CAN::FilterMode mode
);
Sets the filter mode (defaults to CAN_FILTER_MODE_OR).
See also: IoT::CAN::ICANEndpoint::setFilterMode()
event__frameReceived
void event__frameReceived(
const IoT::CAN::CANFDFrame & data
);