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

📄 tos.platform.micaz.hplcc2420m.nc.html

📁 tinyos中文手册,是根据tinyos系统自带手册翻译过来的,虽然质量不好,但是对英文不强的人还是有用的
💻 HTML
字号:
<html><head><title>Component: HPLCC2420M</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.HPLCC2420M.nc.source">tos.platform.micaz.HPLCC2420M.nc</a></b></font></td></tr></table><hr><h1 align="center">Component: HPLCC2420M</h1><p>  Low level hardware access to the CC2420  <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.interfaces.StdControl.nc.html">StdControl</a> <li>    <a href="tos.lib.CC2420Radio.HPLCC2420.nc.html">HPLCC2420</a> <li>    <a href="tos.lib.CC2420Radio.HPLCC2420RAM.nc.html">HPLCC2420RAM</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>   norace uint8_t *rambuf<li>   norace uint8_t ramlen<li>   norace uint16_t ramaddr</ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Function Index</h3></td></tr></table><ul><li>        command result_t     <a href="tos.interfaces.StdControl.nc.html#command result_t StdControl.init(void)"><b>StdControl.init</b>    </a>(void)<menu>******************************************************* function: init  set Atmega pin directions for cc2420  enable SPI master bus******************************************************</menu><p><li>        command result_t     <a href="tos.interfaces.StdControl.nc.html#command result_t StdControl.start(void)"><b>StdControl.start</b>    </a>(void)<li>        command result_t     <a href="tos.interfaces.StdControl.nc.html#command result_t StdControl.stop(void)"><b>StdControl.stop</b>    </a>(void)<li>        async command result_t     <a href="#async command result_t HPLCC2420.enableFIFOP(void)"><b>HPLCC2420.enableFIFOP</b>    </a>(void)<menu>******************************************************* function: enableFIFOP  enable CC2420 fifop interruptCC2420 is configured for FIFOP interrupt on RXFIFO > Threshwhere thresh is programmed in CC2420Const.h CP_IOCFGO reg. </menu><p><li>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420.nc.html#async command result_t HPLCC2420.disableFIFOP(void)"><b>HPLCC2420.disableFIFOP</b>    </a>(void)<menu>******************************************************* function: disbleFIFOP  disable CC2420 fifop interrupt******************************************************</menu><p><li>        async command uint8_t     <a href="tos.lib.CC2420Radio.HPLCC2420.nc.html#async command uint8_t HPLCC2420.cmd(uint8_t addr)"><b>HPLCC2420.cmd</b>    </a>(uint8_t addr)<menu>******************************************************* function: cmd  send a command strobe******************************************************</menu><p><li>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420.nc.html#async command result_t HPLCC2420.write(uint8_t addr, uint16_t data)"><b>HPLCC2420.write</b>    </a>(uint8_t addr, uint16_t data)<menu>************************************************************************ function: write                                          - accepts a 6 bit address and 16 bit data,    - write addr byte to SPI while reading status   - if cmd strobe then just write addr, read status and exit   - else write 16 bit data   - SPI bus runs at ~ 3.6Mhz clock (2.2 usec/byte xfr)         NEED TO CHK IS SPI BUS IN USE?????????????????????????????  THIS ROUTINE IS POLLING SPI CHANGE ???????????????????????? ******************************************************</menu><p><li>        async command uint16_t     <a href="tos.lib.CC2420Radio.HPLCC2420.nc.html#async command uint16_t HPLCC2420.read(uint8_t addr)"><b>HPLCC2420.read</b>    </a>(uint8_t addr)<menu>************************************************************************** function: read                                           description: accepts a 6 bit address,    write addr byte to SPI while reading status    read status, followed by 2 data bytes Input:  6 bit address                                  Output: 16 bit data                                   **************************************************************************</menu><p><li>        void __attribute((signal))   <b>__vector_7</b>(void)<li>        task void <b>signalRAMRd</b>(void)<li>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420RAM.nc.html#async command result_t HPLCC2420RAM.read(uint16_t addr, uint8_t length, uint8_t *buffer)"><b>HPLCC2420RAM.read</b>    </a>(uint16_t addr, uint8_t length, uint8_t *buffer)<menu> Read data from CC2420 RAM <table border="0" cellpadding="0"><tr valign="top"><td><b>Returns:</b></td><td> SUCCESS if the request was accepted</td></tr></table></menu><p><li>        task void <b>signalRAMWr</b>(void)<li>        async command result_t     <a href="#async command result_t HPLCC2420RAM.write(uint16_t addr, uint8_t length, uint8_t *buffer)"><b>HPLCC2420RAM.write</b>    </a>(uint16_t addr, uint8_t length, uint8_t *buffer)<menu> Write databuffer to CC2420 RAM.</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="async command result_t HPLCC2420.enableFIFOP(void)"></a>        <h4>HPLCC2420.enableFIFOP</h4>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420.nc.html#async command result_t HPLCC2420.enableFIFOP(void)"><b>HPLCC2420.enableFIFOP</b>    </a>(void)<P><menu>******************************************************* function: enableFIFOP  enable CC2420 fifop interruptCC2420 is configured for FIFOP interrupt on RXFIFO > Threshwhere thresh is programmed in CC2420Const.h CP_IOCFGO reg.  Threshold is 127 asof 15apr04 (AlmostFull)FIFOP is asserted as long as RXFIFO>ThresholdFIFOP is active LOW******************************************************</menu><hr>    <a name="async command result_t HPLCC2420RAM.write(uint16_t addr, uint8_t length, uint8_t *buffer)"></a>        <h4>HPLCC2420RAM.write</h4>        async command result_t     <a href="tos.lib.CC2420Radio.HPLCC2420RAM.nc.html#async command result_t HPLCC2420RAM.write(uint16_t addr, uint8_t length, uint8_t *buffer)"><b>HPLCC2420RAM.write</b>    </a>(uint16_t addr, uint8_t length, uint8_t *buffer)<P><menu> Write databuffer to CC2420 RAM. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>addr</b> -  RAM Address (9 bits) </p><p STYLE="text-indent: -1cm"><b>length</b> -  Nof bytes to write </p><p STYLE="text-indent: -1cm"><b>buffer</b> -  Pointer to data buffer </menu></td></tr><tr valign="top"><td><b>Returns:</b></td><td> SUCCESS if the request was accepted</td></tr></table></menu>

⌨️ 快捷键说明

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