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

📄 hplcc1000m.nc

📁 无线通信的主要编程软件,是无线通信工作人员的必备工具,关天相关教程我会在后续传上.
💻 NC
字号:
/** * Dummy low level CC1000 hardware access module for TOSSIM * modified from HPLCC1000M.nc under platform/mica2 * * Author: Bor-rong Chen */module HPLCC1000M {  provides {    interface HPLCC1000;  }}implementation{  command result_t HPLCC1000.init() {    return SUCCESS;  }  //********************************************************/  // function: write                                       */  // description: accepts a 7 bit address and 8 bit data,  */  //    creates an array of ones and zeros for each, and   */  //    uses a loop counting thru the arrays to get        */  //    consistent timing for the chipcon radio control    */  //    interface.  PALE active low, followed by 7 bits    */  //    msb first of address, then lsb high for write      */  //    cycle, followed by 8 bits of data msb first.  data */  //    is clocked out on the falling edge of PCLK.        */  // Input:  7 bit address, 8 bit data                     */  //********************************************************/  async command result_t HPLCC1000.write(uint8_t addr, uint8_t data) {    return SUCCESS;  }  //********************************************************/  // function: read                                        */  // description: accepts a 7 bit address,                 */  //    creates an array of ones and zeros for each, and   */  //    uses a loop counting thru the arrays to get        */  //    consistent timing for the chipcon radio control    */  //    interface.  PALE active low, followed by 7 bits    */  //    msb first of address, then lsb low for read        */  //    cycle, followed by 8 bits of data msb first.  data */  //    is clocked in on the falling edge of PCLK.         */  // Input:  7 bit address                                 */  // Output:  8 bit data                                   */  //********************************************************/  async command uint8_t HPLCC1000.read(uint8_t addr) {    int cnt;    uint8_t din;    uint8_t data = 0;    return data;  }  async command bool HPLCC1000.GetLOCK() {    char cVal = 0;    return cVal;  }}  

⌨️ 快捷键说明

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