Last update: March 2015
An iSDIO command write data contains one or multiple command information. Note that FlashAir supports issuing only one command at a time. In other word, Number of iSDIO Commands is always 1.
Size [Byte] | Name | Short Description | Read/Write |
---|---|---|---|
1 | iSDIO Command Write Identifier | 01h | Write Only |
1 | Number of iSDIO Commands | The number of iSDIO commands to be registered. (1 to 8.) FlashAir supports 1. | Write Only |
2 | Reserved | Write Only | |
4 | Size of iSDIO Command Write Data | Size of iSDIO Command Write Data | Write Only |
4 | Reserved | Write Only | |
Variable | iSDIO Command Information #1 | Write Only | |
(rest) | Reserved | Write Only |
An iSDIO command information contains information - command id and arguments about a single command. Every argument must be aligned to 4-byte boundary by adjusting Padding #n.
Size [Byte] | Name | Short Description | Read/Write |
---|---|---|---|
2 | Reserved | Write Only | |
2 | iSDIO command id | Command ID | Write Only |
4 | iSDIO command sequence id | Sequence ID to distinguish from other issued commands. | Write Only |
2 | Number of Arguments | Number of Arguments for the command | Write Only |
2 | Reserved | Write Only | |
4 | Length of Argument #1 | Length of the argument for the command (L 1) | Write Only |
L 1 | Argument #1 | Argument for the command | Write Only |
0, 1, 2 or 3 | Padding #1 | Padding size is either 0 (for L 1 mod4=0), 1 (for L 1 mod4=3), 2 (for L 1 mod4=2), 3 (for L 1 mod4=1) | Write Only |
… | Write Only | ||
4 | Length of Argument #n 2 | (L n) | Write Only |
L n | Argument #n 2 | Write Only | |
0, 1, 2 or 3 | Padding #n 2 | Padding size is either 0 (for L n mod4=0), 1 (for L n mod4=3), 2 (for L n mod4=2), 3 (for L n mod4=1) | Write Only |