You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.9 KiB

//
// ECellBLEEnum.h
// ECellBluetooth
//
// Created by lemo. on 2019/5/15.
// Copyright © 2019 chentingfeng. All rights reserved.
//
#ifndef Enum_h
#define Enum_h
/**
*
* Bluetooth management status enumeration
*/
typedef NS_ENUM(NSInteger, ECell_BLE_MANAGER_STATE) {
/**
*
* Bluetooth off
*/
ECell_BLE_MANAGER_STATE_POWEREDOFF = 1,
/**
*
* Bluetooth open
*/
ECell_BLE_MANAGER_STATE_POWEREDON,
};
/**
*
* Bluetooth send command error type enumeration
*/
typedef NS_ENUM(NSInteger, ECell_BLE_COMMAND_ERROR_TYPE) {
/**
*
* The command was sent successfully.
*/
ECell_BLE_COMMAND_SUCCESS_TYPE = 1,
/**
*
* Bluetooth Not connected
*/
ECell_BLE_COMMAND_NOT_CONNECTED_TYPE,
/**
*
* Instruction timeout
*/
ECell_BLE_COMMAND_TIME_OUT_TYPE,
};
/**
*
* Bluetooth send command error type enumeration
*/
typedef NS_ENUM(NSInteger, ECell_BLE_COMMAND_PARSE_ERROR_TYPE) {
/**
*
* The command was sent successfully.
*/
ECell_BLE_COMMAND_PARSE_SUCCESS_TYPE = 1,
/**
*
* Bluetooth Not connected
*/
ECell_BLE_COMMAND_PARSE_FAIL_TYPE,
/**
*
* Instruction timeout
*/
ECell_BLE_COMMAND_PARSE_NEXT_TYPE,
};
/**
*
* The device actively reports bluetooth data
*/
typedef NS_ENUM(NSInteger, ECell_BLE_REPORT_COMMAND) {
ECell_BLE_REPORT_COMMAND_realStep = 1,
ECell_BLE_REPORT_COMMAND_realHeartRate,
ECell_BLE_REPORT_COMMAND_realBloodPressure,
ECell_BLE_REPORT_COMMAND_realBloodOxyge,
ECell_BLE_REPORT_COMMAND_cameraControl,
ECell_BLE_REPORT_COMMAND_findPhone,
};
#endif /* Enum_h */