PortMapping

group PortMapping

PortMapping Class: Provides an interface for usb descriptor information of devices downstream of Acroname hub products.

struct DeviceNode_CCA

Device Node Structure - Contains information linking the downstream device to the Acroname Hub.

Public Members

unsigned int hubSerialNumber

Serial number of the Acroname hub where the device was found.

unsigned char hubPort

Port of the Acroname hub where the device was found.

unsigned short idVendor

Manufactures Vendor ID of the downstream device.

unsigned short idProduct

Manufactures Product ID of the downstream device.

unsigned char speed

The devices downstream device speed. (PORT_SPEED_CCA_t)

char productName[255]

USB string descriptor

char serialNumber[255]

USB string descriptor

char manufacturer[255]

USB string descriptor

void portMapping_getDownstreamDevices(struct Result *result, struct DeviceNode_CCA *buffer, const unsigned int bufferLength)

Gets downstream device USB information for all Acroname hubs.

::aErrNone on success

::aErrParam: Passed in values are not valid. (NULL, size etc).

::aErrMemory: No more room in the list

::aErrNotFound: No Acroname devices were found.

Parameters:
  • result – Object containing aErrNone and the requested value on success. Non-zero error code on failure. The number of devices found.

  • buffer – Pointer to the start of a list/array to be used by the function.

  • bufferLength – Size of the list/array in DeviceNode_CCA’s, not bytes.