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.

OEMAlgorithmSDK.h 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // Algorithm.h
  3. // GreatBody
  4. //
  5. // Created by steven wu on 2019/6/25.
  6. //
  7. #import <Foundation/Foundation.h>
  8. typedef NS_ENUM(NSInteger, OEMAlgUserSex) {
  9. OEMAlgUserSex_Female = 0,//2,
  10. OEMAlgUserSex_Male = 1,
  11. };
  12. @interface OEMAlgorithmModel : NSObject
  13. ///bmi
  14. @property (nonatomic, copy) NSString *bmi;
  15. ///体脂率 bodyfatRate
  16. @property (nonatomic, copy) NSString *bfr;
  17. ///皮下脂肪率 subcutaneousFat rate
  18. @property (nonatomic, copy) NSString *sfr;
  19. ///内脏脂肪指数 visceralFat rate
  20. @property (nonatomic, copy) NSString *uvi;
  21. ///肌肉率 muscle rate
  22. @property (nonatomic, copy) NSString *rom;
  23. ///基础代谢率 BMR
  24. @property (nonatomic, copy) NSString *bmr;
  25. ///骨骼质量 boneMass
  26. @property (nonatomic, copy) NSString *bm;
  27. ///水含量vwc: moisture
  28. @property (nonatomic, copy) NSString *vwc;
  29. ///身体年龄 physicalAge
  30. @property (nonatomic, copy) NSString *physicalAge;
  31. ///蛋白率 proteinRate
  32. @property (nonatomic, copy) NSString *pp;
  33. /* For example
  34. bmi : 23.7;
  35. bfr : 22.2;
  36. rom : 51;
  37. vwc : 57;
  38. bm : 2.8;
  39. sfr : 19.9;
  40. bmi : 1549;
  41. pp : 16.6;
  42. uvi : 7;
  43. physicalAge : 26;
  44. */
  45. @end
  46. @interface OEMAlgorithmSDK : NSObject
  47. /**
  48. * Inet AlgorithmSDK ElinkThings算法
  49. * Incoming user information + adc, calculate 10 original body fat data (the connected scale is calculated by the scale end and transmitted to the app via Bluetooth, and the broadcast scale calls this SDK calculation) 传入用户信息+adc,计算出10项原始体脂数据(连接秤由秤端计算并蓝牙传给app,广播秤调用本SDK计算)
  50. * eg:
  51. * kgWeight: 50.6 age: 25 height: 175
  52. */
  53. + (OEMAlgorithmModel *)getBodyfatWithWeight:(double)kgWeight adc:(int)adc sex:(OEMAlgUserSex)sex age:(int)age height:(int)height;
  54. @end