Return to previous page | Return to menu | Go to next page


13-2. Basic processing flow

The backup library function is explained along the basic processing flow.

1) Initialization [BUP_Init ()]
The backup library is read from BOOTROM and expanded to the specified address space. Returns each device information at that time.

2) Partition selection [BUP_SelPart ()]
Specify the partition of the device to be used. The default partition is number 0 (built-in memory cartridge).

3) Get status [BUP_Stat ()]
Get the status of the device you want to read / write. For writing, specify the size of the data you want to write in bytes. The return value indicates whether or not writing is possible.

4) Format [BUP_Format ()]
If the device you want to use is unformatted by obtaining the status, you need to format it. The format range is the specified partition of the specified device.

5) Get directory information [BUP_Dir ()]
Get directory information by specifying a file name (or all files). If you want information about all files, specify NULL for the file name.

6) Data writing [BUP_Write ()]
Specify the device and write the file. The file information required at that time is created by the user.

7) Query data [BUP_Verify ()]
Queries the written file by specifying the device.

8) Reading data [BUP_Read ()]
Specify the device and read the file.

9) Delete data [BUP_Delete ()]
Specify the device and delete the file.

10) Date data expansion [BUP_GetDate ()]
It is compressed into file information and the stored date data is expanded.

11) Date data compression [BUP_GetDate ()]
Compress to store date data in file information.


Return to previous page | Return to menu | Go to next page