mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:53:35 +08:00
getIface() constants added
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user