TCPRAMCopy Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPRAMCopy Function
C
static void TCPRAMCopy(
    PTR_BASE wDest, 
    BYTE vDestType, 
    PTR_BASE wSource, 
    BYTE vSourceType, 
    WORD wLength
);
Description

This function copies data between memory mediums (PIC RAM, SPI RAM, and Ethernet buffer RAM).

Preconditions

TCP is initialized.

Parameters
Parameters 
Description 
ptrDest 
Address to write to 
vDestType 
Destination meidum (TCP_PIC_RAM, TCP_ETH_RAM, TCP_SPI_RAM) 
ptrSource 
Address to copy from 
vSourceType 
Source medium (TCP_PIC_RAM, TCP_ETH_RAM, or TCP_SPI_RAM) 
wLength 
Number of bytes to copy 
Returns

None

Remarks

Copying to a destination region that overlaps with the source address is supported only if the destination start address is at a lower memory address (closer to 0x0000) than the source pointer. However, if they do overlap there must be at least 4 bytes of non-overlap to ensure correct results due to hardware DMA requirements.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.