port | Port number |
parami | Address of vibration parameter structure |
PDD_VIBERR_OK | Normal end | |
PDD_VIBERR_NO_VIBRATOR | Vibration peripheral is not connected | |
PDD_VIBERR_BUSY | Vibration peripheral is busy |
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 |
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, ¶m) == PDD_VIBERR_OK) { /* Success */ }