/*
 * can_db_symbols.h
 *
 *  Created on: Sep 16, 2025
 *      Author: herli
 */

#ifndef SRC_CAN_LIBS_CAN_DB_SYMBOLS_H_
#define SRC_CAN_LIBS_CAN_DB_SYMBOLS_H_

#include "can_schema.h"
/* Exported message definitions (no hardcoded IDs anywhere else) */
extern const CanMessageDef MSG_ID_EMPF1;            // TX injection/status (was 0x114)
extern const CanMessageDef MSG_ID_EMPF2;   			// TX reply to address-requests (ID = 516)
extern const CanMessageDef MSG_ID_EMPF3;   			// TX boot template

extern const CanMessageDef MSG_ID_EMPF3_MOD;   			// TX boot template
extern const CanMessageDef MSG_ID_EMPF4;   			// TX boot template

extern const CanMessageDef MSG_ID_SEND1;            // RX ecu command(was 0x10E)
extern const CanMessageDef MSG_ID_SEND2;            // RX address requests handler (was 0x502)
extern const CanMessageDef MSG_ID_SEND3;            // RX dfi coding(was 0x700)
extern const CanMessageDef MSG_ID_SEND4;            // RX dfi coding(was 0x300)

extern const CanMessageDef MSG_ID_SEND_CUSTOM;            // RX dfi coding(was 0x720)

extern const CanMessageDef MSG_STARTUP_TRIGGER_RX;  // RX trigger (was 0x700)

extern const CanAddressEntry CAN_ANSWERS[];
extern const size_t          CAN_ANSWERS_COUNT;

/* Optional: get full registry for iteration */
const CanMessageDef* const* can_db_all_ptr(size_t *count);

#endif /* SRC_CAN_LIBS_CAN_DB_SYMBOLS_H_ */
