File: ch08s09.html

package info (click to toggle)
open-plc-utils 0.0.6%2Bgit20230504.1ba7d5a0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,212 kB
  • sloc: ansic: 60,875; xml: 16,179; sh: 1,216; makefile: 698
file content (27 lines) | stat: -rw-r--r-- 5,291 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Support Functions</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch08.html" title="Chapter 8.  Serial Drivers"><link rel="prev" href="ch08s08.html" title="DMA Functions"><link rel="next" href="ch08s10.html" title="Kernel Functions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
				Support Functions
				</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s08.html">Prev</a> </td><th width="60%" align="center">Chapter 8. 
		Serial Drivers
		</th><td width="20%" align="right"> <a accesskey="n" href="ch08s10.html">Next</a></td></tr></table><hr></div><div class="section" title="Support Functions"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="qcaspi7"></a>
				Support Functions
				</h2></div></div></div><div class="section" title="QcaFrmCreateHeader"><div class="titlepage"><div><div><h3 class="title"><a name="QcaFrmCreateHeader"></a>
				QcaFrmCreateHeader
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">uint32_t <b class="fsfunc">QcaFrmCreateHeader</b>(</code></td><td><var class="pdparam">buffer</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">length</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>uint8_t * <var class="pdparam">buffer</var></code>;<br><code>uint16_t <var class="pdparam">length</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Encode buffer with the required SPI header and overall frame length.
				</p></div><div class="section" title="QcaFrmCreateFooter"><div class="titlepage"><div><div><h3 class="title"><a name="QcaFrmCreateFooter"></a>
				QcaFrmCreateFooter
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">uint32_t <b class="fsfunc">QcaFrmCreateFooter</b>(</code></td><td><var class="pdparam">buffer</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>uint8_t * <var class="pdparam">buffer</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Encode buffer with the required SPI footer. 
				</p></div><div class="section" title="QcaFrmFsmInit"><div class="titlepage"><div><div><h3 class="title"><a name="QcaFrmFsmInit"></a>
				QcaFrmFsmInit
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">QcaFrmFsmInit</b>(</code></td><td><var class="pdparam">frmHdl</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>QcaFrmHdl * <var class="pdparam">frmHdl</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Initialize the state machine used to decode the incoming QCA7000 byte stream.
				</p></div><div class="section" title="QcaFrmFsmDecode"><div class="titlepage"><div><div><h3 class="title"><a name="QcaFrmFsmDecode"></a>
				QcaFrmFsmDecode
				</h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">uint32_t <b class="fsfunc">QcaFrmFsmDecode</b>(</code></td><td><var class="pdparam">frmHdl</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">buffer</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">length</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">bytevalue</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>QcaFrmHdl * <var class="pdparam">frmHdl</var></code>;<br><code>uint8_t * <var class="pdparam">buffer</var></code>;<br><code>uint16_t <var class="pdparam">length</var></code>;<br><code>uint8_t <var class="pdparam">bytevalue</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
				Feeds incoming bytes into the state machine and breaks the stream into individual frames. Frames are passed to the Linux kernel.
				</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s08.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch08.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch08s10.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
				DMA Functions
				 </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
				Kernel Functions
				</td></tr></table></div></body></html>