#include <USB_CTR_15_Family.hpp>
Public Member Functions | |
virtual std::ostream & | print (std::ostream &out) |
CounterSubsystem & | ctr () |
Static Public Member Functions | |
static StringArray | getSupportedProductNames () |
static IntArray | getSupportedProductIDs () |
static bool | isSupportedProductID (int productID) |
Protected Member Functions | |
USB_CTR_15_Family (int productID, int deviceIndex) | |
virtual | ~USB_CTR_15_Family () |
Protected Attributes | |
CounterSubsystem | counterSubsystem |
Friends | |
class | USBDeviceManager |
USBDeviceArray devices = deviceManager.getDeviceByProductID( USB_CTR_15 ); if( devices.size() > 0 ) USB_CTR_15_Family &device = *( USB_CTR_15_Family * ) devices.at( 0 );
AIOUSB::USB_CTR_15_Family::USB_CTR_15_Family | ( | int | productID, | |
int | deviceIndex | |||
) | [protected] |
AIOUSB::USB_CTR_15_Family::~USB_CTR_15_Family | ( | ) | [protected, virtual] |
CounterSubsystem& AIOUSB::USB_CTR_15_Family::ctr | ( | ) | [inline] |
Gets a reference to the counter/timer subsystem of this device.
IntArray AIOUSB::USB_CTR_15_Family::getSupportedProductIDs | ( | ) | [static] |
Gets an array of all the product IDs supported by this USB device family.
StringArray AIOUSB::USB_CTR_15_Family::getSupportedProductNames | ( | ) | [static] |
Gets an array of all the product names supported by this USB device family.
Although this method is static, an instance of USBDeviceManager must be created and be "open" for use before this method can be used. This stipulation is imposed because the underlying library must be initialized in order for product name/ID lookups to succeed, and that initialization occurs only when an instance of USBDeviceManager is created and its USBDeviceManager::open() method is called.
bool AIOUSB::USB_CTR_15_Family::isSupportedProductID | ( | int | productID | ) | [static] |
Tells if a given product ID is supported by this USB device family.
productID | the product ID to check. |
ostream & AIOUSB::USB_CTR_15_Family::print | ( | std::ostream & | out | ) | [virtual] |
Prints the properties of this device and all of its subsystems. Mainly useful for diagnostic purposes.
out | the print stream where properties will be printed. |
Reimplemented from AIOUSB::USBDevice.
friend class USBDeviceManager [friend] |
Reimplemented from AIOUSB::USBDevice.