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_Private_Functions
[STM32F3_DISCOVERY_LSM303DLHC]
Functions | |
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. | |
static void | LSM303DLHC_LowLevel_Init (void) |
Initializes the low level interface used to drive the LSM303DLHC. |
Function Documentation
void LSM303DLHC_AccClickITConfig | ( | uint8_t | ITClick, |
FunctionalState | NewState | ||
) |
INT1 interrupt config.
- Parameters:
-
ITCombination,: Or or And combination ITAxes: axes to be enabled NewState: Enable or Disable
- Return values:
-
None
Definition at line 342 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccFilterClickCmd | ( | uint8_t | HighPassFilterClickState ) |
Enable or Disable High Pass Filter on CLick.
- Parameters:
-
HighPassFilterState,: new state of the High Pass Filter feature. This parameter can be: - : LSM303DLHC_HighPassFilter_DISABLE
- : LSM303DLHC_HighPassFilter_ENABLE
- Return values:
-
None
Definition at line 190 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccFilterCmd | ( | uint8_t | HighPassFilterState ) |
Enable or Disable High Pass Filter.
- Parameters:
-
HighPassFilterState,: new state of the High Pass Filter feature. This parameter can be: - : LSM303DLHC_HighPassFilter_DISABLE
- : LSM303DLHC_HighPassFilter_ENABLE
- Return values:
-
None
Definition at line 167 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccFilterConfig | ( | LSM303DLHCAcc_FilterConfigTypeDef * | LSM303DLHC_FilterStruct ) |
Set High Pass Filter Modality.
- Parameters:
-
LSM303DLHC_FilterStruct,: pointer to a LSM303DLHC_FilterConfigTypeDef structure that contains the configuration setting for the LSM303DLHC.
- Return values:
-
None
Definition at line 140 of file stm32f3_discovery_lsm303dlhc.c.
uint8_t LSM303DLHC_AccGetDataStatus | ( | void | ) |
Get status for Acc LSM303DLHC data.
- Parameters:
-
None
- Return values:
-
Data status in a LSM303DLHC Data register
Definition at line 368 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccInit | ( | LSM303DLHCAcc_InitTypeDef * | LSM303DLHC_InitStruct ) |
Set LSM303DLHC Initialization.
- Parameters:
-
LSM303DLHC_InitStruct,: pointer to a LSM303DLHC_InitTypeDef structure that contains the configuration setting for the LSM303DLHC.
- Return values:
-
None
Definition at line 94 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccINT1InterruptConfig | ( | uint8_t | ITCombination, |
uint8_t | ITAxes, | ||
FunctionalState | NewState | ||
) |
INT1 interrupt config.
- Parameters:
-
ITCombination,: Or or And combination ITAxes: axes to be enabled NewState: Enable or Disable
- Return values:
-
None
Definition at line 286 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccINT2InterruptConfig | ( | uint8_t | ITCombination, |
uint8_t | ITAxes, | ||
FunctionalState | NewState | ||
) |
INT1 interrupt config.
- Parameters:
-
ITCombination,: Or or And combination ITAxes: axes to be enabled NewState: Enable or Disable
- Return values:
-
None
Definition at line 314 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccIT1Config | ( | uint8_t | LSM303DLHC_IT, |
FunctionalState | NewState | ||
) |
Set LSM303DLHC Interrupt1 configuration.
- Parameters:
-
LSM303DLHC_IT,: specifies the LSM303DLHC interrupt source to be enabled. This parameter can be any combination of the following values: - LSM303DLHC_IT1_CLICK
- LSM303DLHC_IT1_AOI1
- LSM303DLHC_IT1_AOI2
- LSM303DLHC_IT1_DRY1
- LSM303DLHC_IT1_WTM
- LSM303DLHC_IT1_OVERRUN
NewState,: new state of the selected LSM303DLHC interrupts. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 219 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccIT2Config | ( | uint8_t | LSM303DLHC_IT, |
FunctionalState | NewState | ||
) |
Set LSM303DLHC Interrupt2 configuration.
- Parameters:
-
LSM303DLHC_IT,: specifies the LSM303DLHC interrupt source to be enabled. This parameter can be any combination of the following values: - LSM303DLHC_IT2_CLICK2
- LSM303DLHC_IT2_INT1
- LSM303DLHC_IT2_INT2
- LSM303DLHC_IT2_BOOT
- LSM303DLHC_IT2_ACT
- LSM303DLHC_IT2_HLACTIVE
NewState,: new state of the selected LSM303DLHC interrupts. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 256 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_AccRebootCmd | ( | void | ) |
Reboot memory content of LSM303DLHC.
- Parameters:
-
None
- Return values:
-
None
Definition at line 120 of file stm32f3_discovery_lsm303dlhc.c.
static void LSM303DLHC_LowLevel_Init | ( | void | ) | [static] |
Initializes the low level interface used to drive the LSM303DLHC.
- Parameters:
-
None
- Return values:
-
None
Definition at line 568 of file stm32f3_discovery_lsm303dlhc.c.
uint8_t LSM303DLHC_MagGetDataStatus | ( | void | ) |
Get status for Mag LSM303DLHC data.
- Parameters:
-
None
- Return values:
-
Data status in a LSM303DLHC Data register
Definition at line 415 of file stm32f3_discovery_lsm303dlhc.c.
void LSM303DLHC_MagInit | ( | LSM303DLHCMag_InitTypeDef * | LSM303DLHC_InitStruct ) |
Set LSM303DLHC Mag Initialization.
- Parameters:
-
LSM303DLHC_InitStruct,: pointer to a LSM303DLHC_MagInitTypeDef structure that contains the configuration setting for the LSM303DLHC.
- Return values:
-
None
Definition at line 384 of file stm32f3_discovery_lsm303dlhc.c.
uint16_t LSM303DLHC_Read | ( | uint8_t | DeviceAddr, |
uint8_t | RegAddr, | ||
uint8_t * | pBuffer, | ||
uint16_t | NumByteToRead | ||
) |
Reads a block of data from the LSM303DLHC.
- Parameters:
-
DeviceAddr : specifies the slave address to be programmed(ACC_I2C_ADDRESS or MAG_I2C_ADDRESS). RegAddr : specifies the LSM303DLHC internal address register to read from. pBuffer : pointer to the buffer that receives the data read from the LSM303DLH. NumByteToRead : number of bytes to read from the LSM303DLH ( NumByteToRead >1 only for the Mgnetometer readinf).
- Return values:
-
LSM303DLHC register value
Definition at line 495 of file stm32f3_discovery_lsm303dlhc.c.
uint32_t LSM303DLHC_TIMEOUT_UserCallback | ( | void | ) |
Basic management of the timeout situation.
- Parameters:
-
None.
- Return values:
-
None.
Definition at line 658 of file stm32f3_discovery_lsm303dlhc.c.
uint16_t LSM303DLHC_Write | ( | uint8_t | DeviceAddr, |
uint8_t | RegAddr, | ||
uint8_t * | pBuffer | ||
) |
Writes one byte to the LSM303DLHC.
- Parameters:
-
DeviceAddr : specifies the slave address to be programmed. RegAddr : specifies the LSM303DLHC register to be written. pBuffer : pointer to the buffer containing the data to be written to the LSM303DLH.
- Return values:
-
LSM303DLHC Status
Definition at line 432 of file stm32f3_discovery_lsm303dlhc.c.
Generated on Tue Jul 12 2022 17:34:46 by
