Embedded TCP/IP stack  4.7.0

◆ fnet_flash_memcpy()

fnet_return_t fnet_flash_memcpy ( FNET_COMP_PACKED_VAR void *  flash_addr,
FNET_COMP_PACKED_VAR const void *  src,
fnet_size_t  n 
)

Writes the specified data to the Flash memory.

Parameters
flash_addrAddress in the Flash to write to.
srcPointer to the buffer containing the data to write to the Flash memory.
nNumber of bytes contained in the data buffer pointed by src.
Returns
This function returns:
See also
fnet_flash_erase(), fnet_flash_flush()

This function copies the number of bytes bytes from the location pointed by src directly to the Flash memory pointed by flash_addr. If the flash write-cache is enabled (FNET_CFG_FLASH_CACHE), after last data block is copyed, application must call fnet_flash_flush(0 to be sure that all data were writen to the flash.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net