1//=============================================================================
2//! @file
3//! @author GEMS
4//! @date 7 October 2026
5//! @brief Model-local CAN bus identifiers for Model IPC.
6//=============================================================================
7// (c) Copyright 2026 General Engine Management Systems (GEMS) Ltd
8//=============================================================================
9
10#ifndef CDX_CAN_BUS_ID_H_INCLUDED
11#define CDX_CAN_BUS_ID_H_INCLUDED
12//=============================================================================
13
14//=============================================================================
15// Includes
16//=============================================================================
17
18#if defined(CDX_USER_HEADER) && !defined(CDX_USER_H_INCLUDED)
19#include CDX_USER_HEADER
20#endif
21
22#include <stdint.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27//=============================================================================
28// Definitions
29//=============================================================================
30
31//! @brief Model-local logical bus identifier, not a physical CM4 controller.
32typedef uint8_t CDX_CAN_BUS_ID;
33//! @brief Sole supported bus, mapped to CM7's Model IPC/CAN3 port.
34#define CDX_CAN_BUS_ID_IPC 1u
35//! @brief Legacy numeric-port alias for the same Model IPC endpoint.
36#define CDX_CAN_BUS_ID_CAN1 CDX_CAN_BUS_ID_IPC
37
38#ifdef __cplusplus
39}
40#endif
41
42//=============================================================================
43#endif // CDX_CAN_BUS_ID_H_INCLUDED
44//=============================================================================
45// End of File
46//=============================================================================