-
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I believe lwrb is a great module, and I've been using it extensively. It works wonderfully! However, I think lwpkt should be an independent module, and its usage should not necessarily require lwrb.
Instead of relying on lwrb for the ring buffers, I suggest we could replace the following:
lwrb_t* tx_rb; /*!< TX ringbuffer */
lwrb_t* rx_rb; /*!< RX ringbuffer */
With something like:
size_t(*read)(char*, size_t);
size_t(*write)(char*, size_t);
This would allow users to define their own read and write functions, making the module more independent. Users could still choose to use the lwrb module if they wish, but the lwpkt module would no longer be tightly coupled to it.
Metadata
Metadata
Assignees
Labels
No labels