Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86497160
button.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 6, 20:41
Size
603 B
Mime Type
text/x-c
Expires
Tue, Oct 8, 20:41 (2 d)
Engine
blob
Format
Raw Data
Handle
21434291
Attached To
R2671 HHRI-software
button.h
View Options
#ifndef __BUTTON_H
#define __BUTTON_H
#include "../main.h"
/** @defgroup Button Driver / Button
* @brief Driver to access a button
*
* Call but_Init() first in the initialization code. Then, call but_GetState()
* to read the current state of the button.
*
* It is also possible to pass a function pointer to the but_Init() function.
* Then, the given function will be called automatically when the button state
* changes (pressed or released).
*
* @addtogroup Button
* @{
*/
void but_Init(void (*stateChangedCallback)(bool));
bool but_GetState(void);
/**
* @}
*/
#endif
Event Timeline
Log In to Comment