lib/sw_services/xilnvm/examples/xilnvm_efuse_versal_client_example.c
static int XilNvm_EfuseInitDecOnly(XNvm_EfuseDataAddr *WriteEfuse,
	XNvm_EfuseDecOnly *DecOnly)
{
	DecOnly->PrgmDecOnly = XNVM_EFUSE_WRITE_DEC_EFUSE_ONLY;

	if (DecOnly->PrgmDecOnly == TRUE) {
		Xil_DCacheFlushRange((UINTPTR)DecOnly,
			sizeof(XNvm_EfuseDecOnly));
		WriteEfuse->DecOnlyAddr = (UINTPTR)DecOnly;
	}

	return XST_SUCCESS;
}
/****************************************************************************/
/**
 * This function is used to initialize the XNvm_EfuseDecOnly structure with
 * user provided data and assign the same to global struture XNvm_EfuseDataAddr
 * to program DEC_ONLY eFuses.
 *
 * typedef struct {
 *	u8 PrgmDecOnly;
 * }XNvm_EfuseDecOnly;
 *
 * @param	WriteEfuse	Pointer to XNvm_EfuseDataAddr structure.
 *
 * @param 	DecOnly		Pointer to XNvm_EfuseDecOnly structure.
 *
 * @return
 *		- XST_SUCCESS - If initialization of XNvm_EfuseDecOnly structure
 *				is successful
 *		- ErrorCode - On failure.
 *
 ******************************************************************************/
This function is used to initialize the XNvm_EfuseDecOnly structure with
user provided data and assign the same to global struture XNvm_EfuseDataAddr
to program DEC_ONLY eFuses.







@return
- XST_SUCCESS - If initialization of XNvm_EfuseDecOnly structure
is successful
- ErrorCode - On failure.
This function is used to initialize the XNvm_EfuseDecOnly structure with user provided data and assign the same to global struture XNvm_EfuseDataAddr to program DEC_ONLY eFuses . @return - XST_SUCCESS - If initialization of XNvm_EfuseDecOnly structure is successful - ErrorCode - On failure .
static int XilNvm_EfuseInitDecOnly(XNvm_EfuseDataAddr *WriteEfuse,
	XNvm_EfuseDecOnly *DecOnly)
{
	DecOnly->PrgmDecOnly = XNVM_EFUSE_WRITE_DEC_EFUSE_ONLY;
	if (DecOnly->PrgmDecOnly == TRUE) {
		Xil_DCacheFlushRange((UINTPTR)DecOnly,
			sizeof(XNvm_EfuseDecOnly));
		WriteEfuse->DecOnlyAddr = (UINTPTR)DecOnly;
	}
	return XST_SUCCESS;
}
static int XilNvm_EfuseInitDecOnly ( XNvm_EfuseDataAddr * WriteEfuse , XNvm_EfuseDecOnly * DecOnly ) { DecOnly -> PrgmDecOnly = XNVM_EFUSE_WRITE_DEC_EFUSE_ONLY ; if ( DecOnly -> PrgmDecOnly == TRUE ) { Xil_DCacheFlushRange ( ( UINTPTR ) DecOnly , sizeof ( XNvm_EfuseDecOnly ) ) ; WriteEfuse -> DecOnlyAddr = ( UINTPTR ) DecOnly ; } return XST_SUCCESS ; }
This function is used to initialize the XNvm_EfuseDecOnly structure with
 user provided data and assign the same to global struture XNvm_EfuseDataAddr
 to program DEC_ONLY eFuses.
This function is used to initialize the XNvm_EfuseDecOnly structure with user provided data and assign the same to global struture XNvm_EfuseDataAddr to program DEC_ONLY eFuses .