yarp-devices
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
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 std::vector< int > &ids)
 
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 constexpr 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 {0}
 
bool valid {false}
 
bool enableRanges {false}
 
std::set< unsigned int > stage
 
std::set< unsigned int > currentlyActive
 

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