2021-04-27 21:46:53 +02:00
|
|
|
#ifndef __UTYPES_H__
|
|
|
|
#define __UTYPES_H__
|
|
|
|
|
|
|
|
#include "cc.h"
|
|
|
|
|
|
|
|
|
2021-04-30 23:14:35 +02:00
|
|
|
#define DEVICE_EASYCAT
|
|
|
|
//#define DEVICE_ETHERC
|
|
|
|
|
|
|
|
#ifdef DEVICE_EASYCAT
|
2021-05-01 01:06:28 +02:00
|
|
|
#define DEVICE_NAME "EasyCAT 32+32 rev 1"
|
2021-04-30 23:14:35 +02:00
|
|
|
#else
|
|
|
|
#ifdef DEVICE_ETHERC
|
2021-05-01 01:06:28 +02:00
|
|
|
#define DEVICE_NAME "EtherBerry 32+32"
|
2021-04-30 23:14:35 +02:00
|
|
|
#else
|
|
|
|
#define DEVICE_NAME "Unknown"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define BYTE_NUM 32 // or 16, 64, 128
|
|
|
|
|
|
|
|
|
2021-04-27 21:46:53 +02:00
|
|
|
/* Object dictionary storage */
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
/* Inputs */
|
|
|
|
|
|
|
|
/* Outputs */
|
|
|
|
|
|
|
|
/* Parameters */
|
|
|
|
|
|
|
|
/* Manufacturer specific data */
|
|
|
|
|
|
|
|
/* Dynamic TX PDO:s */
|
2021-05-03 06:49:33 +02:00
|
|
|
uint8_t txpdo[BYTE_NUM] __attribute__((aligned (8)));
|
2021-04-27 21:46:53 +02:00
|
|
|
|
|
|
|
/* Dynamic RX PDO:s */
|
2021-05-03 06:49:33 +02:00
|
|
|
uint8_t rxpdo[BYTE_NUM] __attribute__((aligned (8)));
|
2021-04-30 23:14:35 +02:00
|
|
|
|
2021-04-27 21:46:53 +02:00
|
|
|
/* Sync Managers */
|
|
|
|
|
|
|
|
} _Objects;
|
|
|
|
|
|
|
|
extern _Objects Obj;
|
|
|
|
|
|
|
|
#endif /* __UTYPES_H__ */
|