3.6.11 CNFG_SetI2CConfiguration
Command and its Response
The CNFG_SetI2CConfiguration command (0xA9) saves the
I2C Configuration to NVM.
This command is sent through Endpoint 0x05 (OUT). The response is read through Endpoint 0x85 (IN).
| Byte Index | Command | Description | |
|---|---|---|---|
| 0 | 0xA9 |
Command code | Saves the I2C configuration to NVM |
| 1 |
|
Speed: 100 kHz 400 kHz 1 MHz | I2C clock frequency |
| 2 |
|
Timeout: 1 ms 2 ms …. 250 ms | I2C clock-stretch timeout |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0xA9 | Echo command code | Returns whether the
CNFG_SetI2CConfiguration command was
accepted |
| 1 | 0x20 | Accepted – success | |
0x60 | Rejected – wrong parameters | Command rejected because the parameters are invalid | |
0x64 | Rejected – configuration locked | Command rejected because the device configuration is locked | |
0x90 | Failure - unsuccessful NVM write | Saving to NVM failed; retry | |
