#import <Foundation/Foundation.h>
#import <CoreMotion/CoreMotion.h>
#import <CoreLocation/CoreLocation.h>
#include "sensors_def.h"
@interface SensorAccess : NSObject <CLLocationManagerDelegate>
{
SensorDataCallback* sensorCallbak;
int sensorType;
int gpsActive;
int sensorActive;
}
@property (nonatomic, retain) CMMotionManager *motionManager;
@property (nonatomic, retain) NSOperationQueue *queue;
@property (nonatomic, retain) CLLocationManager *locMngr;
- (int) setSensorType :(int) type;
- (int) getSensorType;
- (int) setSensorCallback:(SensorDataCallback*)callback ;
- (int) startSensor;
- (int) stopSensor;
- (int) isSensorStarted;
@end