iOS AILinkBleSDK - 蓝牙SDK
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ELHeightBodyFatScaleBleHeader.h 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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_ReportWeightHeightWeightState = 0x40 ,
  54. /** MCU 上报体重身高模式的身高数据 */
  55. HeightBodyFatScale_BleHeadType_MCU_ReportWeightHeightHeightState = 0x41 ,
  56. /** MCU 发送测量完成 */
  57. HeightBodyFatScale_BleHeadType_MCU_SendWeighingCompleted = 0x80 ,
  58. /** APP 回复测量完成 */
  59. HeightBodyFatScale_BleHeadType_App_ReportWeighingCompleted = 0x81 ,
  60. /** MCU 上发错误码 */
  61. HeightBodyFatScale_BleHeadType_MCU_SendWrongCode = 0xFF ,
  62. };
  63. /** 身高体脂秤设置结果枚举定义 */
  64. typedef NS_ENUM (NSInteger, HeightBodyFatScale_SetupResult) {
  65. /** 成功 */
  66. HeightBodyFatScale_SetupResult_Success = 0x00 ,
  67. /** 失败 */
  68. HeightBodyFatScale_SetupResult_Failure = 0x01 ,
  69. /** 不支持 */
  70. HeightBodyFatScale_SetupResult_NotSupport = 0x02 ,
  71. };
  72. /** 身高体脂秤工作模式枚举定义 */
  73. typedef NS_ENUM(NSInteger, HeightBodyFatScale_WorkModeType) {
  74. /** 身高体脂模式 */
  75. HeightBodyFatScale_WorkModeType_HeightBodyFatMode = 0x01 ,
  76. /** 抱婴模式 */
  77. HeightBodyFatScale_WorkModeType_BabyMode = 0x02 ,
  78. /** 体重模式 */
  79. HeightBodyFatScale_WorkModeType_WeightMode = 0x03 ,
  80. /** 体重身高模式 */
  81. HeightBodyFatScale_WorkModeType_WeightHeightMode = 0x04 ,
  82. };
  83. /** 身高体脂秤充电状态枚举定义 */
  84. typedef NS_ENUM(NSInteger, HeightBodyFatScale_ChargingType) {
  85. /** 不充电 */
  86. HeightBodyFatScale_ChargingType_NotCharging = 0x00 ,
  87. /** 充电中 */
  88. HeightBodyFatScale_ChargingType_charging = 0x01 ,
  89. };
  90. /** 身高体脂秤体重是否稳定 */
  91. typedef NS_ENUM(NSInteger, HeightBodyFatScale_WeightStableType) {
  92. /** 实时体重 */
  93. HeightBodyFatScale_WeightStableType_RealTime = 0x01 ,
  94. /** 稳定体重 */
  95. HeightBodyFatScale_WeightStableType_Stable = 0x02 ,
  96. };
  97. /** 身高体脂秤测量阻抗状态 */
  98. typedef NS_ENUM(NSInteger, HeightBodyFatScale_AdcStateType) {
  99. /** 测量阻抗中 */
  100. HeightBodyFatScale_AdcStateType_Measuring = 0x01 ,
  101. /** 测量阻抗失败 */
  102. HeightBodyFatScale_AdcStateType_Failed = 0x02 ,
  103. /** 测量阻抗成功,使用App算法 */
  104. HeightBodyFatScale_AdcStateType_Success_UseAppAlgorithm = 0x03 ,
  105. /** 测量阻抗成功,使用MCU算法 */
  106. HeightBodyFatScale_AdcStateType_Success_UseMCUAlgorithm = 0x04 ,
  107. /** 测量阻抗结束 */
  108. HeightBodyFatScale_AdcStateType_Over = 0x05 ,
  109. };
  110. /** 阻抗通道枚举定义 */
  111. typedef NS_ENUM(NSInteger, HeightBodyFatScale_AdcAisleType) {
  112. /** 双手阻抗 */
  113. HeightBodyFatScale_AdcAisleType_TwoFeets = 0x00 ,
  114. /** 双手阻抗 */
  115. HeightBodyFatScale_AdcAisleType_TwoHands = 0x01 ,
  116. /** 左手阻抗 */
  117. HeightBodyFatScale_AdcAisleType_LeftHand = 0x02 ,
  118. /** 右手阻抗 */
  119. HeightBodyFatScale_AdcAisleType_RightHand = 0x03 ,
  120. /** 左脚阻抗 */
  121. HeightBodyFatScale_AdcAisleType_LeftFeet = 0x04 ,
  122. /** 右脚阻抗 */
  123. HeightBodyFatScale_AdcAisleType_RIghtFeet = 0x05 ,
  124. /** 左全身阻抗 */
  125. HeightBodyFatScale_AdcAisleType_LeftBody = 0x06 ,
  126. /** 右全身阻抗 */
  127. HeightBodyFatScale_AdcAisleType_RightBody = 0x07 ,
  128. /** 右手左脚阻抗 */
  129. HeightBodyFatScale_AdcAisleType_RightHand_LeftFeet = 0x08 ,
  130. /** 左手右脚阻抗 */
  131. HeightBodyFatScale_AdcAisleType_LeftHand_RightFeet = 0x09 ,
  132. /** 躯干阻抗 */
  133. HeightBodyFatScale_AdcAisleType_Body = 0x0A ,
  134. };
  135. /** 心率测量状态枚举定义 */
  136. typedef NS_ENUM(NSInteger, HeightBodyFatScale_HeartRateStateType) {
  137. /** 测心率中 */
  138. HeightBodyFatScale_HeartRateStateType_Measuring = 0x01 ,
  139. /** 测心率成功 */
  140. HeightBodyFatScale_HeartRateStateType_Success = 0x02 ,
  141. /** 测心率失败 */
  142. HeightBodyFatScale_HeartRateStateType_Failed = 0x03 ,
  143. };
  144. /** 肥胖等级枚举定义 */
  145. typedef NS_ENUM(NSInteger, HeightBodyFatScale_ObesityGrade) {
  146. /** 瘦 */
  147. HeightBodyFatScale_ObesityGrade_Thin = 0x00 ,
  148. /** 健康 */
  149. HeightBodyFatScale_ObesityGrade_Health = 0x01 ,
  150. /** 肥胖 */
  151. HeightBodyFatScale_ObesityGrade_Obesity = 0x02 ,
  152. /** 超标 */
  153. HeightBodyFatScale_ObesityGrade_Exceeding = 0x03 ,
  154. };
  155. #endif /* ELHeightBodyFatScaleBleHeader_h */