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

📄 isl29001readerc.nc

📁 tinyos2.0版本驱动
💻 NC
字号:
/**
 * 本程序为ISL29001传感器的接口组件
 * @author Majy & Lizm & Dupl
 * @date 2008/09/27
 */

#include "I2C.h"

configuration ISL29001ReaderC
{
  provides
  {
    interface Read<uint16_t> as ISL29001Reader;
  }
}

implementation
{
  
  components ISL29001ReaderP;
  ISL29001Reader = ISL29001ReaderP.ISLReader;
  
  components new Atm128I2CMasterC();
  components HplAtm128GeneralIOC;
  ISL29001ReaderP.I2CPacket -> Atm128I2CMasterC.I2CPacket;
  ISL29001ReaderP.I2CResource -> Atm128I2CMasterC.Resource;
  ISL29001ReaderP.PD_Enable -> HplAtm128GeneralIOC.PortA3;
	
}

⌨️ 快捷键说明

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