Synopsis
typedef int (*libmem_driver_write_fn_t)(libmem_driver_handle_t *h, uint8_t *dest, const uint8_t *src, size_t size);
Description

libmem_driver_write_fn_t is a function pointer to a LIBMEM driver's write function.

h — A pointer to the handle of the LIBMEM driver.

dest — A pointer to the memory address in memory range handled by driver to write data to.

src — A pointer to the memory address to read data from.

size — The number of bytes to write.

libmem_driver_write_fn_t returns — The LIBMEM status result.

The driver's write function copies data from the memory address pointed to by src to the memory address handled by the LIBMEM driver pointed to by dest.

If this operation is not required the function should return LIBMEM_STATUS_SUCCESS.