##### Shinobi Library - Get Peripheral Data Function

# pdGetPeripheralInfo

Gets data that is inherent to a peripheral

### FORMAT

`

  const PDS_PERIPHERALINFO *pdGetPeripheralInfo( port )
  Uint32 port

`

### PARAMETER

  `port` | Port number

### RETURN

  None

### DESCRIPTION

  Gets data that is inherent to a peripheral.

  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

### EXAMPLE

      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);

### NOTE

  Because these members are added to the PDS_PERIPHERAL structure, even if this function is not used, the same operation can be done using the `pdGetPeripheral()` function.

### REFERENCE

  `pdGetPeripheral()
  `

pdGetPeripheralInfo

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999