CamIOManager allows the driver to set event masks even if corresponding events were not requested. This feature somewhat simplifies driver logic.

This commit is contained in:
Pavel Kirienko
2014-03-31 14:22:52 +04:00
parent b941c6293c
commit 75f475fac2
2 changed files with 16 additions and 2 deletions
@@ -153,6 +153,7 @@ class CanIOManager : Noncopyable
int sendToIface(uint8_t iface_index, const CanFrame& frame, MonotonicTime tx_deadline, CanIOFlags flags);
int sendFromTxQueue(uint8_t iface_index);
uint8_t makePendingTxMask() const;
int callSelect(CanSelectMasks& inout_masks, MonotonicTime blocking_deadline);
public:
CanIOManager(ICanDriver& driver, IAllocator& allocator, ISystemClock& sysclock)