Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
stm32f3_discovery_lsm303dlhc.c File Reference
This file provides a set of functions needed to manage the lsm303dlhc MEMS accelerometer available on STM32F3-Discovery Kit. More...
Go to the source code of this file.
Functions | |
static void | LSM303DLHC_LowLevel_Init (void) |
Initializes the low level interface used to drive the LSM303DLHC. | |
void | LSM303DLHC_AccInit (LSM303DLHCAcc_InitTypeDef *LSM303DLHC_InitStruct) |
Set LSM303DLHC Initialization. | |
void | LSM303DLHC_AccRebootCmd (void) |
Reboot memory content of LSM303DLHC. | |
void | LSM303DLHC_AccFilterConfig (LSM303DLHCAcc_FilterConfigTypeDef *LSM303DLHC_FilterStruct) |
Set High Pass Filter Modality. | |
void | LSM303DLHC_AccFilterCmd (uint8_t HighPassFilterState) |
Enable or Disable High Pass Filter. | |
void | LSM303DLHC_AccFilterClickCmd (uint8_t HighPassFilterClickState) |
Enable or Disable High Pass Filter on CLick. | |
void | LSM303DLHC_AccIT1Config (uint8_t LSM303DLHC_IT, FunctionalState NewState) |
Set LSM303DLHC Interrupt1 configuration. | |
void | LSM303DLHC_AccIT2Config (uint8_t LSM303DLHC_IT, FunctionalState NewState) |
Set LSM303DLHC Interrupt2 configuration. | |
void | LSM303DLHC_AccINT1InterruptConfig (uint8_t ITCombination, uint8_t ITAxes, FunctionalState NewState) |
INT1 interrupt config. | |
void | LSM303DLHC_AccINT2InterruptConfig (uint8_t ITCombination, uint8_t ITAxes, FunctionalState NewState) |
INT1 interrupt config. | |
void | LSM303DLHC_AccClickITConfig (uint8_t ITClick, FunctionalState NewState) |
INT1 interrupt config. | |
uint8_t | LSM303DLHC_AccGetDataStatus (void) |
Get status for Acc LSM303DLHC data. | |
void | LSM303DLHC_MagInit (LSM303DLHCMag_InitTypeDef *LSM303DLHC_InitStruct) |
Set LSM303DLHC Mag Initialization. | |
uint8_t | LSM303DLHC_MagGetDataStatus (void) |
Get status for Mag LSM303DLHC data. | |
uint16_t | LSM303DLHC_Write (uint8_t DeviceAddr, uint8_t RegAddr, uint8_t *pBuffer) |
Writes one byte to the LSM303DLHC. | |
uint16_t | LSM303DLHC_Read (uint8_t DeviceAddr, uint8_t RegAddr, uint8_t *pBuffer, uint16_t NumByteToRead) |
Reads a block of data from the LSM303DLHC. | |
uint32_t | LSM303DLHC_TIMEOUT_UserCallback (void) |
Basic management of the timeout situation. |
Detailed Description
This file provides a set of functions needed to manage the lsm303dlhc MEMS accelerometer available on STM32F3-Discovery Kit.
- Version:
- V1.1.0
- Date:
- 20-September-2012
- Attention:
© COPYRIGHT 2012 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm32f3_discovery_lsm303dlhc.c.
Generated on Tue Jul 12 2022 17:34:45 by
