/**
 * @file cal_tables_rom.h
 * @brief Extern declarations for ROM-extracted calibration data (compact).
 *
 * AUTO-GENERATED by tools/extract_calibration.py
 * Source ROM: rom_eeprom_dump_0000-9FFF_004002.bin
 * Calibration base (RWA4): 0x9C28
 *
 * DO NOT EDIT — regenerate with:
 *   python tools/extract_calibration.py rom_eeprom_dump_0000-9FFF_004002.bin --target compact
 */
#ifndef CAL_TABLES_ROM_H
#define CAL_TABLES_ROM_H

#include "pwm.h"

/** ROM-extracted calibration data (pump-family parameters). */
extern const pwm_calibration_t pwm_cal_rom;

/** ROM-extracted flash table data (lookup tables and thresholds). */
extern const pwm_flash_t pwm_flash_rom;

/** Stable indices for the runtime-mutable descriptor array. */
enum pwm_submap_id {
    PWM_SUBMAP_PWM_A,
    PWM_SUBMAP_PWM_B,
    PWM_SUBMAP_SHAPE_EVAL,
    PWM_SUBMAP_SP0_A,
    PWM_SUBMAP_SP0_B,
    PWM_SUBMAP_SP1_B,
    PWM_SUBMAP_SP2_B,
    PWM_SUBMAP_SP2_A,
    PWM_SUBMAP_COUNT
};

/** Runtime-mutable descriptor array — bind with pwm_bind_submap_inputs. */
extern pwm_submap_descr_t pwm_submap_descrs[PWM_SUBMAP_COUNT];

#endif /* CAL_TABLES_ROM_H */
