/****************************************************************************** * File: MCU_PIO_priv.h * Component: MCU_PIO * Description: Private header — extern config array and runtime control * struct holding pre-claimed DMA channels per instance. * * Layer: MCU (hardware abstraction) - internal use only *****************************************************************************/ #ifndef MCU_PIO_PRIV_H #define MCU_PIO_PRIV_H #include "MCU_PIO.h" #include "MCU_PIO_cfg.h" extern const MCU_PIO_tstrConfig MCU_PIO_astrConfig[MCU_PIO_NUM_INSTANCES]; /* ------------------------------------------------------------------------ */ /* RUNTIME CONTROL STRUCTURE */ /* ------------------------------------------------------------------------ */ /** * @brief Per-instance runtime state. * * as8DmaChannel — DMA channel claimed during Init for async FIFO writes. * One channel per PIO instance, reserved for the lifetime * of the application. */ typedef struct { s8 as8DmaChannel[MCU_PIO_NUM_INSTANCES]; } MCU_PIO_tstrControl; #endif /* MCU_PIO_PRIV_H */