File_SetPartition()

… visits
Parent Previous Next

Syntax

File_SetPartition(bPartNum As Byte), Byte

Parameters

Parameter

Description

bPartNum

partition number to set as working partition (1-based)

Return value

cErrOK

Overview

            cErrInvalidFormat

cErrInvalidPath (bad number)

Switches the currently mounted (working) partition

Switches the currently mounted (working) partition. Partition number is 1-based, matching File_ListPartitions()'s enumeration order. 


Call File_ListPartitions() first. 

Note: Doesn't re-run the SD card power-up handshake, only the boot-sector parse, so it's cheap to call repeatedly.
Partition 1 is always set as default working partition at File_Init() time. 

Example

File_ListPartitions()

File_SetPartition(2)

Created with the Personal Edition of HelpNDoc: Easily share your documentation with the world through a beautiful website