Code: |
AS + 116 |
Symbolic: |
bccFlashInfoByFolder |
This command will request information about the corresponding flash device of the specified folder. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
FLAGS |
Operating flags: (none) |
4 |
STRZ |
PATH |
Flash folder path (0-termined, absolute, using / as folder separator) |
On success, a bccAck is received with the following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U16 |
TYPE |
Flash device type 0x0000 Generic 0x0001 Standard flash (Robox) 0x0002 Limited flash (Robox) 0x0003 Compact flash/SD/MicroSD (< 4GiB) 0x0004 Ramdisk (Robox) 0x0005 Larger SD/MicroSD (>= 4GiB) |
2 |
U16 |
DEVID |
Flash device ID |
4 |
B[32] |
DATA |
Data according TYPE |
36 |
STRZ |
NAME |
Fully qualified flash name |
On failure, a bccNack is receivedSpecific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackIllegalArgs |
Illegal parameters |
U16 What illegal: 1=Flags 2=Flash device ID 3=Flash name |
For standard flash (type 0x0001) data are following:
Offset |
Type |
Label |
Description |
---|---|---|---|
+0 |
U32 |
SIZE |
Flash size [bytes] |
+4 |
U32 |
FREE |
Flash free space [bytes] |
+8 |
B[24] |
|
(reserved) |
For limited flash (type 0x0002) data are following:
Offset |
Type |
Label |
Description |
---|---|---|---|
+0 |
U32 |
FREE |
Flash free space [bytes] |
+4 |
B[28] |
|
(reserved) |
For compact flash/SD/MicroSD (< 4GiB; type 0x0003) data are following:
Offset |
Type |
Label |
Description |
---|---|---|---|
+0 |
U32 |
SIZE |
Flash size [bytes] |
+4 |
U32 |
FREE |
Flash free space [bytes] |
+8 |
B[24] |
|
(reserved) |
For ramdisk (type 0x0004) data are following:
Offset |
Type |
Label |
Description |
---|---|---|---|
+0 |
U32 |
SIZE |
Flash size [bytes] |
+4 |
U32 |
FREE |
Flash free space [bytes] |
+8 |
B[24] |
|
(reserved) |
For larger SD/MicroSD (>= 4Gib; type 0x0005) data are following:
Offset |
Type |
Label |
Description |
---|---|---|---|
+0 |
U64 |
SIZE |
Flash size [bytes] |
+8 |
U64 |
FREE |
Flash free space [bytes] |
+16 |
B[16] |
|
(reserved) |