Code: |
AS + 118 |
Symbolic: |
bccFlashSetAttributes |
This command will set multiple flash object (file/folder) attributes on the connected device. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
FLAGS |
Operating flags: 0x00000001 Absolute paths 0x00000002 Recursive 0x00000004 Set folders 0x00000008 Set files 0x00000010 Set hidden files/folders |
4 |
U32 |
ATTRIB |
Attributes to set: 0x00000004 System file 0x00000020 Hidden file 0x00000040 Read-only file |
8 |
U32 |
ATTRIBM |
Attributes mask (see ATTRIB) |
12 |
STRZ |
FILEMASK |
Folder and/or filename mask (with jollies) |
On success, a bccAck is received with the following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
COUNT |
Number of changed objects (file/folders) |
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackIllegalArgs |
Illegal argument |
U16 What illegal: 1=Flags 2=Attributes 3=Attributes mask 4=Filemask |
nackReadOnly |
The flash (or the device itself) is read-only and cannot be writtten. |
|