/* Determines the FsType_t of a file handle. 
Determines the FsType_t of the specified file handle and returns it to the caller. */
FsType_t FileSystemType(int32_t handleNumber)
/* Determines the FsType_t of a file handle. 
Determines the FsType_t of the specified file handle and returns it to the caller. */
FsType_t FileSystemType(int32_t handleNumber)
{
    if (handleNumber >= FAT_HANDLE_MIN && handleNumber <= FAT_HANDLE_MAX) {
        return FS_TYPE_FAT;
    }
    else if (handleNumber >= RESOURCE_HANDLE_MIN && handleNumber <= RESOURCE_HANDLE_MAX) {
        return FS_TYPE_RESOURCE;
    }
    else {
        return FS_TYPE_MAX;
    }
}