TCPRAMCopyROM Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPRAMCopyROM Function
C
static void TCPRAMCopyROM(
    PTR_BASE wDest, 
    BYTE wDestType, 
    ROM BYTE* wSource, 
    WORD wLength
);
Description

This function copies data between memory mediums (PIC RAM, SPI RAM, and Ethernet buffer RAM). This function is to be used when copying from ROM.

Preconditions

TCP is initialized.

Parameters
Parameters 
Description 
wDest 
Address to write to 
wDestType 
Destination meidum (TCP_PIC_RAM, TCP_ETH_RAM, TCP_SPI_RAM) 
wSource 
Address to copy from 
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. 

This function is aliased to TCPRAMCopy on non-PIC18 platforms.

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