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

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
MCP2200
Example:
if
(SimpleIOClass::ConfigureMCP2200(OutputPacket
Buffer) == SUCCESS)
lblStatusBar->Text = "Success";
" + SimpleIOClass::LastError;
2.3.1.10
bool SimpleIOClass::fnUSBCFG (unsigned int
onOff)
Summary:
Configures the USBCFG pin function.
Precondition:
The Vendor and Product ID must have been
specified by SimpleIOInit.
Parameters:
onOff (constant): ON or OFF.
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
Example:
if
(SimpleIOClass::ConfigureMCP2200(OutputPacket
Buffer) == SUCCESS)
" + SimpleIOClass::LastError;
Remarks:
Error code is returned in LastError
2.3.1.11
bool SimpleIOClass::fnSuspend (unsigned int
onOff)
Summary:
Configures the SSPND function
Precondition:
The Vendor and Product ID must have been
specified by SimpleIOInit.
Parameters:
onOff (constant): ON or OFF.
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
DS22228A-page 12
<code>
</code>
<code>
</code>
else
else
lblStatusBar->Text = "Invalid command
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
fnUSBCFG
fnSuspend
Example:
(SimpleIOClass::ConfigureMCP2200(OutputPacket
Buffer) == SUCCESS)
" + SimpleIOClass::LastError;
Remarks:
Error code is returned in LastError
2.3.1.12
bool SimpleIOClass::fnSetBaudRate (unsigned
long BaudRateParam)
Summary:
Configures the device.
Precondition:
specified by SimpleIOInit.
Parameters:
parameters, one byte per IO Line
Returns:
Function returns true if the transmission is
successful, returns False if there the
transmission fails.
Example:
(SimpleIOClass::ConfigureMCP2200(OutputPacket
Buffer) == SUCCESS)
" + SimpleIOClass::LastError;
2.3.1.13
bool SimpleIOClass::ConfigureIO (unsigned
char IOMap)
Summary:
Configures the IO pins for Digital Input,
Digital Output
Description:
IO Pins can be configured as Digital Input,
Digital Output
<code>
</code>
<code>
</code>
Remarks:
if
else
if
else
The Vendor and Product ID must have been
IOMap - An array of configuration
Error code is returned in LastError
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
lblStatusBar->Text = "Success";
lblStatusBar->Text = "Invalid command
fnSetBaudRate
ConfigureIO
 2010 Microchip Technology Inc.

Related parts for MCP2200-I/NQ