50 lines
804 B
C
50 lines
804 B
C
/**
|
|
* @author ${author}
|
|
* @version 1.0.0
|
|
* @date ${date}
|
|
* @file ${filename_lc}.h
|
|
*/
|
|
#ifndef ${filename}_H
|
|
#define ${filename}_H
|
|
|
|
#include "../xf/xf.h"
|
|
|
|
typedef enum {
|
|
${STATES_ENUM}
|
|
} ${filename}_STATES;
|
|
|
|
typedef enum {
|
|
${EVENTS_ENUM}
|
|
} ${filename}_EVENTS;
|
|
|
|
typedef struct {
|
|
${filename}_STATES state;
|
|
} ${filename};
|
|
|
|
/**
|
|
* Initialize the ${filename}
|
|
* @param me the ${filename} itself
|
|
*/
|
|
void ${filename}_init(${filename}* me);
|
|
|
|
/**
|
|
* Start the ${filename} state machine
|
|
* @param me the ${filename} itself
|
|
*/
|
|
void ${filename}_startBehaviour(${filename}* me);
|
|
|
|
/**
|
|
* Process the event
|
|
* @param ev the event to process
|
|
* @return true if the event is processed
|
|
*/
|
|
bool ${filename}_processEvent(Event* ev);
|
|
|
|
/************
|
|
* EMITTERS *
|
|
************/
|
|
|
|
${EVENTS_EMITS_DEC}
|
|
|
|
#endif
|