mc_pu_base.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * @file motor_pu_base.h
  3. * @author Xiao Lifan (xiaolf6@midea.com)
  4. * @brief 基值系统定义
  5. * @version 0.1
  6. * @date 2023-03-22
  7. *
  8. * @copyright Copyright (c) 2023
  9. *
  10. */
  11. #ifndef _MOTOR_PU_BASE_H_
  12. #define _MOTOR_PU_BASE_H_
  13. #include "test_typedefine.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif // __cplusplus
  17. /**
  18. * @brief 电机基值系统输入量/基本基值
  19. * @note 所有值均为Q0
  20. *
  21. */
  22. typedef struct McPuBaseIn
  23. {
  24. u16 Pairsb; /**< Unit: None */
  25. u16 UbVt; /**< Unit: 0.1 V */
  26. u16 IbAp; /**< Unit: 0.01 A */
  27. u16 FbHz; /**< Unit: Hz */
  28. } McPuBaseIn;
  29. /**
  30. * @brief 电机基值
  31. * @note 所有值均为Q0
  32. *
  33. */
  34. typedef struct McPuBase
  35. {
  36. u16 uwPairsb; /**< Unit: None */
  37. u16 uwUbVt; /**< Unit: 0.1 V */
  38. u16 uwIbAp; /**< Unit: 0.01 A */
  39. u16 uwFbHz; /**< Unit: Hz */
  40. u16 uwVbRpm; /**< Unit: RPM */
  41. u16 uwPbW; /**< Unit: 0.1 W */
  42. u16 uwRbOhm; /**< Unit: 0.01 Ohm */
  43. u16 uwWeb; /**< Unit: s^-1 */
  44. u16 uwTbUs; /**< Unit: 0.1 us */
  45. u16 uwLbHm; /**< Unit: 0.01 mH */
  46. u16 uwFluxbWeb; /**< Unit: 0.01 mWb */
  47. u16 uwTqbNm; /**< Unit: Nm */
  48. u16 uwJbKgm2; /**< Unit: 1e-10 kg.m^2 */
  49. } McPuBase;
  50. /**
  51. * @brief 初始化电机基值
  52. *
  53. * @param base 电机基本基值与推导基值
  54. * @param in 电机基本基值
  55. */
  56. void McPuBaseInit(McPuBase *base, McPuBaseIn *in);
  57. #ifdef __cplusplus
  58. }
  59. #endif // __cplusplus
  60. #endif