SerialPortController Class
Package: GHIElectronics.Endpoint.Core
Namespace: GHIElectronics.Endpoint.Core
Chip-neutral entry point for UART / serial-port setup. Call once before using System.IO.Ports.SerialPort: it muxes the TX/RX pins (plus RTS/CTS when flow control is on) and makes /dev/ttyS* usable.
class SerialPortController {};
Methods
Initialize(string portName, bool enableHardwareFlowControl)
static void Initialize(const std::string& portName, bool enableHardwareFlowControl);
Muxes the port's pins. When enableHardwareFlowControl is set, RTS and (where bonded out) CTS are muxed too.
UnInitialize(string portName)
static void UnInitialize(const std::string& portName);
Releases the port's pins back to free GPIO.