Shinobi Library - Vibrating Peripheral Function

pdVibEnumerateUnit

Gets vibration peripheral unit information

FORMAT

Sint32 pdVibEnumerateUnit( port, func, param )
Sint32 port
PD_VIBENUMUNITCALLBACK func
Uint32 param

PARAMETER

 port  Port number 
 func  Callback function address 
 param  Callback function parameter 

RETURN

 PDD_VIBERR_OK  Normal end 
 PDD_VIBERR_NO_VIBRATOR  Vibration peripheral is not connected 

DESCRIPTION

Gets all information of units that have vibration peripherals.

The following settings can be set for the argument port.

 PDD_PORT_A1  Expansion socket 1 for port A 
 PDD_PORT_A2  Expansion socket 2 for port A 
 PDD_PORT_B1  Expansion socket 1 for port B 
 PDD_PORT_B2  Expansion socket 2 for port B 
 PDD_PORT_C1  Expansion socket 1 for port C 
 PDD_PORT_C2  Expansion socket 2 for port C 
 PDD_PORT_D1  Expansion socket 1 for port D 
 PDD_PORT_D2  Expansion socket 2 for port D 


EXAMPLE

Sint32 enumfunc(Uint32 unit, Sint32 stat, const PDS_VIBUNITINFO* info, Uint32 param)
{
  return PDD_VIBRET_OK;
}
	:
if (pdVibEnumerateUnit(PDD_PORT_A2, enumfunc, 0) == PDD_VIBERR_OK) {
  /* Success */
}

NOTE

These functions are still in the evaluation version. Future specs may be changed.

REFERENCE

pdVibGetInfo()


pdVibEnumerateUnit
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999