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