bloguetronica / cp2130-qt

A C++ class that uses libusb to interface with CP2130 devices. It can be used to configure the OTP ROM of such devices, as well as to control them. The class was made for Qt. If you wish to use a derived non-Qt version, please refer to https://github.com/bloguetronica/cp2130.
0 stars 0 forks source link

Improvements to do for the next release (v2.0.0) #3

Closed samuelfmlourenco closed 3 years ago

samuelfmlourenco commented 3 years ago
samuelfmlourenco commented 3 years ago

Since bulkTransfer() and controlTransfer() are no longer const members (due to the implementation of the reporting mechanism mentioned above), this means that many other functions cannot be const members as well. This breaks compatibility. Thus, v1.2.0 will no longer be released. Instead, v2.0.0 will be released in its place.

samuelfmlourenco commented 3 years ago

Instead of a single function "quint8 endpointAddress(quint8 endpoint)", two functions that will meet the objective in a better way will be implemented:

These functions solve two issues:

The main objectives are met. However, before the release, there is the need to study the possibility to implement other functions, namely spiRead() and spiWrite(), for the sake of completeness.