게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
temp doc(1)
게시물ID : voca_4487짧은주소 복사하기
작성자 : 간지늅늅이
추천 : 0
조회수 : 792회
댓글수 : 0개
등록시간 : 2012/06/05 15:38:16
oscilloscope.h

enum{
NREADINGS = 1,
DEFAULT_INTERVAL=256,
AM_OSCILLOSCOPE = 147
};

typedef nx_struct oscilloscope {
  nx_uint16_t version; 
  nx_uint16_t interval;
  nx_uint16_t id;
  nx_uint16_t count;
  nx_uint16_t readings[NREADINGS];
} oscilloscope_t;

-----------------------

LightToRadioApp.nc

#include "Oscilloscope.h"

configuration LightToRadioAppC{
}

implementation{
components MainC, LedsC;
components LightToRadioC as App;
components new TimerMilliC() as Timer0;
components ActiveMessageC;
components new AMSenderC(AM_OSCILLOSCOPE);
components new LightToVoltageC() as Sensor;

App.Boot -> MainC;
App.Leds -> LedsC;
App.Timer0 -> Timer0;
App.SplitControl -> ActiveMessageC;
App.Packet -> AMSenderC;
App.AMSend -> AMSenderC;
App.Read-> Sensor;
}
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호