MCP2200-I/NQ MICROCHIP [Microchip Technology], MCP2200-I/NQ Datasheet - Page 11

no-image

MCP2200-I/NQ

Manufacturer Part Number
MCP2200-I/NQ
Description
USB 2.0 to UART Protocol Converter with GPIO
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
Parameters:
IOMap - A byte which represents the input/
output state of the pins (each bit may be
either a 1 for input, and 0 for output.
Baudrate -
RxLED & TxLED - constant OFF, TOGGLE,
BLINKSLOW, BLINKFAST
Boolean - HWFlow control, USBCFG, Suspend
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
9600, BLINKSLOW, BLINKFAST, false, false,
false) == SUCCESS)
"
2.3.1.7
bool SimpleIOClass::fnRxLED (unsigned int
mode)
Summary:
Configures the RxLED pin function.
Description:
Sets the
Precondition:
The Vendor and Product ID must have been
specified by SimpleIOInit.
Parameters:
mode (constant): OFF, TOGGLE, BLINKSLOW,
BLINKFAST
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
Error code logged in LastError.
SUCCESS)
" + SimpleIOClass::LastError;
 2010 Microchip Technology Inc.
Example:
<code>
</code>
Example:
<code>
</code>
if (SimpleIOClass::ConfigureMCP2200(0x43,
else
if (SimpleIOClass::fnRxLED(BLINKFAST) ==
else
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
fnRxLED
2.3.1.8
bool SimpleIOClass::fnTxLED (unsigned int
mode)
Summary:
Configures the TxLED pin function.
Description:
Sets the
Precondition:
The Vendor and Product ID must have been
specified by SimpleIOInit.
Parameters:
mode (constant): OFF, TOGGLE, BLINKSLOW,
BLINKFAST
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
Error code logged in LastError.
SUCCESS)
" + SimpleIOClass::LastError;
2.3.1.9
bool SimpleIOClass::fnHardwareFlowControl
(unsigned int onOff)
Summary:
Configures the device.
Description:
Sets the
Precondition:
The Vendor and Product ID must have been
specified by SimpleIOInit.
Parameters:
IOMap - An array of configuration parameters,
one byte per IO Line
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
Example:
<code>
</code>
if (SimpleIOClass::fnTxLED(BLINKFAST) ==
else
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
fnTxLED
fnHardwareFlowControl
MCP2200
DS22228A-page 11

Related parts for MCP2200-I/NQ