WWTimer.h 2.6 KB

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