port | Port number |
Port numbers specified in port are as follows.
PDD_PORT_A0 | Control port A peripheral device |
PDD_PORT_A1 | Control port A expansion socket 1 |
PDD_PORT_A2 | Control port A expansion socket 2 |
PDD_PORT_B0 | Control port B peripheral device |
PDD_PORT_B1 | Control port B expansion socket 1 |
PDD_PORT_B2 | Control port B expansion socket 2 |
PDD_PORT_C0 | Control port C peripheral device |
PDD_PORT_C1 | Control port C expansion socket 1 |
PDD_PORT_C2 | Control port C expansion socket 2 |
PDD_PORT_D0 | Control port D peripheral device |
PDD_PORT_D1 | Control port D expansion socket 1 |
PDD_PORT_D2 | Control port D expansion socket 2 |
const PDS_PERIPHERALINFO *info; info = pdGetPeripheralInfo(PDD_PORT_A1); if (info->type & PDD_DEVTYPE_LCD) { /* This peripheral has an LCD */ : } if (info->area_code & PDD_DEVAREA_USA) { /* This peripheral is intended for North America */ : } /* Display the product name and license */ njPrintC(NJM_LOCATION(0, 0), info->product_name); njPrintC(NJM_LOCATION(0, 1), info->license);