/* param base The I3C peripheral base address. param i3c_ibi_type_t Type of #i3c_ibi_type_t.  */
i3c_ibi_type_t I3C_GetIBIType(I3C_Type *base)
/* param base The I3C peripheral base address. param i3c_ibi_type_t Type of #i3c_ibi_type_t.  */
i3c_ibi_type_t I3C_GetIBIType(I3C_Type *base)
{
    uint32_t ibiValue      = (base->MSTATUS & I3C_MSTATUS_IBITYPE_MASK) >> I3C_MSTATUS_IBITYPE_SHIFT;
    i3c_ibi_type_t ibiType = kI3C_IbiNormal;
    switch (ibiValue)
    {
        case 3L:
            ibiType = kI3C_IbiHotJoin;
            break;
        case 2L:
            ibiType = kI3C_IbiMasterRequest;
            break;
        default:
            ibiType = kI3C_IbiNormal;
            break;
    }
    return ibiType;
}