mirror of
https://github.com/OpenEtherCATsociety/SOES.git
synced 2024-07-16 10:52:54 +02:00
48 lines
729 B
C
48 lines
729 B
C
#ifndef __UTYPES_H__
|
|
#define __UTYPES_H__
|
|
|
|
#include "cc.h"
|
|
|
|
|
|
#define DEVICE_EASYCAT
|
|
//#define DEVICE_ETHERC
|
|
|
|
#ifdef DEVICE_EASYCAT
|
|
#define DEVICE_NAME "EasyCAT 32+32 rev 1"
|
|
#else
|
|
#ifdef DEVICE_ETHERC
|
|
#define DEVICE_NAME "EtherBerry 32+32"
|
|
#else
|
|
#define DEVICE_NAME "Unknown"
|
|
#endif
|
|
#endif
|
|
|
|
#define BYTE_NUM 32 // or 16, 64, 128
|
|
|
|
|
|
/* Object dictionary storage */
|
|
|
|
typedef struct
|
|
{
|
|
/* Inputs */
|
|
|
|
/* Outputs */
|
|
|
|
/* Parameters */
|
|
|
|
/* Manufacturer specific data */
|
|
|
|
/* Dynamic TX PDO:s */
|
|
uint8_t txpdo[BYTE_NUM] __attribute__((aligned (8)));
|
|
|
|
/* Dynamic RX PDO:s */
|
|
uint8_t rxpdo[BYTE_NUM] __attribute__((aligned (8)));
|
|
|
|
/* Sync Managers */
|
|
|
|
} _Objects;
|
|
|
|
extern _Objects Obj;
|
|
|
|
#endif /* __UTYPES_H__ */
|