yarp-devices
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
roboticslab::CanBusHico Class Reference

Specifies the HicoCan (hcanpci) behaviour and specifications.

#include <CanBusHico.hpp>

Inheritance diagram for roboticslab::CanBusHico:

Classes

class  FilterManager
 

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
 
bool canGetErrors (yarp::dev::CanErrors &err) override
 

Private Types

enum  io_operation { READ , WRITE }
 

Private Member Functions

FilterManager::filter_config parseFilterConfiguration (const std::string &str)
 
bool waitUntilTimeout (io_operation op, bool *bufferReady)
 
bool bitrateToId (unsigned int bitrate, unsigned int *id)
 
bool idToBitrate (unsigned int id, unsigned int *bitrate)
 

Private Attributes

int fileDescriptor {0}
 
int rxTimeoutMs {0}
 
int txTimeoutMs {0}
 
bool blockingMode
 
bool allowPermissive
 
std::mutex canBusReady
 
std::pair< bool, unsigned int > bitrateState
 
FilterManagerfilterManager {nullptr}
 
FilterManager::filter_config filterConfig
 

Member Data Documentation

◆ fileDescriptor

int roboticslab::CanBusHico::fileDescriptor {0}
private

CAN file descriptor


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