1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MI_CpuSend*</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MI_CpuSend* <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/mi.h&gt;</CODE><BR> <BR> <CODE>void MI_CpuSend32( const void* src, volatile void* dest, u32 size );</CODE><br> <CODE>void MI_CpuSend16( const void* src, volatile void* dest, u32 size );</CODE><br> <CODE>void MI_CpuSendFast( const void* src, volatile void* dest, u32 size );</CODE></dd>
20</dl>
21<h2>Arguments</h2>
22<TABLE border="1" width="100%">
23  <TBODY>
24    <TR>
25<TD width="13%"><EM><STRONG>src</STRONG></EM></TD>
26<TD width="87%">The transfer source address.</TD>
27    </TR>
28    <TR>
29<TD width="13%"><EM><STRONG>dest</STRONG></EM></TD>
30<TD width="87%">The transfer destination address.</TD>
31    </TR>
32    <TR>
33<TD><EM><STRONG>size</STRONG></EM></TD>
34<TD>Transfer size.
35      </TD>
36    </TR>
37  </TBODY>
38</TABLE>
39
40<h2>Return Values</h2>
41<p>None.</p>
42
43<H2>Description</H2>
44<P>Uses the CPU to transfer data to the same address. The function does not change the address of the transfer destination. It increments only the transfer origin address, and repeatedly transfers contiguous region data to the same address.</P>
45<P><CODE>MI_CpuCopy16()</CODE> transfers in 16-bit units. Both the transfer source address and the transfer destination address must be 2-byte aligned.</P>
46<P><CODE>MI_CpuCopy32()</CODE> transfers in 32-bit units. Both the transfer source address and the transfer destination address must be 4-byte aligned.</P>
47<P><CODE>MI_CpuSendFast()</CODE> copies at high speed in 32-bit units. Both the transfer source address and the transfer destination address must be 4-byte aligned. The transfer size is an integral multiple of 4 bytes. It does not have to be an integral multiple of 32 bytes. After transferring in 32-byte units, the fractional part is handled by performing the same process as <CODE>MI_CpuSend32()</CODE>.</P>
48<h2>Internal Operation</h2>
49<P>Processing is done by the CPU only and does not use the DMA controller. System calls are not used. </P>
50
51<h2>See Also</h2>
52<p><CODE><A href="MI_CpuCopy.html">MI_CpuCopy*</A><BR> <A href="MI_CpuFill.html">MI_CPUFill*</A><BR> <A href="MI_CpuClear.html">MI_CpuClear*</A><BR> <A href="MI_CpuRecv.html">MI_CpuRecv*</A><BR> <A href="../dma/MI_DmaSend.html">MI_DmaSend*</A></CODE></p>
53
54<H2>Revision History</H2>
55<P>2007/12/26 Added the <CODE>MI_CpuSendFast</CODE> function.<BR>2004/03/29 Added a note saying that system calls are not used.<CODE> 2004/01/30 Initial version.</P>
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58