C_runtime/erpc_PLCObject_common.hpp
author Edouard Tisserant <edouard@beremiz.fr>
Mon, 27 May 2024 11:16:27 +0200
changeset 3953 91c39139420f
parent 3937 e13543d716b6
child 3941 09aa8a10026c
permissions -rw-r--r--
Xenomai runtime: report and mitigate when PLC cycle overruns.

Side effect :
_Log* macro was changed in plc_Xenomai_main.c,
and fixed in plc_Linux_main.c
/*
 * Generated by erpcgen 1.11.0 on Wed Mar 27 13:43:44 2024.
 *
 * AUTOGENERATED - DO NOT EDIT
 */


#if !defined(_erpc_PLCObject_common_hpp_)
#define _erpc_PLCObject_common_hpp_


#include <cstdbool>
#include <cstddef>
#include <cstdint>

#include "erpc_version.h"

#if 11100 != ERPC_VERSION_NUMBER
#error "The generated shim code version is different to the rest of eRPC code."
#endif


#if !defined(ERPC_TYPE_DEFINITIONS_ERPC_PLCOBJECT)
#define ERPC_TYPE_DEFINITIONS_ERPC_PLCOBJECT

// Enumerators data types declarations
typedef enum PLCstatus_enum
{
    Empty = 0,
    Stopped = 1,
    Started = 2,
    Broken = 3,
    Disconnected = 4
} PLCstatus_enum;

// Aliases data types declarations
typedef struct binary_t binary_t;
typedef struct PSKID PSKID;
typedef struct PLCstatus PLCstatus;
typedef struct trace_sample trace_sample;
typedef struct list_trace_sample_1_t list_trace_sample_1_t;
typedef struct TraceVariables TraceVariables;
typedef struct extra_file extra_file;
typedef struct list_extra_file_1_t list_extra_file_1_t;
typedef struct trace_order trace_order;
typedef struct list_trace_order_1_t list_trace_order_1_t;
typedef struct log_message log_message;

// Structures/unions data types declarations
struct binary_t
{
    uint8_t * data;
    uint32_t dataLength;
};

struct PSKID
{
    char * ID;
    char * PSK;
};

struct PLCstatus
{
    PLCstatus_enum PLCstatus;
    uint32_t logcounts[4];
};

struct trace_sample
{
    uint32_t tick;
    binary_t TraceBuffer;
};

struct list_trace_sample_1_t
{
    trace_sample * elements;
    uint32_t elementsCount;
};

struct TraceVariables
{
    PLCstatus_enum PLCstatus;
    list_trace_sample_1_t traces;
};

struct extra_file
{
    char * fname;
    binary_t blobID;
};

struct list_extra_file_1_t
{
    extra_file * elements;
    uint32_t elementsCount;
};

struct trace_order
{
    uint32_t idx;
    binary_t force;
};

struct list_trace_order_1_t
{
    trace_order * elements;
    uint32_t elementsCount;
};

struct log_message
{
    char * msg;
    uint32_t tick;
    uint32_t sec;
    uint32_t nsec;
};


#endif // ERPC_TYPE_DEFINITIONS_ERPC_PLCOBJECT


#endif // _erpc_PLCObject_common_hpp_