PreviousNext
copyBufferINFO2COM
Help > OS functions > Buffers > copyBufferINFO2COM

Function

 

Copy bufferINFO to  bufferCOM

Purpose

 

Data transfer between buffers

Syntax

 

void copyBufferINFO2COM()

Parameters

 

  –

Return value

 

  –

Output values

 

  –

Preconditions

 

Offsets memoryOffsetFrom and memoryOffsetTo are applied (see above).

Remarks

 

     If memoryOffsetFrom = 0, memoryOffsetTo = 0 and memoryLimit = 0, complete 64 B is copied.

     See Example E06–RAM.

Side effects

 

  –

See also

 

clearBufferINFO, copyBufferINFO2RF, copyBufferRF2COM, copyBufferRF2INFO, copyBufferCOM2RF, copyBufferCOM2INFO, compareBufferINFO2RF, copyMemoryBlock

Example 1

 

copyBufferINFO2COM();

Example 2

 

memoryOffsetFrom = 0;     // bufferINFO to be copied

memoryOffsetTo = 10;      // to  bufferCOM starting from bufferCOM[10].

copyBufferINFO2COM;       // Just first 54 B is copied (until bufferCOM full).

Example 3

 

memoryOffsetFrom = 0;     // bufferINFO to be copied

memoryOffsetTo = 10;      // to  bufferCOM starting from bufferCOM[10].

memoryLimit = 20;

copyBufferINFO2COM;       // Just first 20 B is copied (due to memoryLimit).