C_runtime/erpc_PLCObject_common.hpp
author Edouard Tisserant <edouard.tisserant@gmail.com>
Thu, 28 Nov 2024 14:39:26 +0100
changeset 4054 079099299603
parent 4044 2a4b8b59d165
permissions -rw-r--r--
Merge remote-tracking branch 'hggit/python3' into python3
/*
 * Generated by erpcgen 1.13.0 on Fri Nov 22 15:03:08 2024.
 *
 * AUTOGENERATED - DO NOT EDIT
 */


#if !defined(_erpc_PLCObject_common_hpp_)
#define _erpc_PLCObject_common_hpp_


#include <cstddef>
#include <cstdint>

#include "erpc_version.h"

#if 11300 != 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_