Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.2 KB

xds-service.rst

File metadata and controls

58 lines (34 loc) · 1.2 KB

Xds Service

Methods

  • :cppavailableSerials()
  • :cppportFromSerial()

Detailed Description

The Xds service provides convenience functions for XDS-based debugging interfaces. It can be used, for instance, to identify connected debuggers.

The following example assumes that there is only a single XDS debugger connected and deduces it's serial port identifier.

import qst 1.0
import ti 1.0

Project {

    property string launchpadPort: {
        var serials = Xds.availableSerials();
        Qst.compare(serials.length, 1,
            "Either no or too many probe boards connected");
        return Xds.portFromSerial(serials[0]);
    }

}

Xds is a singleton type and cannot be instantiated as a QML component.

Methods