Product Comparison: USB I2C | USB SPI | USB GPIO

USB-I/O Interface Adapter GPIO-24. Programmer's Reference Manual.


2.1.3. GPIO_GetDeviceCount()

GPIO_RESULT GPIO_GetDeviceCount(
      int* pDevNumber
);

The GPIO_GetDeviceCount() function retrieves the number of GPIO-24 adapters that are currently connected to the computer.

Parameters:

pDevNumber

Pointer to an integer variable to be filled with the number of detected GPIO-24 adapters.

Return values:

GPIO_S_SUCCESS

Function call succeeded.

GPIO_E_NOT_INITIALIZED

Library has not been initialized.