/* Set the Type ID match for this driver/device. The register is a 32-bit value. The device must be stopped before calling this function. */
LONG XEmacPs_SetTypeIdCheck(XEmacPs *InstancePtr, u32 Id_Check, u8 Index)
/* Set the Type ID match for this driver/device. The register is a 32-bit value. The device must be stopped before calling this function. */
LONG XEmacPs_SetTypeIdCheck(XEmacPs *InstancePtr, u32 Id_Check, u8 Index)
{
    u8 IndexLoc = Index;
    LONG Status;
    Xil_AssertNonvoid(InstancePtr != NULL);
    Xil_AssertNonvoid(InstancePtr->IsReady == (u32)XIL_COMPONENT_IS_READY);
    Xil_AssertNonvoid((IndexLoc <= (u8)XEMACPS_MAX_TYPE_ID) && (IndexLoc > 0x00U));
    if (InstancePtr->IsStarted == (u32)XIL_COMPONENT_IS_STARTED) {
        Status = (LONG)(XST_DEVICE_IS_STARTED);
    } else {
        IndexLoc--;
    XEmacPs_WriteReg(InstancePtr->Config.BaseAddress,
                   ((u32)XEMACPS_MATCH1_OFFSET + ((u32)IndexLoc * (u32)4)), Id_Check);
        Status = (LONG)(XST_SUCCESS);
    }
    return Status;
}