3.6.14 CNFG_GetSPIConfiguration
Command and its Response
CNFG_GetSPIConfiguration command (0xAF) reads the
SPI Configuration from SRAM or NVM:bSource→ 0x00 = SRAM; 0x01 = NVM
This command is sent through Endpoint 0x05 (OUT). The response is read through Endpoint 0x85 (IN).
| Byte Index | Command | Description | |
|---|---|---|---|
|
0 |
|
Command code | Returns the SPI configuration from SRAM or NVM |
| 1 |
| bSource: SRAM NVM | |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0xAF | Echo command code | Returns the SPI configuration from SRAM or NVM |
| 1 | 0x21 | Accepted | Command is accepted |
| 2 |
|
Speed: 12 MHz 6 MHz 3 MHz 1.5 MHz 750 kHz 375 kHz 187.5 kHz | SPI clock frequency |
| 3 |
|
Mode: 0 1 2 3 | SPI mode |
| 4 |
| CS-ActStat: CS0-ActiveLow CS0-ActiveHigh CS1-ActiveLow CS1-ActiveHigh CS2-ActiveLow CS2-ActiveHigh CS3-ActiveLow CS3-ActiveHigh | Chip-select and its assertion state |
| 5 |
|
0 μs 10 μs 20 μs 30 μs ... 1000 μs ... 5000 μs |
Delay between chip-select assertion and the first data byte Delay between each data byte Delay between the last data byte and chip select de-assertion. |
