-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathAMSerialPort_Deprecated.h
79 lines (55 loc) · 1.69 KB
/
AMSerialPort_Deprecated.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// AMSerialPort_Deprecated.h
// AMSerialTest
//
// Created by Andreas on 26.07.06.
// Copyright 2006 Andreas Mayer. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "AMSerialPort.h"
@interface AMSerialPort (Deprecated)
- (id)init:(NSString *)path withName:(NSString *)name;
// replaced by -init:withName:type:
- (NSDictionary *)getOptions;
// renamed to -options
- (long)getSpeed;
// renamed to -speed
- (int)getDataBits;
// renamed to -dataBits
- (BOOL)testParity; // NO for "no parity"
- (BOOL)testParityOdd; // meaningful only if TestParity == YES
- (void)setParityNone;
- (void)setParityEven;
- (void)setParityOdd;
// replaced by -parity and -setParity:
- (int)getStopBits;
// renamed to -stopBits;
- (void)setStopBits2:(BOOL)two; // YES for 2 stop bits, NO for 1 stop bit
// replaced by -setStopBits:
- (BOOL)testEchoEnabled;
// renamed to -echoEnabled
- (BOOL)testRTSInputFlowControl;
// renamed to -RTSInputFlowControl
- (BOOL)testDTRInputFlowControl;
// renamed to -DTRInputFlowControl
- (BOOL)testCTSOutputFlowControl;
// renamed to -CTSOutputFlowControl
- (BOOL)testDSROutputFlowControl;
// renamed to -DSROutputFlowControl
- (BOOL)testCAROutputFlowControl;
// renamed to -CAROutputFlowControl
- (BOOL)testHangupOnClose;
// renamed to -hangupOnClose
- (BOOL)getLocal;
// renamed to -localMode
- (void)setLocal:(BOOL)local;
// renamed to -setLocalMode:
- (int)checkRead;
// renamed to -bytesAvailable
- (NSString *)readString;
// replaced by -readStringUsingEncoding:error:
- (NSString *)readStringOfLength:(unsigned int)length;
// replaced by -readBytes:usingEncoding:error:
- (int)writeString:(NSString *)string;
// replaced by -writeString:usingEncoding:error:
@end