| Electronic Components Datasheet Search |
|
MCP2200 Datasheet(PDF) 17 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP2200 Datasheet(HTML) 17 Page - Microchip Technology |
|
17 / 44 page ![]() 2011 Microchip Technology Inc. DS22228B-page 17 MCP2200 2.3.1.11 GetDeviceInfo Function: String^ SimpleIOClass::GetDeviceInfo (unsigned int uiDeviceNo) EXAMPLE 2-11: 2.3.1.12 GetNoOfDevices Function: unsigned int SimpleIOClass::GetNoOfDevices(void) EXAMPLE 2-12: 2.3.1.13 GetSelectedDevice Function: int SimpleIOClass::GetSelectedDevice(void) Summary: Returns the path name for one of the connected devices. Description: The function will return the path name for the given device ID. Precondition: At least one call to the InitMCP2200() is required in order to initiate a DLL search for the compatible devices. VID and PID must be previously set via a call to InitMCP2200(VID, PID). Parameters: uiDeviceNo: The device ID for which the path information is needed. Can have a value between 0 and the number of devices minus 1. Returns: This function returns a string containing the path name of the given device id. • In the case the given ID is out of range, the function will return the “Device Index Error” string. • In the case the device for which the path name is required is not connected anymore, the return string will be “Device Not Connected”. Remarks: None. Summary: The function returns the number of available devices present in the system. Description: The function returns the number of HID devices (with the given VID/PID) connected to the system. Precondition: At least one call to the InitMCP2200() is required in order to initiate a DLL search for the compatible devices. Also, in order to know the actual number of devices connected to the system, call the SimpleIOClass::IsConnected() function. VID and PID must be previously set via a call to InitMCP2200(VID, PID) . Parameters: None. Returns: This function returns the number of HID devices with the given VID/PID (as parameters of SimpleIOClass::InitMCP2200() function). Remarks: Call the SimpleIOClass::IsConnected() prior to the call of this function in order to have the most recent number of devices that are present in the system. Summary: Returns the ID of the selected device Description: The function returns the ID of the current selected device. Precondition: At least one call to the InitMCP2200() is required in order to initiate a DLL search for the compatible devices. VID and PID must be previously set via a call to InitMCP2200(VID, PID). Parameters: None. Returns: This function returns the ID of the current selected device. Its value can range from 0 to the number of devices minus 1. Remarks: None. lblStatusBar->Text = SimpleIOClass::GetDeviceInfo(0); SimpleIOClass::IsConnected(); //call this function to refresh the number of //the devices present in the system lblStatusBar->Text = SimpleIOClass::GetNoOfDevices(); |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |