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.

ELHeightBodyFatScaleBleHeader.h 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //
  2. // ELHeightBodyFatScaleBleHeader.h
  3. // AILinkBleSDK
  4. //
  5. // Created by cliCk on 2021/3/24.
  6. // Copyright © 2021 IOT. All rights reserved.
  7. //
  8. #ifndef ELHeightBodyFatScaleBleHeader_h
  9. #define ELHeightBodyFatScaleBleHeader_h
  10. /** 身高体脂秤 ble head type 枚举定义 */
  11. typedef NS_ENUM (NSInteger, HeightBodyFatScale_BleHeadType){
  12. /* APP下发用户信息 */
  13. HeightBodyFatScale_BleHeadType_App_SendUserData = 0x01 ,
  14. /** MCU 返回收到用户数据结果 */
  15. HeightBodyFatScale_BleHeadType_MCU_ReturnUserData = 0x02 ,
  16. /** MCU请求用户信息 */
  17. HeightBodyFatScale_BleHeadType_MCU_RequestUserData = 0x03 ,
  18. /** APP/MCU 设置单位 */
  19. HeightBodyFatScale_BleHeadType_App_MCU_SetupUnit = 0x04 ,
  20. /** APP/MCU 回复设置结果 */
  21. HeightBodyFatScale_BleHeadType_App_MCU_ReturnUnitResult = 0x05 ,
  22. /** APP 下发工作模式 */
  23. HeightBodyFatScale_BleHeadType_App_SetWorkMode = 0x06 ,
  24. /** MCU回复工作模式 */
  25. HeightBodyFatScale_BleHeadType_MCU_ReturnWorkMode = 0x07 ,
  26. /** APP 读取声音设置 */
  27. HeightBodyFatScale_BleHeadType_App_GetVideoSetup = 0x08 ,
  28. /** APP/MCU 声音设置 */
  29. HeightBodyFatScale_BleHeadType_App_MCU_VideoSetup = 0x09 ,
  30. /** APP/MCU 回复声音设置 */
  31. HeightBodyFatScale_BleHeadType_App_MCU_ReturnVideoSetup = 0x0A ,
  32. /** APP 获取设备状态 */
  33. HeightBodyFatScale_BleHeadType_App_GetDeviceState = 0x0B ,
  34. /** MCU 回复设备状态 */
  35. HeightBodyFatScale_BleHeadType_MCU_ReturnDeviceState = 0x0C ,
  36. /** MCU 上报称重状态 */
  37. HeightBodyFatScale_BleHeadType_MCU_ReportWeighingState = 0x10 ,
  38. /** MCU 上报阻抗数据 */
  39. HeightBodyFatScale_BleHeadType_MCU_ReportAdcData = 0x11 ,
  40. /** MCU 上报心率数据 */
  41. HeightBodyFatScale_BleHeadType_MCU_ReportHeartRateData = 0x12 ,
  42. /** MCU 上报温度数据 */
  43. HeightBodyFatScale_BleHeadType_MCU_ReportTemData = 0x13 ,
  44. /** MCU 上报身高数据 */
  45. HeightBodyFatScale_BleHeadType_MCU_ReportHeightData = 0x14 ,
  46. /** MCU 上报体脂数据 */
  47. HeightBodyFatScale_BleHeadType_MCU_ReportBodyFatData = 0x15 ,
  48. /** MCU 上报抱婴模式的秤重状态 */
  49. HeightBodyFatScale_BleHeadType_MCU_ReportBabyWeighingState = 0x20 ,
  50. /** MCU 上报体重模式的秤重状态 */
  51. HeightBodyFatScale_BleHeadType_MCU_ReportBodyWeighingState = 0x30 ,
  52. /** MCU 发送测量完成 */
  53. HeightBodyFatScale_BleHeadType_MCU_SendWeighingCompleted = 0x80 ,
  54. /** APP 回复测量完成 */
  55. HeightBodyFatScale_BleHeadType_App_ReportWeighingCompleted = 0x81 ,
  56. /** MCU 上发错误码 */
  57. HeightBodyFatScale_BleHeadType_MCU_SendWrongCode = 0xFF ,
  58. };
  59. /** 身高体脂秤设置结果枚举定义 */
  60. typedef NS_ENUM (NSInteger, HeightBodyFatScale_SetupResult) {
  61. /** 成功 */
  62. HeightBodyFatScale_SetupResult_Success = 0x00 ,
  63. /** 失败 */
  64. HeightBodyFatScale_SetupResult_Failure = 0x01 ,
  65. /** 不支持 */
  66. HeightBodyFatScale_SetupResult_NotSupport = 0x02 ,
  67. };
  68. /** 身高体脂秤工作模式枚举定义 */
  69. typedef NS_ENUM(NSInteger, HeightBodyFatScale_WorkModeType) {
  70. /** 身高体脂模式 */
  71. HeightBodyFatScale_WorkModeType_HeightBodyFatMode = 0x01 ,
  72. /** 抱婴模式 */
  73. HeightBodyFatScale_WorkModeType_BabyMode = 0x02 ,
  74. /** 体重模式 */
  75. HeightBodyFatScale_WorkModeType_WeightMode = 0x03 ,
  76. };
  77. /** 身高体脂秤充电状态枚举定义 */
  78. typedef NS_ENUM(NSInteger, HeightBodyFatScale_ChargingType) {
  79. /** 不充电 */
  80. HeightBodyFatScale_ChargingType_NotCharging = 0x00 ,
  81. /** 充电中 */
  82. HeightBodyFatScale_ChargingType_charging = 0x01 ,
  83. };
  84. /** 身高体脂秤体重是否稳定 */
  85. typedef NS_ENUM(NSInteger, HeightBodyFatScale_WeightStableType) {
  86. /** 实时体重 */
  87. HeightBodyFatScale_WeightStableType_RealTime = 0x01 ,
  88. /** 稳定体重 */
  89. HeightBodyFatScale_WeightStableType_Stable = 0x02 ,
  90. };
  91. /** 身高体脂秤测量阻抗状态 */
  92. typedef NS_ENUM(NSInteger, HeightBodyFatScale_AdcStateType) {
  93. /** 测量阻抗中 */
  94. HeightBodyFatScale_AdcStateType_Measuring = 0x01 ,
  95. /** 测量阻抗失败 */
  96. HeightBodyFatScale_AdcStateType_Failed = 0x02 ,
  97. /** 测量阻抗成功,使用App算法 */
  98. HeightBodyFatScale_AdcStateType_Success_UseAppAlgorithm = 0x03 ,
  99. /** 测量阻抗成功,使用MCU算法 */
  100. HeightBodyFatScale_AdcStateType_Success_UseMCUAlgorithm = 0x04 ,
  101. /** 测量阻抗结束 */
  102. HeightBodyFatScale_AdcStateType_Over = 0x05 ,
  103. };
  104. /** 阻抗通道枚举定义 */
  105. typedef NS_ENUM(NSInteger, HeightBodyFatScale_AdcAisleType) {
  106. /** 双手阻抗 */
  107. HeightBodyFatScale_AdcAisleType_TwoFeets = 0x00 ,
  108. /** 双手阻抗 */
  109. HeightBodyFatScale_AdcAisleType_TwoHands = 0x01 ,
  110. /** 左手阻抗 */
  111. HeightBodyFatScale_AdcAisleType_LeftHand = 0x02 ,
  112. /** 右手阻抗 */
  113. HeightBodyFatScale_AdcAisleType_RightHand = 0x03 ,
  114. /** 左脚阻抗 */
  115. HeightBodyFatScale_AdcAisleType_LeftFeet = 0x04 ,
  116. /** 右脚阻抗 */
  117. HeightBodyFatScale_AdcAisleType_RIghtFeet = 0x05 ,
  118. /** 左全身阻抗 */
  119. HeightBodyFatScale_AdcAisleType_LeftBody = 0x06 ,
  120. /** 右全身阻抗 */
  121. HeightBodyFatScale_AdcAisleType_RightBody = 0x07 ,
  122. /** 右手左脚阻抗 */
  123. HeightBodyFatScale_AdcAisleType_RightHand_LeftFeet = 0x08 ,
  124. /** 左手右脚阻抗 */
  125. HeightBodyFatScale_AdcAisleType_LeftHand_RightFeet = 0x09 ,
  126. /** 躯干阻抗 */
  127. HeightBodyFatScale_AdcAisleType_Body = 0x0A ,
  128. };
  129. /** 心率测量状态枚举定义 */
  130. typedef NS_ENUM(NSInteger, HeightBodyFatScale_HeartRateStateType) {
  131. /** 测心率中 */
  132. HeightBodyFatScale_HeartRateStateType_Measuring = 0x01 ,
  133. /** 测心率成功 */
  134. HeightBodyFatScale_HeartRateStateType_Success = 0x02 ,
  135. /** 测心率失败 */
  136. HeightBodyFatScale_HeartRateStateType_Failed = 0x03 ,
  137. };
  138. #endif /* ELHeightBodyFatScaleBleHeader_h */