Shinobi Library - Get Peripheral Data Function

pdGetPeripheralError

Gets controller data errors

FORMAT

Sint32 pdGetPeripheralError( port )
Uint32 port

PARAMETER

 port  Port number 

RETURN

 0  No errors 
 Negative value  Error value 

DESCRIPTION

Gets an error code related to the acquisition of controller data.

The port numbers that are specified in port are listed below.

 PDD_PORT_A0  Control port A 
 PDD_PORT_B0  Control port B 
 PDD_PORT_C0  Control port C 
 PDD_PORT_D0  Control port D 

Returned error codes are as follows.

 Error code  Content 
 PDD_ERR_OK  No error  
 PDD_ERR_RETRY  Button data cannot be gotten normally 
 PDD_ERR_GENERIC  Generic error  


EXAMPLE

Sint32 err;
err = pdGetPeripheralError(PDD_PORT_B0);

NOTE

If an error is generated, there is no recover procedure in the library. Use the appropriate process from the application.

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