Fix LidarSerial Protocol

This commit is contained in:
Piv
2020-07-09 20:15:45 +09:30
parent 5d412b4832
commit 0f38a1b20f
2 changed files with 4 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
import Foundation
protocol LidarSerial {
var dtr: Bool {get set};
var inWaiting: Int {get};
func closePort() -> Void;
func openPort() -> Void;
readData(ofLength: Int) throws -> Void;
writeData(_ data: Data) throws -> Void;
func readData(ofLength: Int) throws -> Data;
func writeData(_ data: Data) throws -> Void;
}