
------------------------------------------------------------------------------
3. Unmount memory card. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
aux_file_unmount
[Syntax]
#include <auxfile.h>
int aux_file_unmount( unsigned char drive ) ;
[Arguments]
drive Drive name. ( ='B' )
[Return]
Returns 0 if successfully unmounted the memory card.
If failed, returns non-0, and store one of the following values in
the global variable "errno".
Symbol Meaning
---------------+-----------------------------------------------------
ENOTMOUNT Failed to unmount.
ENOTINSERT No memory card inserted.
EBATVOLDEC Battery voltage is low.
ENOTSRAM Not supported card. (Not S-RAM card.)
EDRIVENAME Invalid drive name.
EAUTHREJ The other software already uses the memory card slot.
[Description]
Unmounts the memory card.
The drive name "drive" is always "B:".
Call this function to finish accessing the memory card using input/
output functions (such as "fopen", "fread", "remove", "fclose", etc.).
[Example]
See example of "Mount memory card (aux_file_mount)".