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
|
osMotorInitSyntax#include <ultra64.h> /* os.h */ s32 osMotorInit(OSMesgQueue *mq, OSPfs *pfs, int controller_no);
Explanation controller_no specifies the controller port number (0 - 3). The Rumble Pak inserted in the controller connected to the controller port specified by controller_no is initialized. The OSPfs structure pfs is used to control the Rumble Pak. pfs is initialized by osMotorInit. mq is a message queue initialized by being associated with OS_EVENT_SI. For information how the association is formed, see the osSetEventMesg function reference. Because mq is used by the function as an internal message queue, it is not necessary for the application to use mq for purposes such as queuing function-termination messages. The return values are error codes. With normal termination, 0 is returned. The other error codes returned are as follows. PFS_ERR_NOPACK
PFS_ERR_DEVICE
PFS_ERR_CONTRFAIL
See also
Revision History
|