Yeah , I could get if i move Quickly. i am bit confused in this registers could i get clarity about this
Register 0x26: PULSE_TMLT Pulse Time Window 1 Register
4.4 Register 0x27: PULSE_LTCY Pulse Latency Timer Register
4.5 Register 0x28: PULSE_WIND Second Pulse Time Window Register
what is Relation between Registers, Help me out i am much confused.
Motion_Detection()
{
RegVal = 0xC7;
/* Set Sample Rate at 50Hz */
RegVal = CTRL_REG1_ODR_50HZ;
i2cWrite (SS_BSP_ACC_MMA8451Q_ADDRESS,CTRL_REG1, RegVal);
as per position of the Accelerometer i am enabling the X,Y,Z Axis.
any two axis i could enable not all 3.
RegVal = 0x01;
i2cWrite (MMA8451Q_ADDRESS,0x17, RegVal);
u8RegVal = 0x03;
i2cWrite (MMA8451Q_ADDRESS,0x18, RegVal);
}
Trans_Detection()
{
as per position of the Accelerometer i am enabling the X,Y,Z Axis.
any two axis i could enable not all 3.
RegVal = 0x01;
i2cWrite (MMA8451Q_ADDRESS,0x1F, RegVal);
u8RegVal = 0x03;
i2cWrite (MMA8451Q_ADDRESS,0x20, RegVal);
}