int libmem_write | ( | uint8_t * | dest,
|  | const uint8_t * | src,
|  | size_t | size
| ) |
  | Write a block of data using a LIBMEM driver. Parameters:
  | dest | A pointer to the address to write the block of data.
  | src | A pointer to the address to copy the block of data from.
  | size | The size of the block of data to copy in bytes.
Returns: The LIBMEM status result. This function locates the LIBMEM driver for the address pointed to by start and then calls the LIBMEM driver's write function. Note that the address range being written to cannot span multiple LIBMEM drivers. Example:
        const unsigned char buffer[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
        int res;

        res = libmem_write((uint8_t *)0x10000000, buffer, sizeof(buffer));

        if (res == LIBMEM_STATUS_SUCCESS)
          printf("libmem_write : success\n");
        else
          printf("libmem_write : failed (%d)\n", res);