0% found this document useful (0 votes)
66 views

Refcommsm

This header file defines functions and data types for a state machine used for communication. It defines an enumerated type for the different states including Wait2Send and SPISendByte. It also prototypes public functions for running, starting, posting to, and initializing the state machine, including a Run function that takes an event as a parameter and returns an event.

Uploaded by

api-397492879
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views

Refcommsm

This header file defines functions and data types for a state machine used for communication. It defines an enumerated type for the different states including Wait2Send and SPISendByte. It also prototypes public functions for running, starting, posting to, and initializing the state machine, including a Run function that takes an event as a parameter and returns an event.

Uploaded by

api-397492879
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

Header file for REFCommSM

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

#ifndef REFCommSM_H
#define REFCommSM_H

// State definitions for use with the query function


typedef enum { Wait2Send, SPISendByte } REFCommState_t ;

// Public Function Prototypes

ES_Event_t RunREFCommSM( ES_Event_t CurrentEvent );


void StartREFCommSM ( ES_Event_t CurrentEvent );
bool PostREFCommSM( ES_Event_t ThisEvent );
bool InitREFCommSM ( uint8_t Priority );

#endif /*REFCommSM_H */

You might also like