yarp-devices
Loading...
Searching...
No Matches
CanBusSocket Class Reference
Inheritance diagram for CanBusSocket:
CanBusSocket_ParamsParser

Public Member Functions

bool open (yarp::os::Searchable &config) override
bool close () override
bool canSetBaudRate (unsigned int rate) override
bool canGetBaudRate (unsigned int *rate) override
bool canIdAdd (unsigned int id) override
bool canIdDelete (unsigned int id) override
bool canRead (yarp::dev::CanBuffer &msgs, unsigned int size, unsigned int *read, bool wait=false) override
bool canWrite (const yarp::dev::CanBuffer &msgs, unsigned int size, unsigned int *sent, bool wait=false) override
Public Member Functions inherited from CanBusSocket_ParamsParser
bool parseParams (const yarp::os::Searchable &config) override
std::string getDeviceClassName () const override
std::string getDeviceName () const override
std::string getDocumentationOfDeviceParams () const override
std::vector< std::string > getListOfParams () const override
bool getParamValue (const std::string &paramName, std::string &paramValue) const override
std::string getConfiguration () const override

Private Types

enum  io_operation { READ , WRITE }

Private Member Functions

bool waitUntilTimeout (io_operation op, bool *bufferReady)
void interpretErrorFrame (const struct can_frame *msg)

Private Attributes

int socketDescriptor {0}
std::vector< struct can_filter > filters

Additional Inherited Members

Public Attributes inherited from CanBusSocket_ParamsParser
const std::string m_device_classname = {"CanBusSocket"}
const std::string m_device_name = {"CanBusSocket"}
bool m_parser_is_strict = false
const parser_version_type m_parser_version = {}
std::string m_provided_configuration
const std::string m_port_defaultValue = {"can0"}
const std::string m_bitrate_defaultValue = {"0"}
const std::string m_blockingMode_defaultValue = {"true"}
const std::string m_allowPermissive_defaultValue = {"false"}
const std::string m_rxTimeoutMs_defaultValue = {"1"}
const std::string m_txTimeoutMs_defaultValue = {"0"}
const std::string m_filterFunctionCodes_defaultValue = {"true"}
const std::string m_filteredIds_defaultValue = {""}
std::string m_port = {"can0"}
int m_bitrate = {0}
bool m_blockingMode = {true}
bool m_allowPermissive = {false}
int m_rxTimeoutMs = {1}
int m_txTimeoutMs = {0}
bool m_filterFunctionCodes = {true}
std::vector< int > m_filteredIds = {}

The documentation for this class was generated from the following files:
  • libraries/YarpPlugins/CanBusSocket/CanBusSocket.hpp
  • libraries/YarpPlugins/CanBusSocket/CanBusSocket.cpp
  • libraries/YarpPlugins/CanBusSocket/DeviceDriverImpl.cpp
  • libraries/YarpPlugins/CanBusSocket/ICanBusImpl.cpp