iOS AILinkBleSDK - 蓝牙SDK
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ELBroadcastNutritionFoodScaleBleHeader.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // ELBroadcastNutritionFoodScaleBleHeader.h
  3. // Elink
  4. //
  5. // Created by iot_user on 2020/8/21.
  6. // Copyright © 2020 iot_iMac. All rights reserved.
  7. //
  8. #ifndef ELBroadcastNutritionFoodScaleBleHeader_h
  9. #define ELBroadcastNutritionFoodScaleBleHeader_h
  10. #import "ELSDKHeader.h"
  11. typedef NS_ENUM(NSUInteger, BroadcastNutritionFoodScaleStatus) {
  12. //Real-time weight(实时重量)
  13. BroadcastNutritionFoodScaleStatus_RealTime = 0,
  14. //Stable weight(稳定重量)
  15. BroadcastNutritionFoodScaleStatus_Stable = 1,
  16. //error (测量异常)
  17. BroadcastNutritionFoodScaleStatus_Error = 2,
  18. };
  19. /** 广播营养秤 Weight unit(重量单位)*/
  20. typedef NS_ENUM(NSInteger, BroadcastNutritionFoodScaleWeightUnit) {
  21. /** g */
  22. BroadcastNutritionFoodScaleWeightUnit_G = 0 ,
  23. /** ml */
  24. BroadcastNutritionFoodScaleWeightUnit_ML = 1 ,
  25. /** lb:oz */
  26. BroadcastNutritionFoodScaleWeightUnit_LB_OZ = 2 ,
  27. /** oz */
  28. BroadcastNutritionFoodScaleWeightUnit_OZ = 3 ,
  29. /** kg */
  30. BroadcastNutritionFoodScaleWeightUnit_KG = 4 ,
  31. /** 斤 */
  32. BroadcastNutritionFoodScaleWeightUnit_JIN = 5 ,
  33. /** 牛奶 ml */
  34. BroadcastNutritionFoodScaleWeightUnit_MILK_ML = 6 ,
  35. /** 水 ml */
  36. BroadcastNutritionFoodScaleWeightUnit_WATER_ML = 7 ,
  37. /** 牛奶 fl.oz */
  38. BroadcastNutritionFoodScaleWeightUnit_MILK_FLOZ = 8 ,
  39. /** 水 fl.oz */
  40. BroadcastNutritionFoodScaleWeightUnit_WATER_FLOZ = 9 ,
  41. /** lb */
  42. BroadcastNutritionFoodScaleWeightUnit_LB = 10 ,
  43. /** Unsupported unit */
  44. BroadcastNutritionFoodScaleWeightUnit_Fail = 0xFF ,
  45. };
  46. typedef NS_ENUM(NSUInteger, BroadcastNutritionFoodScaleErrorStatus) {
  47. //Low Power(1:电量过低,无法测试 0:正常)
  48. BroadcastNutritionFoodScaleErrorStatus_Low_Power_mask = 1 << 0,
  49. //Over Range(1: 超重 0:正常)
  50. BroadcastNutritionFoodScaleErrorStatus_Over_Range_mask = 1 << 1,
  51. };
  52. #endif /* ELBroadcastNutritionFoodScaleBleHeader_h */