Removed a few more warnings, switched the way CAN callbacks work.
This commit is contained in:
@@ -151,18 +151,29 @@ public slots:
|
||||
/**
|
||||
* @brief Add a new filter for the targetted frames. If a frame matches it will immediately be sent via the targettedFrameReceived signal
|
||||
* @param pBusId - Which bus to bond to. -1 for any, otherwise a bitfield of buses (but 0 = first bus, etc)
|
||||
* @param target - The filter to use for selected targetted frames
|
||||
* @param ID - 11 or 29 bit ID to match against
|
||||
* @param mask - 11 or 29 bit mask used for filter
|
||||
* @param receiver - Pointer to a QObject that wants to receive notification when filter is matched
|
||||
* @return true if filter was able to be added, false otherwise.
|
||||
*/
|
||||
bool addTargettedFrame(int pBusId, const CANFlt &target);
|
||||
bool addTargettedFrame(int pBusId, uint32_t ID, uint32_t mask, QObject *receiver);
|
||||
|
||||
/**
|
||||
* @brief Try to find a matching filter in the list and remove it, no longer targetting those frames
|
||||
* @param pBusId - Which bus to bond to. Doesn't have to match the call to addTargettedFrame exactly. You could disconnect just one bus for instance.
|
||||
* @param target - The filter that was set
|
||||
* @param ID - 11 or 29 bit ID to match against
|
||||
* @param mask - 11 or 29 bit mask used for filter
|
||||
* @param receiver - Pointer to a QObject that wants to receive notification when filter is matched
|
||||
* @return true if filter was found and deleted, false otherwise.
|
||||
*/
|
||||
bool removeTargettedFrame(int pBusId, const CANFlt &target);
|
||||
bool removeTargettedFrame(int pBusId, uint32_t ID, uint32_t mask, QObject *receiver);
|
||||
|
||||
/**
|
||||
* @brief Removes all registered filters for the passed receiver
|
||||
* @param receiver - Pointer to a QObject that registered one or more filters
|
||||
* @return true if filter(s) was/were found and deleted, false otherwise.
|
||||
*/
|
||||
bool removeAllTargettedFrames(QObject *receiver);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user