/* param base PGMC MIF peripheral base address. param memoryLevel The selected memory low power level. For details please refer to pgmc_memory_low_power_level_t. param mask The mask of MIF signal behaviour. Should be the OR'ed value of _pgmc_mif_signal_behaviour  */
void PGMC_MIF_SetSignalBehaviour(PGMC_MIF_Type *base, pgmc_memory_low_power_level_t memoryLevel, uint32_t mask)
/* param base PGMC MIF peripheral base address. param memoryLevel The selected memory low power level. For details please refer to pgmc_memory_low_power_level_t. param mask The mask of MIF signal behaviour. Should be the OR'ed value of _pgmc_mif_signal_behaviour  */
void PGMC_MIF_SetSignalBehaviour(PGMC_MIF_Type *base, pgmc_memory_low_power_level_t memoryLevel, uint32_t mask)
{
    uint8_t signalIndex           = 0U;
    uint32_t temp32               = 0U;
    PGMC_MIF_SIGNAL_Type *MIF_SIG = (PGMC_MIF_SIGNAL_Type *)(uint32_t)(&(base->MIF_MLPL_SLEEP));
    for (signalIndex = 0U; signalIndex < 11U; signalIndex++)
    {
        temp32 = MIF_SIG[signalIndex].SIGNAL;
        temp32 &= ~(1UL << (uint32_t)memoryLevel);
        temp32 |= ((uint32_t)(mask & (1UL << signalIndex)) << (uint32_t)memoryLevel);
        MIF_SIG[signalIndex].SIGNAL = temp32;
    }
}