|
|
| HardwareSetupFTDI ()=default |
| | Constructor. Initializes FTDI hardware interfaces.
|
| | HardwareSetupFTDI (int vendor_id, int product_id, const char *description=nullptr, const char *serial=nullptr) |
| | Constructor with custom device parameters.
|
|
| ~HardwareSetupFTDI () |
| | Destructor. Cleans up FTDI hardware interfaces.
|
| bool | begin (bool asDefault=true) |
| | Initializes hardware pointers to FTDI interfaces.
|
|
void | end () |
| | Resets hardware pointers to nullptr.
|
| HardwareGPIO_FTDI * | getGPIO () |
| HardwareI2C_FTDI * | getI2C () |
| HardwareSPI_FTDI * | getSPI () |
| void | setDeviceParams (int vendor_id, int product_id, const char *description=nullptr, const char *serial=nullptr) |
| | Set custom device parameters for targeting specific FTDI device.
|
Sets up hardware interfaces for FTDI FT2232HL (GPIO, I2C, SPI).
This class provides hardware abstraction for the FTDI FT2232HL dual-channel USB-to-UART/SPI/I2C converter. The FT2232HL has two independent channels:
- Channel A: Can be configured for UART, SPI, I2C, or GPIO
- Channel B: Can be configured for UART, SPI, I2C, or GPIO
This implementation uses libftdi1 to communicate with the FT2232HL device.