(...)
int i,j;
dyn_string myRegisters;
dyn_int myTypes;
dyn_dyn_anytype myData;
dyn_string regs;
dyn_dyn_anytype data;
string dpType = "HwTypeCCPCTELL1_OT";
string recipeType = "TELL1_OT_BB";
string hardware = "myTell1_OT";
dynClear(myRegisters);
myRegisters = makeDynString(
".GBE.PORT0.TXFifoHighWtrmrk",
".GBE.PORT0.TXFifoLowWtrmrk");
myTypes = makeDynInt(
FWHW_GBE,
FWHW_GBE);
fwHw_createRecipeType(recipeType,dpType,myRegisters);
DebugN("Recipe types related to hw-type: " + dpType);
DebugN(fwHw_getRecipeTypes(dpType));
DebugN("Registers belonging to recipe type: " + recipeType);
fwHw_getRecipeTypeInfo(recipeType, dpType, regs);
DebugN(regs);
dynAppend(myData, fwHw_convertHexToByte("000000ad"));
dynAppend(myData, fwHw_convertHexToByte("000000ff"));
for(i = 1; i <= dynlen(myRegisters); i++)
myRegisters[i] = hardware + myRegisters[i];
fwHw_saveRecipe(hardware, recipeType,"LAB/Configure/test1");
fwHw_saveRecipe(hardware, recipeType,"LAB/Configure/test2",myRegisters, myTypes, myData);
DebugN("Get recipe names related to hardware" + hardware);
DebugN(fwHw_getRecipes(hardware));
(...)