[Tinyos-help] Wireless two channels sensor

2007-03-19 Thread Nicolas de Vicq
Hello, I'm working on a wireless sensor. My sensor has two channels connected to the 12 bits ADCs A0 and A1 of the MSP430. I have to write a driver for read the data on the two channels at 1Khz and to write it in a data frame send to the radio buffer. My idea is to organize the data like

Re: [Tinyos-help] Wireless two channels sensor

2007-03-19 Thread Michael Schippling
Look into how mig is used in demo apps like Oscilloscope and SimpleCmdMsg to convert a .h struct definition into Java classes that can be used on the host side. There seem to be a lot of bit manipulation features in the mig generated code which may help with your un-packing. On the TOS side,