.

meiSynqNetFlashConfigSet

Declaration

 
long meiSynqNetFlashConfigSet(MEISynqNet          synqNet,
                              MEIFlash            *flash,
                              MEISynqNetConfig    *config);
  Required Header: stdmei.h

Description

meiSynqNetFlashConfigSet gets a SynqNet object's flash configuration and writes it in the structure pointed to by config.

NOTE: The network topology must first be saved before changing MEISynqNetConfig.cableLength[n] values in Flash memory. These values will also be cleared when network topology is cleared using meiSynqNetFlashTopologyClear(...).

 
synqNet a handle to a SynqNet object
*flash

flash is either an MEIFlash handle or MPIHandleVOID. If flash is MPIHandleVOID, an MEIFlash object will be created and deleted internally. Using MPIHandleVOID is recommended, as it simplifies code.

If flash is a valid MEIFlash handle, then the MEIFlash object cache will be updated, but the actual write to controller flash will not occur. Use meiFlashMemoryFromFileType(...) to prompt the actual write to flash.

*config pointer to a locally instantiated MEISynqNetConfig structure that has been initialized by performing a call to meiSynqNetFlashConfigGet(...) or meiSynqNetConfigGet(...).
   
 
Return Values
MPIMessageOK  
MPIMessageARG_INVALID  
MPIMessagePARAM_INVALID  
MEISynqNetMessageRING_ONLY  
MEIFlashMessageNETWORK_TOPOLOGY_ERROR  

See Also

MEISynqNetConfig | MEIFlash | meiSynqNetFlashConfigGet | meiSynqNetConfigGet | meiSynqNetFlashTopologySave | meiSynqNetFlashTopologyClear

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2010 Motion Engineering