0% found this document useful (0 votes)
56 views1 page

Popupbutton

This C header file defines functions and data types for a popup button component based on an events and services framework. It includes event definition files, defines an enum for button states, and prototypes boolean functions for initializing the button, posting button events, processing events, and checking the button state.

Uploaded by

api-384495602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views1 page

Popupbutton

This C header file defines functions and data types for a popup button component based on an events and services framework. It includes event definition files, defines an enum for button states, and prototypes boolean functions for initializing the button, posting button events, processing events, and checking the button state.

Uploaded by

api-384495602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

/****************************************************************************

Header file for PopUpButton


based on the Gen 2 Events and Services Framework

****************************************************************************/

#ifndef PopUpButton_H
#define PopUpButton_H

// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Framework.h" /* gets ES_Framework */
#include "ES_Types.h" /* gets bool type for returns */

// typedefs for the states


typedef enum { Debouncing, Ready2Sample } ButtonState_t;

// Public Function Prototypes


bool InitPopUpButton(uint8_t Priority);
bool PostPopUpButton(ES_Event ThisEvent);
ES_Event RunPopUpButton(ES_Event ThisEvent);
bool Check4Button(void);
#endif /* PopUpButton_H */

You might also like