// This file is generated by FBC.

#ifndef VVI_PACEMAKER_H_
#define VVI_PACEMAKER_H_

#include "fbtypes.h"
#include "VVI_LRI.h"
#include "VVI_VRP.h"

typedef union {
    struct {
        UDINT VPulse ; // 
        UDINT VRP_Timer_Timeout ; // 
        UDINT LRI_Timer_Timeout ; // 
    } event;
} VVI_PacemakerIEvents;

typedef union {
    struct {
        UDINT VPace ; // 
        UDINT VRefractory ; // 
        UDINT VRP_Start_Timer ; // 
        UDINT LRI_Timer_Start ; // 
        UDINT LRI_Timer_Stop ; // 
    } event;
} VVI_PacemakerOEvents;

typedef struct {
    VVI_PacemakerIEvents _input;
    VVI_PacemakerOEvents _output;
    INT _VRP_Timeout_Value;
    INT _LRI_Timeout_Value;
    VVI_LRI VVI_LRI;
    VVI_VRP VVI_VRP;
} VVI_Pacemaker;

/* Function block initialization function */
void VVI_Pacemakerinit(VVI_Pacemaker* me);

/* Function block execution function */
void VVI_Pacemakerrun(VVI_Pacemaker* me);

#endif // VVI_PACEMAKER_H_
