/*
 * Stack definitions for enduranceTestBench - generated by CANopen DeviceDesigner 3.14.2
 * 14 08 2025 12:06:07 */

/* protect against multiple inclusion of the file */
#ifndef GEN_DEFINE_H
#define GEN_DEFINE_H 1

/* some information about the tool that has generated this file */
#define GEN_TOOL_NAME	CANOPEN_DEVICEDESIGNER
#define GEN_TOOL_VERSION	0x031402ul
/* init struct versions */
#define GEN_COMMON_INIT_STRUCT_VERSION 	1u
#define GEN_CANOPEN_INIT_STRUCT_VERSION 	5u

/* Line Settings */
#define CANOPEN_SUPPORTED	1u
/* Number of receive/transmit buffer entries per line */
#define CO_REC_BUFFER_COUNTS	10u
#define CO_TR_BUFFER_COUNTS	20u
/* Number of objects per line */
#define CO_OBJECTS_LINE_0_CNT	48u
#define CO_OBJECT_COUNTS	48u
#define CO_COB_COUNTS	73u
#define CO_TXPDO_COUNTS	6u
#define CO_RXPDO_COUNTS	0u
#define CO_SSDO_COUNTS	1u
#define CO_CSDO_COUNTS	20u
#define CO_ASSIGN_COUNTS	0u
#define CO_MAX_ASSIGN_COUNTS	0u
#define CO_GUARDING_COUNTS	CO_MAX_ASSIGN_COUNTS
#define CO_ERR_CTRL_COUNTS	20u
#define CO_ERR_HIST_COUNTS	1u
#define CO_ACT_ERR_HIST_COUNTS	0u
#define CO_EMCY_CONS_COUNTS	0u
#define CO_NODE_IDS	1
#define CO_NODE_ID_FUNCTIONS NULL

/* Definition of numbers of CANopen services */
#define CO_NMT_MASTER	1u
#define CO_LSS_MASTER_SUPPORTED	1u
#define CO_LSS_INQUIRY_SERVICES	1u
#define CO_SDO_SERVER_CNT	1u
#define CO_SDO_CLIENT_CNT	20u
#define CO_PDO_TRANSMIT_CNT	6u
#define CO_MAX_MAP_ENTRIES	8u
#define CO_HB_CONSUMER_CNT 20u
#define CO_EMCY_PRODUCER	1u
#define CO_EMCY_ERROR_HISTORY 1u
#define CO_SDO_BLOCK		1u
#define CO_SDO_BLOCK_SIZE	32u
#define CO_SDO_BLOCK_MIN_SIZE	64u
#define CO_SDO_QUEUE		1u
#define CO_SDO_QUEUE_LEN	0u
#define CO_INHIBIT_SUPPORTED	1u
/* number of used COB objects */
#define CO_COB_CNT	73u


/* Definition of number of call-back functions for each service*/
#define CO_EVENT_DYNAMIC_SDO_SERVER_READ	1u
#define CO_EVENT_DYNAMIC_SDO_SERVER_WRITE	1u
#define CO_EVENT_DYNAMIC_SDO_SERVER_CHECK_WRITE	1u
#define CO_EVENT_DYNAMIC_PDO	1u
#define CO_EVENT_DYNAMIC_PDO_UPDATE	1u
#define CO_EVENT_DYNAMIC_NMT	1u
#define CO_EVENT_DYNAMIC_ERRCTRL	1u
#define CO_EVENT_DYNAMIC_LED	1u
#define CO_EVENT_DYNAMIC_CAN	1u
#define CO_EVENT_DYNAMIC_SDO_CLIENT_READ	1u
#define CO_EVENT_DYNAMIC_SDO_CLIENT_WRITE	1u
#define CO_EVENT_DYNAMIC_EMCY_CONSUMER	1u
#define CO_EVENT_DYNAMIC_TIME	1u
#define CO_EVENT_DYNAMIC_STORE	1u
#define CO_EVENT_DYNAMIC_LSS	1u

#define USER_TRANSMIT_MSG_CNT	10u
#define CO_USER_EXTENSION_SUPPORTED	1u
/* Definition of CAN queue sizes */
#define CO_CONFIG_REC_BUFFER_CNT	10u
#define CO_CONFIG_TRANS_BUFFER_CNT	20u

/* Hardware settings */
#define TARGET_0 1u
#ifdef TARGET_0
/* TARGET_0 */
#define CO_TIMER_INTERVAL	1000u

/* target-specific defines */


#endif /* TARGET_0*/ 


/* application-specific defines as defined in DeviceDesigner */
#define CODRV_BIT_TABLE_EXTERN 1
#define CODRV_CANCLOCK_40MHZ 1

#define C4L_DEVICE
#define CODRV_MCAN_STM32_G4
#define CONFIG_MCAN1
#define CUBE_MX_GENERATION

#define NO_PRINTF
#if defined(NO_PRINTF)
#define printf(...)
#endif /* defined(NO_PRINTF) */
/* end of application-specific defines */

/* do not modify comments starting with 'user-specific section:' */
/* user-specific section: start */

/* user-specific section: end */

#endif /* GEN_DEFINE_H */
