Source code
Revision control
Copy as Markdown
Other Tools
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* vim: set sw=2 ts=8 et tw=80 ft=c: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
include "mozilla/dom/SerialPortIPCTypes.h";
using nsString from "nsString.h";
using mozilla::dom::ParityType from "mozilla/dom/SerialPortBinding.h";
using mozilla::dom::FlowControlType from "mozilla/dom/SerialPortBinding.h";
namespace mozilla {
namespace dom {
struct IPCSerialPortInfo {
nsString id;
nsString path;
nsString friendlyName;
uint16_t? usbVendorId;
uint16_t? usbProductId;
nsString? bluetoothServiceClassId;
};
struct IPCSerialOptions {
uint32_t baudRate;
uint8_t dataBits;
uint8_t stopBits;
ParityType parity;
uint32_t bufferSize;
FlowControlType flowControl;
};
struct IPCSerialOutputSignals {
bool? dataTerminalReady;
bool? requestToSend;
bool? breakSignal;
};
struct IPCSerialInputSignals {
bool dataCarrierDetect;
bool clearToSend;
bool ringIndicator;
bool dataSetReady;
};
} // namespace dom
} // namespace mozilla