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

   

osMotorInit

Format
#include <ultra64.h>
s32 osMotorInit(OSMesgQueue *siMessageQ, OSPfs *pfs, int channel);


Arguments
  • pfs is the pointer to the OSPfs structure to be used to control the Rumble Pak. This function (osMotorInit) initializes this OSPfs structure
  • channel specifies the Controller channel number
  • siMessageQ is the pointer to an initialization message queue associated with an OS_EVENT_SI event. To learn how to establish this association, see osSetEventMesg
What This Function Does
It initializes the Rumble Pak motor. When the Rumble Pak is used, this must be the first function called. However, because of synchronous initialization at a low level of the OS, you must call osContInit before calling this function (osMotorInit).

If an error occurs, the error codes returned by this function are:
  • PFS_ERR_NOPACK - Nothing is inserted in the specified Controller.
  • PFS_ERR_DEVICE - A device other than the Rumble Pak has been inserted into the Controller.
  • PFS_ERR_CONTRFAIL - A failure in the transmission of data to the Controller is indicated. Either the Controller is improperly connected, or the Rumble Pak or Controller connector is damaged.
See Also
osContInit
osMotorStart
osMotorStop



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