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

Public Types

enum  filter_config { DISABLED , NO_RANGE , MASK_AND_RANGE }
 

Public Member Functions

 FilterManager (const CanBusHico &owner, int fileDescriptor, bool enableRanges)
 
bool parseIds (const yarp::os::Bottle &b)
 
bool hasId (unsigned int id) const
 
bool isValid () const
 
bool insertId (unsigned int id)
 
bool eraseId (unsigned int id)
 
bool clearFilters (bool clearStage=true)
 

Static Public Attributes

static const int MAX_FILTERS = 4
 

Private Member Functions

bool setMaskedFilter (unsigned int id)
 
bool setRangedFilter (unsigned int lower, unsigned int upper)
 
bool bulkUpdate ()
 

Private Attributes

const CanBusHicoowner
 
int fd
 
bool valid
 
bool enableRanges
 
std::set< unsigned int > stage
 
std::set< unsigned int > currentlyActive
 

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