⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rs232_8h.html

📁 cypress公司PROC开发源码(cywusb6953)
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>WirelessUSB(TM) LS PRoC DVK RS232 Master Application: rs232.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>rs232.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Include file which defines the RS232 packet and application prototypes
<p>
<code>#include "<a class="el" href="cypdef_8h.html">cypdef.h</a>"</code><br>

<p>
Include dependency graph for rs232.h:<p><center><img src="rs232_8h__incl.png" border="0" usemap="#rs232.h_map" alt="Include dependency graph"></center>
<map name="rs232.h_map">
<area href="cypdef_8h.html" shape="rect" coords="8,82,80,109" alt="">
</map>

<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="rs232_8h__dep__incl.png" border="0" usemap="#rs232.hdep_map" alt="Included by dependency graph"></center>
<map name="rs232.hdep_map">
<area href="main_8c.html" shape="rect" coords="7,7,69,34" alt="">
<area href="rs232_8c.html" shape="rect" coords="93,7,157,34" alt="">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs232_8h.html#a0">app_init</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs232_8h.html#a1">app_packet_transmitted</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs232_8h.html#a2">app_tx_process</a> (void)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a0" doxytag="rs232.h::app_init"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void app_init           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Description: Initialize the RS232 control variables and sets the clear- to-send (CTS) flag.<p>
Inputs: Void<p>
Returns: Void     </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="rs232.h::app_packet_transmitted"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void app_packet_transmitted           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Description: After disabling the receive interrupt this routine will set up the right SendBuffer for the next packet and lower the clear-to-send (CTS) flag if there is a length to either RX packet. If there is no length to either one, it will enable the receive interrupt and exit.<p>
Inputs: Void<p>
Returns: Void     </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="rs232.h::app_tx_process"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> app_tx_process           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Description: Checks for a transmit packet. If there is no transmit packet, the clear-to-send flag is set and it exits. When valid input data is in the buffer, the receive interrupt is disabled. The data is loaded and a data packet is generated. Then the receive interrupt is enabled.<p>
Inputs: Void<p>
Returns:<ul>
<li>0 - no packet to send</li><li>serialRxLength - length of buffer that was loaded </li></ul>
    </td>
  </tr>
</table>
<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Cypress Semiconductor Corporation</title>

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:#1A419D;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:#1A419D;
	text-decoration:underline;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link="#1A419D" vlink="#1A419D">

<div class=Section1>

<div>

<div align=center>

<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%;border-collapse:collapse;border:none'>
 <tr>
  <td width="100%" style='width:100.0%;border:none;border-top:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt'>
  <p class=MsoNormal align=center style='text-align:center'><b><span
  style='font-size:13.0pt;font-family:Arial;color:blue'><a
  href="http://www.cypress.com/">Cypress Semiconductor Corporation</a></span></b><b><span
  style='font-size:13.0pt;font-family:Arial'>牋 </span></b><b><span
  style='font-size:16.0pt;font-family:Symbol'>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -