port | Port number |
0 | No errors | |
Negative value | Error value |
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 |
Sint32 err; err = pdGetPeripheralError(PDD_PORT_B0);