N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

LeoInquiry

Format
#include <leo.h>

s32 LeoInquiry (LEOVersion *version);

typedef struct
{
     u8 drive;
     u8 driver;
     u8 deviceType;
     u8 ndevices;
}   LEOVersion;
What This Function Does
It checks the version of the N64 Disk Drive hardware and the software. The hardware (drive) version is stored in version->drive while the software version is stored in version->driver. The version->deviceType element is 0 fixed for device type, and ndevices is 1 fixed for the connected device number. For specifics about these values, see the "Library Functions" section of the N64 Disk Drive Programmer's Guide.

One of the following is returned. A check is usually not necessary.
  • -1 means the Leo Manager is not running,
  • LEO_ERROR_GOOD means there was a normal termination.
See Also
Leo
LeoCreateLeoManager
LeoReadWrite
LeoSeek
LeoSpdlMotor
LeoInquiry
LeoTestUnitReady
LeoRezero
LeoClearQueue
LeoReadDiskID
LeoReadCapacity
LeoByteToLBA
LeoLBAToByte



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.

Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998