Usually the message sent to the I2C device contains the register address along with the data. Look carefully at the message format spec for your device.
MS bin chen wrote: > Hi, > I need to connect an I2C device to the telosb mote. The I2C device > has a device address, besides, it has mutiple registers. When I use the > device, some registers are needed to be writeen and read. But I found > that the I2Cpacket interface provides the command/event only with the > parameters of slave device address without register address. How can I > do to writen or read one of the registers? Thanks for your help! > Best regards, > Bob > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help