Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
WFSensorConnection.h
Go to the documentation of this file.
1 //
2 // WFSensorConnection.h
3 // WFConnector
4 //
5 // Created by Michael Moore on 10/20/10.
6 // Copyright 2010 Wahoo Fitness. All rights reserved.
7 //
8 
9 #import <WFConnector/_WFSensorConnection.h>
10 #import <WFConnector/WFSensorConnectionDelegate.h>
11 #import <WFConnector/WFDeviceInformation.h>
12 
13 @class WFBTLEServiceProcessor;
14 
15 
16 #define WF_INVALID_DATA_TIME -1;
17 
18 
43 @interface WFSensorConnection : _WFSensorConnection
44 {
47  id<WFSensorConnectionDelegate> delegate;
49 
51 }
52 
53 
57 @property (nonatomic, readonly) WFSensorConnectionStatus_t connectionStatus;
58 
63 @property (nonatomic, retain) id<WFSensorConnectionDelegate> delegate;
64 
68 @property (nonatomic, readonly) NSString* deviceIDString;
69 
73 @property (nonatomic, readonly) USHORT deviceNumber;
74 
78 @property (nonatomic, readonly) NSString* deviceUUIDString;
79 
83 @property (nonatomic, readonly) BOOL didTimeout;
84 
86 @property (nonatomic, readonly) WFSensorConnectionError_t error;
87 
91 @property (nonatomic, readonly) BOOL isConnected;
92 
96 @property (nonatomic, readonly) BOOL isBTLEConnection;
97 
101 @property (nonatomic, readonly) BOOL isANTConnection;
102 
121 @property (nonatomic, readonly) BOOL isValid;
122 
130 @property (nonatomic, readonly) BOOL hasAntBridgeSupport;
131 
133 @property (nonatomic, readonly) BOOL hasError;
134 
154 @property (nonatomic, readonly) BOOL hasValidParams;
155 
162 @property (nonatomic, readonly) BOOL hasWildcardParams;
163 
167 @property (nonatomic, readonly) WFNetworkType_t networkType;
168 
172 @property (nonatomic, readonly) WFSensorType_t sensorType;
173 
177 @property (nonatomic, readonly) WFSensorSubType_t sensorSubType;
178 
179 
185 @property (nonatomic, readonly) NSTimeInterval timeSinceLastMessage;
186 
190 @property (nonatomic, readonly) UCHAR transmissionType;
191 
192 
193 
194 @property (nonatomic, readonly, retain) WFDeviceInformation* deviceInformation;
195 
199 - (void)disconnect;
200 
222 - (void)disconnect:(BOOL)bKillPeripheralConnection;
223 
234 - (WFSensorData*)getData;
235 
252 - (WFSensorData*)getRawData;
253 
260 - (BOOL)hasData;
261 
270 - (WFBTLEServiceProcessor*)serviceProcessorForSensorType:(WFSensorType_t)eSensorType;
271 
281 - (float)signalEfficiency;
282 
283 @end
This is the abstract base class for all types of ANT sensor data.
Definition: WFSensorData.h:18
WFSensorSubType_t
Describes a specific hardware implementation of a generic device profile.
Definition: hardware_connector_types.h:105
WFDeviceInformation * deviceInformation
Definition: WFSensorConnection.h:194
WFSensorConnectionStatus_t
Describes the connection state of an ANT sensor.
Definition: hardware_connector_types.h:244
This class represents a collection of general information about a device.
Definition: WFDeviceInformation.h:21
unsigned short USHORT
Definition: types.h:121
signed char BOOL
Definition: types.h:110
unsigned char UCHAR
Definition: types.h:118
Represents the connection for an ANT sensor.
Definition: WFSensorConnection.h:43
WFSensorType_t
Describes a type of hardware sensor device.
Definition: hardware_connector_types.h:52
id< WFSensorConnectionDelegate > delegate
Specifies the WFSensorConnectionDelegate instance which will handle callback methods for this WFSenso...
Definition: WFSensorConnection.h:63
WFNetworkType_t
Describes a type of hardware sensor device.
Definition: hardware_connector_types.h:146