Shinobi Library - Vibration Peripheral Function

pdVibStart

Starts vibration in vibration peripheral

FORMAT

Sint32 pdVibStart( port, *param, num )
Uint32 port
const PDS_VIBPARAM *param
Uint32 num

PARAMETER

 port  Port number 
 param  Address of vibration parameter structure array 
 num  Units 

RETURN

 PDD_VIBERR_OK  Normal end 
 PDD_VIBERR_NO_VIBRATOR  Not connected 
 PDD_VIBERR_BUSY  Busy status 

DESCRIPTION

Starts vibration in the 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

PDS_VIBPARAM param;
param.unit = 1;
param.flag = PDD_VIB_FLAG_CONTINUOUS;
param.power = -7;
param.freq = 15;
param.inc = 0;
if (pdVibMxStart(PDD_PORT_A2, &param) == PDD_VIBERR_OK) {
  /* Success */
}

NOTE

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

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