7.1 GPIO Interface Commands and Their Responses
The MCP2222 supports GPIO control through the vendor class, providing commands that allow the USB host to configure and control the device’s I/O pins.
The following endpoints are used for GPIO control:
- Endpoint 0x04 (OUT) → Used to send GPIO commands
- Endpoint 0x84 (IN) → Used to read GPIO command
responses and input pin states
Table 7-1. GPIO Interface Commands Command Effect IO_SetConfigurationConfigures the selected I/O pin GPIO_WriteSets the selected GPIO output pin to the selected logic state GPIO_ReadReads and returns the logic state of the selected GPIO pin IO_GetConfigurationReads and returns the configuration of the selected I/O pin
