/* Enable or Disable High Pass Filter on CLick.  */
void LSM303DLHC_AccFilterClickCmd(uint8_t HighPassFilterClickState)
/* Enable or Disable High Pass Filter on CLick.  */
void LSM303DLHC_AccFilterClickCmd(uint8_t HighPassFilterClickState)
{
  uint8_t tmpreg = 0x00;
  tmpreg = COMPASSACCELERO_IO_Read(ACC_I2C_ADDRESS, LSM303DLHC_CTRL_REG2_A);
  tmpreg &= ~(LSM303DLHC_HPF_CLICK_ENABLE);
  tmpreg |= HighPassFilterClickState;
  COMPASSACCELERO_IO_Write(ACC_I2C_ADDRESS, LSM303DLHC_CTRL_REG2_A, tmpreg);
}