| Electronic Components Datasheet Search |
|
MCP2200 Datasheet(PDF) 16 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP2200 Datasheet(HTML) 16 Page - Microchip Technology |
|
16 / 44 page ![]() MCP2200 DS22228B-page 16 2011 Microchip Technology Inc. EXAMPLE 2-8: 2.3.1.9 fnTxLED Function: bool SimpleIOClass::fnTxLED (unsigned int mode) EXAMPLE 2-9: 2.3.1.10 fnULoad Function: bool SimpleIOClass::fnULoad (unsigned int onOff) EXAMPLE 2-10: Summary: Configures the Tx LED mode. Tx LED configuration will be stored in NVRAM. Description: Sets the Tx LED mode to one of the possible values. Precondition: VID and PID must be previously set via a call to InitMCP2200(VID, PID). Parameters: mode (constant) : OFF, TOGGLE, BLINKSLOW, BLINKFAST Returns: This function returns True if the transmission is successful and returns False if the transmission fails. Remarks: Error code is returned in LastError. Summary: Configures the GP1 pin of the MCP2200 to show the status of the USB configuration. Description: When the GP1 is designated to show the USB configuration status, the pin will start low (during power-up or after Reset), and it will go high after the MCP2200 is successfully configured by the host. Precondition: VID and PID must be previously set via a call to InitMCP2200(VID, PID). Parameters: onOff: • ‘1’ GP1 will reflect the USB configuration status •‘0’ GP1 will not reflect the USB configuration status (can be used as GPIO) Returns: This function returns True if the transmission is successful and returns False if the transmission fails. Remarks: Error code is returned in LastError. if (SimpleIOClass::fnSuspend(1) == SUCCESS) lblStatusBar->Text = “Success”; else lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError; if (SimpleIOClass::fnTxLED (BLINKSLOW) == SUCCESS) lblStatusBar->Text = “Success”; else lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError; if (SimpleIOClass::fnULoad(1) == SUCCESS) lblStatusBar->Text = “Success”; else lblStatusBar->Text = “Invalid command ” + SimpleIOClass::LastError; |
|
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 |