iOS AILinkBleSDK - 蓝牙SDK
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.

ELBloodBleSDKHeader.h 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // ELBloodBleSDKHeader.h
  3. // Elink
  4. //
  5. // Created by iot_user on 2019/5/11.
  6. // Copyright © 2019 iot_iMac. All rights reserved.
  7. //
  8. #ifndef ELBloodBleSDKHeader_h
  9. #define ELBloodBleSDKHeader_h
  10. #import "ELSDKHeader.h"
  11. #define BloodUnitDic @{\
  12. @(ELBloodUnitType_mmhg):BloodUnit_mmhg,\
  13. @(ELBloodUnitType_kPa):BloodUnit_kPa\
  14. }
  15. #define BloodUnit_mmhg AiLinkBloodUnit_mmHgStr
  16. #define BloodUnit_kPa AiLinkBloodUnit_kPaStr
  17. #define kPa_To_mmHg(kPa) (kPa*7.5006168270417)
  18. #define mmHg_To_kPa(mmHg) (mmHg/7.5006168270417)
  19. //type of data(数据类型)
  20. typedef NS_ENUM(NSUInteger, ELBloodBleDataModelType) {
  21. ELBloodBleDataModelTypeStable, //Stable data(稳定数据)
  22. ELBloodBleDataModelTypeRealTime, //Real-time data(实时数据)
  23. };
  24. //error code(错误码)
  25. typedef NS_ENUM(NSUInteger, ELBloodFailCode) {
  26. ELBloodFailCodeUnfoundDia = 0, //High voltage not found(未找到高压)
  27. ELBloodFailCodeCantInflating = 1, //Unable to pressurize normally, please check whether the cuff is inserted, or re-insert the cuff trachea(无法正常加压,请检查是否插入袖带,或者重新插拔袖带气管)
  28. ELBloodFailCodePowerLow = 2, //Low battery(电量低)
  29. ELBloodFailCodeSignalError = 3, //Abnormal sensor signal(传感器信号异常)
  30. ELBloodFailCodeMeasureError = 4, //Abnormal measurement results(测量结果异常)
  31. ELBloodFailCodeWristbandError = 5, //Wrist strap is too tight or the airway is blocked(腕带过紧或气路堵塞)
  32. ELBloodFailCodeHaveInterence = 6, //Serious pressure interference during measurement(测量中压力干扰严重)
  33. ELBloodFailCodeOverStressed = 7, //Overpressure 290(压力超 290)
  34. ELBloodFailCodeDataError = 8, //Abnormal calibration data or abnormal storage IC(标定数据异常或存储 IC 异常)
  35. };
  36. //Interactive command(交互指令)
  37. typedef NS_ENUM(NSUInteger, ELBloodInteractionType) {
  38. ELBloodInteractionTypeStartTest = 0, //Start measurement(开始测量)
  39. ELBloodInteractionTypeStopTest = 1, //Stop testing(停止测试)
  40. ELBloodInteractionTypeBoot = 2, //Boot(开机)
  41. ELBloodInteractionTypeShutdown = 3, //Shut down(关机)
  42. };
  43. typedef NS_ENUM(NSUInteger, ELBloodBleSwitchVoiceType) {
  44. ELBloodBleSwitchVoiceTypeOn = 0x00, //turn on(打开)
  45. ELBloodBleSwitchVoiceTypeOff = 0x01, //shut down(关闭)
  46. };
  47. #endif /* ELBloodBleSDKHeader_h */