STM32L476G-Discovery BSP User Manual
|
Functions | |
void | ACCELERO_IO_DeInit (void) |
De-Configures COMPASS/ACCELEROMETER io interface. | |
void | MAGNETO_IO_DeInit (void) |
de-Configures COMPASS/MAGNETO SPI interface. | |
COMPASS_StatusTypeDef | BSP_COMPASS_Init (void) |
Initialize the COMPASS. | |
void | BSP_COMPASS_DeInit (void) |
DeInitialize the COMPASS. | |
void | BSP_COMPASS_LowPower (void) |
Put the COMPASS in low power mode. | |
void | BSP_COMPASS_AccGetXYZ (int16_t *pDataXYZ) |
Get XYZ acceleration values. | |
void | BSP_COMPASS_MagGetXYZ (int16_t *pDataXYZ) |
Get XYZ magnetometer values. |
Function Documentation
void ACCELERO_IO_DeInit | ( | void | ) |
De-Configures COMPASS/ACCELEROMETER io interface.
- Return values:
-
None
Definition at line 1188 of file stm32l476g_discovery.c.
References ACCELERO_CS_GPIO_CLK_ENABLE, ACCELERO_CS_GPIO_PORT, ACCELERO_CS_HIGH, ACCELERO_CS_PIN, and SPIx_DeInit().
Referenced by BSP_COMPASS_DeInit().
void BSP_COMPASS_AccGetXYZ | ( | int16_t * | pDataXYZ | ) |
Get XYZ acceleration values.
- Parameters:
-
pDataXYZ Pointer on 3 angular accelerations table with pDataXYZ[0] = X axis, pDataXYZ[1] = Y axis, pDataXYZ[2] = Z axis
- Return values:
-
None
Definition at line 219 of file stm32l476g_discovery_compass.c.
References AccelerometerDrv.
void BSP_COMPASS_DeInit | ( | void | ) |
DeInitialize the COMPASS.
- Return values:
-
None.
Definition at line 188 of file stm32l476g_discovery_compass.c.
References ACCELERO_IO_DeInit(), and MAGNETO_IO_DeInit().
COMPASS_StatusTypeDef BSP_COMPASS_Init | ( | void | ) |
Initialize the COMPASS.
- Return values:
-
COMPASS_OK or COMPASS_ERROR
Definition at line 112 of file stm32l476g_discovery_compass.c.
References AccelerometerDrv, COMPASS_ERROR, COMPASS_OK, and MagnetoDrv.
void BSP_COMPASS_LowPower | ( | void | ) |
Put the COMPASS in low power mode.
- Return values:
-
None
Definition at line 199 of file stm32l476g_discovery_compass.c.
References AccelerometerDrv, and MagnetoDrv.
void BSP_COMPASS_MagGetXYZ | ( | int16_t * | pDataXYZ | ) |
Get XYZ magnetometer values.
- Parameters:
-
pDataXYZ Pointer on 3 magnetometer values table with pDataXYZ[0] = X axis, pDataXYZ[1] = Y axis, pDataXYZ[2] = Z axis
- Return values:
-
None
Definition at line 233 of file stm32l476g_discovery_compass.c.
References MagnetoDrv.
void MAGNETO_IO_DeInit | ( | void | ) |
de-Configures COMPASS/MAGNETO SPI interface.
- Return values:
-
None
Definition at line 1275 of file stm32l476g_discovery.c.
References MAGNETO_CS_GPIO_CLK_ENABLE, MAGNETO_CS_GPIO_PORT, MAGNETO_CS_HIGH, MAGNETO_CS_PIN, MAGNETO_DRDY_PIN, MAGNETO_INT1_PIN, and SPIx_DeInit().
Referenced by BSP_COMPASS_DeInit().
Generated on Tue Jun 23 2015 17:15:46 for STM32L476G-Discovery BSP User Manual by 1.7.6.1