Shinobi Library - Vibration Peripheral Function

pdVibSetStopTime

Sets vibration time for vibration peripheral

FORMAT

Sint32 pdVibSetStopTime( port, *unit, *time, num )
Uint32 port
Uint8 *unit
Uint8 *time
Uint32 num

PARAMETER

 port  Port number 
 unit  Array in which the unit number is stored 
 time  Array in which automatic stop time is stored 
 num  Units 

RETURN

 PDD_VIBERR_OK  Normal end 
 PDD_VIBERR_NO_VIBRATOR  Not connected 
 PDD_VIBERR_BUSY  Busy status 

DESCRIPTION

Sets the automatic stop time of vibration for a vibration peripheral.

The following values can be set for the argument port.

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


EXAMPLE

Uint8 units[] = {1, 3, 5};
Uint8 times[] = {10, 20, 30};
if (pdVibSetStopTime(PDD_PORT_A2, units, times, 3) == PDD_VIBERR_OK) {
  /* Success */
}

NOTE

These functions are still in the evaluation version. In the future, the specs may be changed.

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