Read buttons state from Application Board 2.
More...
Read buttons state from Application Board 2.
- Author
- Daniel Fischer (V5.0) - Heinrich Ginter (V1.0)
- Version
- V5.0
- Date
- 20.10.2019
This file includes important button functions for Application Board 2 Debouncing is also included (see static function bool u32AppBoard2ButtonsDebounce(uint32_t u32Value))
◆ u32AppBoard2ButtonsDebounce()
static bool u32AppBoard2ButtonsDebounce |
( |
uint32_t |
u32Value | ) |
|
|
static |
Returns true if buttons are debounced.
- Author
- Daniel Fischer (V5.0) - Heinrich Ginter (V1.0)
- Version
- V5.0
- Date
- 20.10.2019
- Parameters
-
uint32_t | Value (Button id) |
- Returns
- true or false
Change the two hex constants to accommodate different bounce times and timer rates. In this implementation the the hex constants are appropriate for a call by a timer between 15 and 25 msec
◆ u32AppBoard2ButtonsGetState()
uint32_t u32AppBoard2ButtonsGetState |
( |
void |
| ) |
|
Returns the pressed Buttons (bit coded see AppBoard2Buttons.h)
- Author
- Daniel Fischer (V5.0) - Heinrich Ginter (V1.0)
- Version
- V5.0
- Date
- 20.10.2019
- Parameters
-
- Returns
- uint32_t u32PressedButton
After a pressed button is recognized, the button gets debounced and returned
◆ vAppboard2ButtonsInitialize()
void vAppboard2ButtonsInitialize |
( |
void |
| ) |
|
Initialization of all buttons of Application Board 2.
- Author
- Daniel Fischer (V5.0) - Heinrich Ginter (V1.0)
- Version
- V5.0
- Date
- 20.10.2019
- Parameters
-
- Returns
- void
◆ vAppboard2ButtonsUninitialize()
void vAppboard2ButtonsUninitialize |
( |
void |
| ) |
|
Uninitialization of all buttons of Application Board 2.
- Author
- Daniel Fischer (V5.0)
- Version
- V5.0
- Date
- 20.10.2019
- Parameters
-
- Returns
- void
◆ axAppBoard2Buttons
Initial value:= {{2,12},{0,20},
{0,19},{2,11},
{2,13},{1,21},
{3,25},{3,26}
}