Virtual Serial Port Tools - Advanced serial port configurations for your custom ports usage scenario
Download Virtual Serial Port Tools Hide this button

IBridgePortDevice Interface

This interface is implemented by a local bridge device.

Declaration

interface IBridgePortDevice extends ${IDevice} {
    // Properties
    ${bridgePort}: number;
    ${emulateBaudrate}: boolean;
    ${emulateTxOverflow}: boolean;
    ${crossoverProbability}: number;
    ${DTR}: ${DestinationPins};
    ${DSR}: ${DestinationPins};
    ${DCD}: ${DestinationPins};
    ${RTS}: ${DestinationPins};
    ${CTS}: ${DestinationPins};
    ${RI}: ${DestinationPins};

    // Methods
    ${restoreDefaultPins}(): void;
}
public interface IBridgePortDevice : ${IDevice}
{
    // Properties
    uint ${bridgePort} { get; set; }
    bool ${emulateBaudrate} { get; set; }
    bool ${emulateTxOverflow} { get; set; }
    double ${crossoverProbability} { get; set; }
    ${DestinationPins} ${DTR} { get; set; }
    ${DestinationPins} ${DSR} { get; set; }
    ${DestinationPins} ${DCD} { get; set; }
    ${DestinationPins} ${RTS} { get; set; }
    ${DestinationPins} ${CTS} { get; set; }
    ${DestinationPins} ${RI} { get; set; }

    // Methods
    void ${restoreDefaultPins}();
}
struct IBridgePortDevice : IDevice
{
    // Properties
    unsigned ${bridgePort};  // get set 
    VARIANT_BOOL ${emulateBaudrate};  // get set 
    VARIANT_BOOL ${emulateTxOverflow};  // get set 
    double ${crossoverProbability};  // get set 
    ${DestinationPins} ${DTR};  // get set 
    ${DestinationPins} ${DSR};  // get set 
    ${DestinationPins} ${DCD};  // get set 
    ${DestinationPins} ${RTS};  // get set 
    ${DestinationPins} ${CTS};  // get set 
    ${DestinationPins} ${RI};  // get set 

    // Methods
    HRESULT ${restoreDefaultPins}();
};

IBridgePortDevice Properties

bridgePort

bridgePort: number;
uint bridgePort { get; set; }
unsigned bridgePort;  // get set 

Port number of other side of the local bridge.

emulateBaudrate

emulateBaudrate: boolean;
bool emulateBaudrate { get; set; }
VARIANT_BOOL emulateBaudrate;  // get set 

Turn emulation of baud rate on or off.

By default, Virtual Serial Port Tools does not emulate baud rate.

emulateTxOverflow

emulateTxOverflow: boolean;
bool emulateTxOverflow { get; set; }
VARIANT_BOOL emulateTxOverflow;  // get set 

Turn emulation of output buffer overflow on or off.

By default, Virtual Serial Port Tools does not emulate output buffer overflow.

crossoverProbability

crossoverProbability: number;
double crossoverProbability { get; set; }
double crossoverProbability;  // get set 

Single bit crossover probability. May be a floating-point number between 0 and 0.5 (inclusive). Value 0 disables line noise emulation.

By default, Virtual Serial Port Tools does not emulate line noise. Change the value of this property to enable line noise emulation.

DTR

DTR: ${DestinationPins};
${DestinationPins} DTR { get; set; }
${DestinationPins} DTR;  // get set 

Allows configuration of custom pin-out for a local DTR line.

DSR

DSR: ${DestinationPins};
${DestinationPins} DSR { get; set; }
${DestinationPins} DSR;  // get set 

Allows configuration of custom pin-out for a local DSR line.

DCD

DCD: ${DestinationPins};
${DestinationPins} DCD { get; set; }
${DestinationPins} DCD;  // get set 

Allows configuration of custom pin-out for a local DCD line.

RTS

RTS: ${DestinationPins};
${DestinationPins} RTS { get; set; }
${DestinationPins} RTS;  // get set 

Allows configuration of custom pin-out for a local RTS line.

CTS

CTS: ${DestinationPins};
${DestinationPins} CTS { get; set; }
${DestinationPins} CTS;  // get set 

Allows configuration of custom pin-out for a local CTS line.

RI

RI: ${DestinationPins};
${DestinationPins} RI { get; set; }
${DestinationPins} RI;  // get set 

Allows configuration of custom pin-out for a local RI line.

IBridgePortDevice Methods

restoreDefaultPins

restoreDefaultPins(): void;
void restoreDefaultPins();
HRESULT restoreDefaultPins();

This method restores default pin-out assignment.