Download CodeVisionAVR User Manual

Transcript
CodeVisionAVR
FRESULT f_chdrive(unsigned char drv)
changes the current logical drive.The initial logical drive is 0.
Note: After f_chdrive is called, all subsequent file/directory access function operations will be
performed by default on the new logical drive, if no other drive is specified when calling these
functions.
Parameter:
drv specifies the logical drive number (0...9) to be set as current drive.
Return values:
• FR_OK - success.
• FR_INVALID_DRIVE - the drive number is invalid.
© 1998-2010 HP InfoTech S.R.L.
Page 260