src.dualinventive.com/dinet/sec-multi-proxy/libdi/include/di/can/net/canid.h

46 lines
1.2 KiB
C

/**
* @file include/di/can/net/canid.h
* @brief DI-CAN Net subsystem known CAN-ids
* @date Mar 16, 2017
* @author jjacobs
* @copyright 2017 Dual Inventive Technology Centre B.V.
*/
#ifndef LIBDI_INCLUDE_DI_CAN_NET_CANID_H_
#define LIBDI_INCLUDE_DI_CAN_NET_CANID_H_
struct di_can_ctx;
#ifdef __cplusplus
extern "C" {
#endif
/** Heartbeat CANID */
#define DI_CAN_NET_CANID_MSG_HEARTBEAT(transfertype) \
DI_CAN_MSGTYPE_NET, \
DI_CAN_TRANSFERTYPE_##transfertype, \
DI_CAN_NET_DTYPE_HEARTBEAT
/** Discover CANID */
#define DI_CAN_NET_CANID_MSG_DISCOVER(transfertype) \
DI_CAN_MSGTYPE_NET, \
DI_CAN_TRANSFERTYPE_##transfertype, \
DI_CAN_NET_DTYPE_DISCOVER
/** Node UID (device:uid) CANID */
#define DI_CAN_NET_CANID_MSG_NODE_UID(transfertype) \
DI_CAN_MSGTYPE_NET, \
DI_CAN_TRANSFERTYPE_##transfertype, \
DI_CAN_NET_DTYPE_NODE_UID \
/** Node error CANID */
#define DI_CAN_NET_CANID_MSG_NODE_ERROR(transfertype) \
DI_CAN_MSGTYPE_NET, \
DI_CAN_TRANSFERTYPE_##transfertype, \
DI_CAN_NET_DTYPE_NODE_ERROR \
#ifdef __cplusplus
}
#endif
#endif /* LIBDI_INCLUDE_DI_CAN_NET_CANID_H_ */