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.

34 lines
786 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __MOTORWINDOW_H_INCL__
  2. #define __MOTORWINDOW_H_INCL__
  3. #include "../../source/lib/hardware/soc/classSOC.h"
  4. #include "../../source/lib/cli/cliClass.h"
  5. #ifndef NEWT_CLI
  6. #include "../../source/lib/components/base/basicNCursesEngine.h"
  7. #endif
  8. #include <fcntl.h>
  9. #include <sys/stat.h>
  10. /**
  11. * TODO: Add class description
  12. *
  13. * @author gagua
  14. */
  15. class motorWindow : public WindowCLI {
  16. classSOC *m_pSOC;
  17. int cur_P2P_HM;
  18. int min_P2P_HM;
  19. int max_P2P_HM;
  20. int cur_P2P_VM;
  21. int min_P2P_VM;
  22. int max_P2P_VM;
  23. newtComponent m_t1, m_t2, m_t3, m_t4, m_t5, m_t6, m_t7, m_t8;
  24. public:
  25. motorWindow();
  26. ~motorWindow();
  27. void paint( void );
  28. void resetStat( void );
  29. void saveStatToFile( char *FileName );
  30. };
  31. #endif // __MOTORWINDOW_H_INCL__