eyeDrops  v2.3
A new approach to detecting eye blinks.
Classes | Typedefs | Enumerations
BLEDeviceManager.h File Reference

Header file containing the Bluetooth low energy device manager class. More...

#import <CoreBluetooth/CoreBluetooth.h>
#import <Foundation/Foundation.h>
#import "AppDelegate.h"
#import "UserProfile.h"
#import "Protocol.h"
#import "Settings.h"

Go to the source code of this file.

Classes

class  BLEDeviceManager
 The Bluetooth low energy device manager. More...
 

Typedefs

typedef enum CON_STATE CON_STATE
 
typedef enum USER_NOTIFICATION USER_NOTIFICATION
 

Enumerations

enum  CON_STATE : NSInteger {
  CON_STATE_BOOT_UP,
  CON_STATE_SETTING_PROFILE,
  CON_STATE_NORMAL_MODE,
  CON_STATE_BLURRING,
  CON_STATE_CALIBRATION_INCOMING_DATA,
  CON_STATE_CALIBRATION
}
 This enumeration contains the connection state the device manger is currently in. More...
 
enum  USER_NOTIFICATION : NSInteger {
  USER_NOTIFICATION_DEVICE_FOUND,
  USER_NOTIFICATION_DEVICE_CONNECTED,
  USER_NOTIFICATION_DEVICE_DISCONNECTED,
  USER_NOTIFICATION_PROFILE_SET,
  USER_NOTIFICATION_CALIBRATION_DONE,
  USER_NOTIFICATION_BLE_NOT_SUPPORTED
}
 This enumeration contains the different user notification identifiers. More...
 

Detailed Description

Header file containing the Bluetooth low energy device manager class.

Author
Benjamin Thiemann
Date
2017/01/21

Enumeration Type Documentation

◆ CON_STATE

enum CON_STATE : NSInteger

This enumeration contains the connection state the device manger is currently in.

This enumeration contains the different states the calibration window can be in.

Enumerator
CON_STATE_BOOT_UP 

Boot up. Device freshly connected.

CON_STATE_SETTING_PROFILE 

Currently sending the profile to the RFDuino.

CON_STATE_NORMAL_MODE 

Normal mode. Waiting for user to blink.

CON_STATE_BLURRING 

Screen is blurred, too long without blinking.

CON_STATE_CALIBRATION_INCOMING_DATA 

Calibration mode. Data is coming in.

CON_STATE_CALIBRATION 

Calibration mode. Data has been sent. Visual calibration is in progress.

◆ USER_NOTIFICATION

enum USER_NOTIFICATION : NSInteger

This enumeration contains the different user notification identifiers.

Enumerator
USER_NOTIFICATION_DEVICE_FOUND 

Devices found.

USER_NOTIFICATION_DEVICE_CONNECTED 

Device connected.

USER_NOTIFICATION_DEVICE_DISCONNECTED 

Device disconnected.

USER_NOTIFICATION_PROFILE_SET 

Profile successfully sent to RFDuino.

USER_NOTIFICATION_CALIBRATION_DONE 

Calibration process completed.

USER_NOTIFICATION_BLE_NOT_SUPPORTED 

Bluetooth Low Energy not supported.