bloguetronica / mcp2210-qt

A C++ class that uses libusb to interface with MCP2210 devices. It can be used to control the several aspects, such as NVRAM or volatile configurations, GPIO directions and states, or to perform SPI transfers. Note that this is a class variant made specifically for Qt. If you wish to use the original, non-Qt variant, please refer to https://github.com/bloguetronica/mcp2210.
0 stars 0 forks source link

Implement password and NVRAM lock #2

Closed samuelfmlourenco closed 1 year ago

samuelfmlourenco commented 1 year ago

Password and NVRAM locking capability will be implemented in version 1.1.0. The function writeNVChipSettings() will be modified to accept an access control parameter and a password. The current implementation, which doesn't require such arguments, will be maintained via function overload.

Additionally, two other functions will be added: getAccessControlMode() and usePassword(). The first will be used to retrieve the NVRAM access control byte. This is useful to check if the NVRAM is not protected, password protected or locked. The second function will allow the program to use a password before calling any functions that will require it, if such a password is set.

samuelfmlourenco commented 1 year ago

Implemented in version 1.1.0.