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
|
osGbpakInitSyntax#include <ultra64.h>
Explanation
The OSPfs structure pfs is used for 64GB Pak control. osGbpakInit() initializes pfs. There is thus no need to initialize the pfs structure on the application side. siMessageQ is the initialized message queue connected to OS_EVENT_SI. Please refer to osSetEventMesg,(3P) for information on how to make this connection. Channel specifies the channel number of the controller. Before osGbpakInit() is called, osContInit(3P) must be called. This is necessary for internal OS initialization. The osGbpakInit() function performs an internal 0.2 second wait process because it takes a maximum of 0.2 second for the N64 Game Boy Pak to stabilize after the power supply is turned ON. This wait process involves a 0.2s count using the CPU timer (osSetTimer() function). Thus, before calling this function, you need to call the osCreateViManager() function. Return value is an error code. If the function terminates normally, a value of 0 is returned. If an error occurs, one of the following error codes is returned: PFS_ERR_NOPACK
PFS_ERR_DEVICE PFS_ERR_CONTRFAIL See Also
|