Radio.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /********************************************************************************
  2. * Function Describe: Radio.c declare module
  3. * Relate Module: Gui.c
  4. * Writer: Shliangwen
  5. * Date: 2016-1-8
  6. *******************************************************************************/
  7. struct SUT_RADIO
  8. {
  9. unsigned char itemnum; //item number
  10. unsigned char handle; //current item
  11. unsigned char width; //item max width
  12. unsigned short x; //position x
  13. unsigned char y; //position y
  14. char **item; //Radio items
  15. unsigned char rows; //row number
  16. unsigned char focus; //input focus
  17. };
  18. void RadioInit //initialize struct
  19. (
  20. struct SUT_RADIO *p,
  21. unsigned short x,
  22. unsigned char y,
  23. char **item,
  24. unsigned char rows
  25. );
  26. void RadioShow(struct SUT_RADIO *p);
  27. unsigned char RadioGetHandle(struct SUT_RADIO *p);
  28. unsigned char RadioResponse(struct SUT_RADIO *p);
  29. /********************************************************************************
  30. * End of Module
  31. *******************************************************************************/