Shinobi Library - Vibration Peripheral Function

pdVibMxStart

Starts vibration for vibration peripheral

FORMAT

Sint32 pdVibMxStart( port, *param )
Uint32 port
const PDS_VIBPARAM *param

PARAMETER

 port  Port number 
 parami  Address of vibration parameter structure 

RETURN

 PDD_VIBERR_OK  Normal end 
 PDD_VIBERR_NO_VIBRATOR  Vibration peripheral is not connected 
 PDD_VIBERR_BUSY  Vibration peripheral is busy 

DESCRIPTION

Starts vibration of the vibration peripheral inserted in a specified expansion socket.

The specified port numbers for the argument port are listed below.

 PDD_PORT_A1  Expansion socket 1 on port A 
 PDD_PORT_A1  Expansion socket 2 on port A 
 PDD_PORT_B1  Expansion socket 1 on port B 
 PDD_PORT_B1  Expansion socket 2 on port B 
 PDD_PORT_C1  Expansion socket 1 on port C 
 PDD_PORT_C1  Expansion socket 2 on port C 
 PDD_PORT_D1  Expansion socket 1 on port D 
 PDD_PORT_D1  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.

REFERENCE



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