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

📄 tos.platform.micaz.hplcc2420fifom.nc.html

📁 tinyos中文手册,是根据tinyos系统自带手册翻译过来的,虽然质量不好,但是对英文不强的人还是有用的
💻 HTML
字号:
<html><head><title>Component: HPLCC2420FIFOM</title></head><body><table BORDER="0" CELLPADDING="3" CELLSPACING="0" width="100%"><tr><td><font size="-1"><b><font color="blue"><a href="apps_p.html">Apps</a></font></b>&nbsp;&nbsp;&nbsp;<b><a href="components_p.html">Components</a></b>&nbsp;&nbsp;&nbsp;<b><a href="interfaces_p.html">Interfaces</a></b>&nbsp;&nbsp;&nbsp;<b><a href="allfiles_p.html">All Files</a></b>&nbsp;&nbsp;&nbsp;<b><a href="index.html">Source Tree</a></b>&nbsp;&nbsp;&nbsp;</font></td><td align="right"><font size="-1">source: <b><a href="tos.platform.micaz.HPLCC2420FIFOM.nc.source">tos.platform.micaz.HPLCC2420FIFOM.nc</a></b></font></td></tr></table><hr><h1 align="center">Component: HPLCC2420FIFOM</h1><p>  Low level hardware access to the CC2420 Rx,Tx fifos  <table border="0" cellpadding="0"><tr valign="top"><td><b>Author:</b><td> Alan Broad </td></tr></table><p><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Provided Interfaces</h3></td></tr></table><ul><li>    <a href="tos.lib.CC2420Radio.HPLCC2420FIFO.nc.html">HPLCC2420FIFO</a> </ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Variables</h3></td></tr></table><ul><li>   norace bool bSpiAvail<li>   uint8_t *txbuf<li>   uint8_t *rxbuf<li>   uint8_t txlength<li>   uint8_t rxlength</ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Function Index</h3></td></tr></table><ul><li>        task void <b>signalTXdone</b>(void)<li>        task void     <a href="#task void signalRXdone(void)"><b>signalRXdone</b>    </a>(void)<menu>Returns data buffer from RXFIFO and number of bytes read.</menu><p><li>        async command result_t     <a href="#async command result_t HPLCC2420FIFO.writeTXFIFO(uint8_t len, uint8_t *msg)"><b>HPLCC2420FIFO.writeTXFIFO</b>    </a>(uint8_t len, uint8_t *msg)<menu> Writes a series of bytes to the transmit FIFO.</menu><p><li>        async command result_t     <a href="#async command result_t HPLCC2420FIFO.readRXFIFO(uint8_t len, uint8_t *msg)"><b>HPLCC2420FIFO.readRXFIFO</b>    </a>(uint8_t len, uint8_t *msg)<menu> Read from the RX FIFO queue. </menu><p></ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Function Descriptions</h3></td></tr></table>    <a name="task void signalRXdone(void)"></a>        <h4>signalRXdone</h4>        task void <b>signalRXdone</b>(void)<P><menu>Returns data buffer from RXFIFO and number of bytes read. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>rxlength</b> -  Nofbytes read from RXFIFO (including 1st byte which is usually length</p><p STYLE="text-indent: -1cm"><b>rxbuf</b> -  pointer to buffer********************************************************************************</menu></menu></td></tr></table></menu><hr>    <a name="async command result_t HPLCC2420FIFO.writeTXFIFO(uint8_t len, uint8_t *msg)"></a>        <h4>HPLCC2420FIFO.writeTXFIFO</h4>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420FIFO.nc.html#async command result_t HPLCC2420FIFO.writeTXFIFO(uint8_t len, uint8_t *msg)"><b>HPLCC2420FIFO.writeTXFIFO</b>    </a>(uint8_t len, uint8_t *msg)<P><menu> Writes a series of bytes to the transmit FIFO. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>length</b> -  nof bytes be written </p><p STYLE="text-indent: -1cm"><b>msg</b> -  pointer to first byte of data </menu></td></tr><tr valign="top"><td><b>Returns:</b></td><td> SUCCESS if the bus is free to write to the FIFO</td></tr></table></menu><hr>    <a name="async command result_t HPLCC2420FIFO.readRXFIFO(uint8_t len, uint8_t *msg)"></a>        <h4>HPLCC2420FIFO.readRXFIFO</h4>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420FIFO.nc.html#async command result_t HPLCC2420FIFO.readRXFIFO(uint8_t len, uint8_t *msg)"><b>HPLCC2420FIFO.readRXFIFO</b>    </a>(uint8_t len, uint8_t *msg)<P><menu> Read from the RX FIFO queue.  Will read bytes from the queue until the length is reached (determined by the first byte read). RXFIFODone() is signalled when all bytes have been read or the end of the packet has been reached. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>length</b> -  number of bytes requested from the FIFO </p><p STYLE="text-indent: -1cm"><b>data</b> -  buffer bytes should be placed into </menu></td></tr><tr valign="top"><td><b>Returns:</b></td><td> SUCCESS if the bus is free to read from the FIFO</td></tr></table></menu>

⌨️ 快捷键说明

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