3.6.9 CNFG_SetIOConfiguration
Command and its Response
The CNFG_SetIOConfiguration command (0xA1) saves the I/O
configuration to NVM.
This command is sent through Endpoint 0x05 (OUT). The response is read through Endpoint 0x85 (IN).
| Byte Index | Command | Description | |
|---|---|---|---|
| 0 | 0xA1 | Command code | Saves the I/O pin configuration to NVM |
| 1 | bIO0S | IO0 configuration | Refer to the IO0 setting register |
| 2 | bIO1S | IO1 configuration | Refer to the IO1 setting register |
| 3 | bIO2S | IO2 configuration | Refer to the IO2 setting register |
| 4 | bIO3S | IO3 configuration | Refer to the IO3 setting register |
| 5 | bIO4S | IO4 configuration | Refer to the IO4 setting register |
| 6 | bIO5S | IO5 configuration | Refer to the IO5 setting register |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0xA1 | Echo command code | Returns whether the CNFG_IOConfiguration command was
accepted |
| 1 | 0x20 | Accepted - success | Accepted, and the I/O configuration to NVM is saved |
0x60 | Rejected - invalid configuration | Rejected because the configuration is invalid | |
0x64 | Rejected - locked | Rejected because the device is locked | |
0x90 | Failure - unsuccessful NVM write | Saving to NVM failed; retry | |
