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

Popupmotorserviceh

This header file defines functions and data types for a PopUpMotorService based on an events and services framework. It includes event definitions and framework files. It defines an enumeration for PopUpMotor states like initialization, waiting, and working states. It also prototypes public functions to initialize, post events to, and run the PopUpMotor service.

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)
52 views1 page

Popupmotorserviceh

This header file defines functions and data types for a PopUpMotorService based on an events and services framework. It includes event definitions and framework files. It defines an enumeration for PopUpMotor states like initialization, waiting, and working states. It also prototypes public functions to initialize, post events to, and run the PopUpMotor service.

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 PopUpMotorService


based on the Gen 2 Events and Services Framework

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

#ifndef PopUpMotorService_H
#define PopUpMotorService_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 */
#include "PWM16Tiva.h"

// typedefs for the states


// State definitions for use with the query function
typedef enum { PopUpInitPState, PopUpWaitingState, PopUp1WorkingState,
PopUp2WorkingState, PopUp3WorkingState, PopUpResetState } PopUpMotorState_t;

// Public Function Prototypes


bool InitPopUpMotor ( uint8_t Priority );
bool PostPopUpMotor( ES_Event ThisEvent );
ES_Event RunPopUpMotor( ES_Event ThisEvent );

#endif /* PopUpMotorService_H */

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy