Sorry for the delayed response, I'm on vacations :) I believe it's set up that way because in databuff[0] the address of the first register is passed (0x1D) and from there the next registers (0x1E, 0x1F...) are configured with the following corresponding values stated in databuf[1-18].
Regards, happy holidays! Antonio. On Tue, 2011-12-27 at 21:02 +0100, antonio rosa wrote: > Hi to all, > > I'm using the driver ADLX345 provides by Zolertia and I have a > question. Them you granted the resource I2C and you are in the case > ADXLCMD_START, > why you fill the two first positions of databuf with a value that > refering to the same register THRES HOLD TAP (I don't know if the > databuf[1] is for THRESH_TAP or OffsetX). Can you help me, please ? > databuf[0] = ADXL345_THRESH_TAP; > databuf[1] = 0x40; //ADXL345_THRESH_TAP > > > > > > > > > > > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
