DEMO 5 - Recipes: Applying recipes to hardware

A simple example to illustrate how data is requested from a recipe and applied to hardware

  (...)


  
dyn_string regs;  
dyn_dyn_anytype data;   
    
string hardware = "myTell1_OT"; 
 
  
  
  
//  ********applying recipe to hardware*******  
 
dynClear(regs); 
  
DebugN("Data of recipe 'LAB/Configure/test1'");   
fwHw_getRecipe(hardware, "LAB/Configure/test1", regs, data);   
DebugN(hardware);  
DebugN(regs);   
DebugN(fwHw_convertByteToHex(data[1]));   
DebugN(fwHw_convertByteToHex(data[2]));    

//after retrieving the data, the recipes can be applied to hardware  
fwHw_applyRecipe(hardware, regs, data);  


 (...)

Generated on Mon Jan 28 10:40:20 2008 for FwHw by  doxygen 1.4.7