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).

Table 3-27. CNFG_SetI2CConfiguration - Command
Byte IndexCommandDescription
00xA9

Command code

Saves the I2C configuration to NVM
1

0x70

0x16

0x04

Speed: 100 kHz

400 kHz

1 MHz

I2C clock frequency
2

0x01

0x02

0xFA

Timeout: 1 ms

2 ms

….

250 ms

I2C clock-stretch timeout
Table 3-28. CNFG_SetI2CConfiguration - Response
Byte IndexResponseDescription
00xA9Echo command codeReturns whether the CNFG_SetI2CConfiguration command was accepted
10x20Accepted – success
0x60Rejected – wrong parametersCommand rejected because the parameters are invalid
0x64Rejected – configuration lockedCommand rejected because the device configuration is locked
0x90Failure - unsuccessful NVM writeSaving to NVM failed; retry