CustomiOSApi  1.06
 All Classes Functions Enumerations Enumerator Pages
CommPortBT.h
1 //
2 // CommPortBT.h
3 // CustomiOSApi
4 //
5 // Created by CUSTOM on 03/07/13.
6 // Copyright (c) 2013 CUSTOM. All rights reserved.
7 //
8 
9 #import "CommPort.h"
10 
11 //Hide it in the documentation
12 // @cond PRIVATE
13 @interface CommPortBT : CommPort
14 {
15 @public
16 
17 
18 
19 @protected
20 
21 @private
22 
23  EAAccessory* btaccessory;
24  EASession* btsession;
25  NSString* btprotocolString;
26 
27  NSInputStream *iStream;
28  NSOutputStream *oStream;
29 
30  Boolean isDongle;
31 }
32 
33 //***********************************************
34 // PRIVATE FUNCTIONS
35 //***********************************************
36 +(NSArray *) EnumBTDevices:(NSError**)error;
37 - (int) BluetoothConnect:(EAAccessory *)btdevice :(NSError**)error;
38 
39 - (void) BTConnect:(EAAccessory *)btdevice :(NSError**)error;
40 - (void) BTDisconnect:(NSError**)error;
41 - (void) BTWrite:(NSData *)data :(NSError**)error;
42 - (void) BTWrite:(const uint8_t *)buf :(int)length :(NSError**)error;
43 - (NSData *) BTRead:(NSInteger)rxBufferSize :(NSError**)error;
44 
45 @end