Hello ... No, I could not use I2CPacket and found no code guide. what you
could do is implement the code for I2C from HPL.
Good luck ...
2010/10/8 You Lizhao youlizhao2...@gmail.com
Hi, sorry if it bothers you. I find your email from TinyOS-Maillist, and i
have encountered the same problem
It is fine. Thanks!
In fact, i notice that Msp430I2CC.nc and Msp430I2CP.nc can be used. However,
i still can not figure out how to use them. From the maillist, i can not
find useful codes for implementing I2C in T2 with telosb(msp430).
Regards,
Lizhao
2010/10/8 Ronald Eliseo Reyes López
Hi MS.
Thanks for answer...
The T2 impl is not like the T1 version, more explicitly... I want to use the
Msp430I2CC.nc configuration that provide the I2CPacket.nc, this interface
use the header file I2C.h where there are defined this flags:
#ifndef _I2C_H
#define _I2C_H
typedef struct { }
Ok, not much help then...
It looks like you may want to use I2C_START,
and ACK is the default. The ADDR_8BITS_FLAG
was a bad idea that seems to have been corrected.
I expect that you would provide the actual
I2C bus address and the system will shift it
and add the read/write bit as needed.
But
If the T2 impl is like the T1 version there are four bits
you can send to I2C read/write, which are conveniently
not defined or described anywhere:
/*
** I2CPacket read/write command flags,
** defined in I2CPacketM.nc but not in a header file...
*/
#define STOP_FLAG 0x01 //send stop/end
-- Forwarded message --
From: Philip Levis p...@cs.stanford.edu
Date: 2010/5/17
Subject: Re: Help with I2CPacket.nc
To: Ronald Eliseo Reyes López reyesronal...@gmail.com
Cc: pbuonado...@archrock.com, j...@archrock.com
Please send questions to tinyos-help. Thanks!
Phil
On May