fremoclock
1_3A01
FREMO Clock - Software for UTG
Main Page
Related Pages
Data Structures
Files
File List
Globals
PushButton.h
Go to the documentation of this file.
1
23
#ifndef PUSH_BUTTON_
24
#define PUSH_BUTTON_
25
26
#include <stdbool.h>
// typedef bool
27
#include <stdint.h>
// typedef uint8_t
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
/* -- Function prototypes for push buttons ---------------------------------- */
34
35
// for comments see PushButton.c
36
37
void
PushButtonInit
(
void
);
38
39
bool
PushButtonSingleShotEnter
(
void
);
40
bool
PushButtonSingleShotBack
(
void
);
41
bool
PushButtonSingleShotUp
(
void
);
42
bool
PushButtonSingleShotDown
(
void
);
43
uint8_t
PushButtonGetUpDownValue
(uint8_t ucbut, uint8_t ucmin, uint8_t ucmax);
44
45
void
PushButtonInterrupt
(
void
);
46
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#endif
/* PUSH_BUTTON_ */
PushButtonGetUpDownValue
uint8_t PushButtonGetUpDownValue(uint8_t ucbut, uint8_t ucmin, uint8_t ucmax)
Get selection value by up and down button.
Definition:
PushButton.c:217
PushButtonInit
void PushButtonInit(void)
Initialization of module.
Definition:
PushButton.c:92
PushButtonSingleShotEnter
bool PushButtonSingleShotEnter(void)
Test if button enter is pressed.
Definition:
PushButton.c:147
PushButtonSingleShotDown
bool PushButtonSingleShotDown(void)
Test if button down is pressed.
Definition:
PushButton.c:180
PushButtonSingleShotBack
bool PushButtonSingleShotBack(void)
Test if button back is pressed.
Definition:
PushButton.c:158
PushButtonSingleShotUp
bool PushButtonSingleShotUp(void)
Test if button up is pressed.
Definition:
PushButton.c:169
PushButtonInterrupt
void PushButtonInterrupt(void)
Called by timer interrupt every 10ms.
Definition:
PushButton.c:292
80_Core
PushButton.h
Generated on Sat Sep 3 2016 10:08:06 for fremoclock by
1.8.11