/* param base XBARA peripheral address. param output XBARA output number. param controlConfig Pointer to structure that keeps configuration of control register.  */
void XBARA_SetOutputSignalConfig(XBARA_Type *base, xbar_output_signal_t output, const xbara_control_config_t *controlConfig)
/* param base XBARA peripheral address. param output XBARA output number. param controlConfig Pointer to structure that keeps configuration of control register.  */
void XBARA_SetOutputSignalConfig(XBARA_Type *base, xbar_output_signal_t output, const xbara_control_config_t *controlConfig)
{
    uint8_t outputIndex = (uint8_t)output;
    uint8_t regIndex;
    uint8_t byteInReg;
    xbara_u8_u16_t regVal;
    assert(outputIndex < (uint32_t)FSL_FEATURE_XBARA_INTERRUPT_COUNT);
    regIndex  = outputIndex / 2U;
    byteInReg = outputIndex % 2U;
    regVal._u16 = XBARA_CTRLx(base, regIndex);
    regVal._u16 &= (uint16_t)(~(XBARA_CTRL0_STS0_MASK | XBARA_CTRL0_STS1_MASK));
    regVal._u8[byteInReg] = (uint8_t)(XBARA_CTRL0_EDGE0(controlConfig->activeEdge) |
                                      (uint16_t)(((uint32_t)controlConfig->requestType) << XBARA_CTRL0_DEN0_SHIFT));
    XBARA_CTRLx(base, regIndex) = regVal._u16;
}