WWTimer.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #ifndef _WWTimer_h_INCLUDED_
  2. #define _WWTimer_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. /*****************************************************************************/
  7. /* クラスの定義 */
  8. /*****************************************************************************/
  9. typedef struct _WWTimer * WWTimer;
  10. /*****************************************************************************/
  11. /* ヘッダファイルのインクルード */
  12. /*****************************************************************************/
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include "wonx/timer.h"
  16. /*****************************************************************************/
  17. /* メンバ関数の宣言 */
  18. /*****************************************************************************/
  19. int WWTimer_ON(WWTimer ww_timer);
  20. int WWTimer_OFF(WWTimer ww_timer);
  21. int WWTimer_IsON(WWTimer ww_timer);
  22. int WWTimer_IsOFF(WWTimer ww_timer);
  23. int WWTimer_GetAutoPreset(WWTimer ww_timer);
  24. int WWTimer_GetPresetCounter(WWTimer ww_timer);
  25. int WWTimer_GetCounter(WWTimer ww_timer);
  26. int WWTimer_IsAutoPresetOFF(WWTimer ww_timer);
  27. int WWTimer_IsAutoPresetON(WWTimer ww_timer);
  28. int WWTimer_SetAutoPreset(WWTimer ww_timer, int auto_preset);
  29. int WWTimer_SetPresetCounter(WWTimer ww_timer, int preset_counter);
  30. int WWTimer_SetCounter(WWTimer ww_timer, int counter);
  31. int WWTimer_SetAutoPresetOFF(WWTimer ww_timer);
  32. int WWTimer_SetAutoPresetON(WWTimer ww_timer);
  33. int WWTimer_Reset(WWTimer ww_timer);
  34. int WWTimer_Count(WWTimer ww_timer);
  35. /*---------------------------------------------------------------------------*/
  36. /* オブジェクトの作成 */
  37. /*---------------------------------------------------------------------------*/
  38. WWTimer WWTimer_Create(int auto_preset, int preset);
  39. /*---------------------------------------------------------------------------*/
  40. /* オブジェクトの削除 */
  41. /*---------------------------------------------------------------------------*/
  42. WWTimer WWTimer_Destroy(WWTimer ww_timer);
  43. /*****************************************************************************/
  44. /* ここまで */
  45. /*****************************************************************************/
  46. #endif
  47. /*****************************************************************************/
  48. /* End of File. */
  49. /*****************************************************************************/