Files
swiftrplidar/Sources/SwiftRPLidar/LidarSerial.swift
2020-07-09 20:23:59 +09:30

11 lines
257 B
Swift

import Foundation
public protocol LidarSerial {
var dtr: Bool {get set};
var inWaiting: Int {get};
func closePort();
func openPort() throws;
func readData(ofLength: Int) throws -> Data;
func writeData(_ data: Data) throws -> Int;
}