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.

37 lines
808 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __GPIOWINDOW_H_INCL__
  2. #define __GPIOWINDOW_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 gpioWindow : public WindowCLI {
  16. uint32_t m_nGPI0;
  17. uint32_t m_nGPI1;
  18. uint32_t m_nGPI2;
  19. uint32_t m_nGPI3;
  20. uint32_t m_nGPI4;
  21. uint32_t m_nGPI5;
  22. uint32_t m_nGPO0;
  23. uint32_t m_nGPO1;
  24. uint32_t m_nGPO2;
  25. uint32_t m_nGPO3;
  26. uint32_t m_nGPO4;
  27. uint32_t m_nGPO5;
  28. newtComponent m_t1, m_t2, m_t3, m_t4, m_t5, m_t6;
  29. public:
  30. gpioWindow();
  31. ~gpioWindow();
  32. void paint( void );
  33. };
  34. #endif // __MOTORWINDOW_H_INCL__