/* Reads a number of bytes in the internal RWWEE Flash.  */
int32_t _rww_flash_read(struct _flash_device *const device, const uint32_t src_addr, uint8_t *buffer, uint32_t length)
/* Reads a number of bytes in the internal RWWEE Flash.  */
int32_t _rww_flash_read(struct _flash_device *const device, const uint32_t src_addr, uint8_t *buffer, uint32_t length)
{
	if (!_is_valid_rww_flash_address(src_addr) || !_is_valid_rww_flash_address(src_addr + length)) {
		return ERR_BAD_ADDRESS;
	}
	_flash_read(device, src_addr, buffer, length);
	return ERR_NONE;
}