getIface() constants added

This commit is contained in:
ilia-sheremet
2015-06-13 20:15:45 +02:00
parent 3784484b16
commit bad7123b7d
6 changed files with 39 additions and 4 deletions
+12
View File
@@ -85,6 +85,17 @@ struct UAVCAN_EXPORT CanFilterConfig
{
uint32_t id;
uint32_t mask;
//bool operator == (const CanFilterConfig&) const;
bool operator==(const CanFilterConfig& rhs) const
{
return rhs.id == id && rhs.mask == mask;
}
CanFilterConfig()
: id(0)
, mask(0)
{ }
};
/**
@@ -167,6 +178,7 @@ public:
* Returns an interface by index, or null pointer if the index is out of range.
*/
virtual ICanIface* getIface(uint8_t iface_index) = 0;
virtual const ICanIface* getIface(uint8_t iface_index) const = 0;
/**
* Total number of available CAN interfaces.