STM32F3-Discovery BSP User Manual
|
Functions | |
void | GYRO_IO_Init (void) |
Configures the GYROSCOPE SPI interface. | |
void | GYRO_IO_Write (uint8_t *pBuffer, uint8_t WriteAddr, uint16_t NumByteToWrite) |
Writes one byte to the GYROSCOPE. | |
void | GYRO_IO_Read (uint8_t *pBuffer, uint8_t ReadAddr, uint16_t NumByteToRead) |
Reads a block of data from the GYROSCOPE. | |
void | COMPASSACCELERO_IO_Init (void) |
Configures COMPASS / ACCELEROMETER I2C interface. | |
void | COMPASSACCELERO_IO_ITConfig (void) |
Configures COMPASS / ACCELERO click IT. | |
void | COMPASSACCELERO_IO_Write (uint16_t DeviceAddr, uint8_t RegisterAddr, uint8_t Value) |
Writes one byte to the COMPASS / ACCELEROMETER. | |
uint8_t | COMPASSACCELERO_IO_Read (uint16_t DeviceAddr, uint8_t RegisterAddr) |
Reads a block of data from the COMPASS / ACCELEROMETER. |
Function Documentation
void COMPASSACCELERO_IO_Init | ( | void | ) |
Configures COMPASS / ACCELEROMETER I2C interface.
- Return values:
-
None
Definition at line 640 of file stm32f3_discovery.c.
References ACCELERO_DRDY_EXTI_IRQn, ACCELERO_DRDY_GPIO_CLK_ENABLE, ACCELERO_DRDY_GPIO_PORT, ACCELERO_DRDY_PIN, ACCELERO_INT1_PIN, ACCELERO_INT2_PIN, ACCELERO_INT_GPIO_CLK_ENABLE, ACCELERO_INT_GPIO_PORT, and I2Cx_Init().
void COMPASSACCELERO_IO_ITConfig | ( | void | ) |
Configures COMPASS / ACCELERO click IT.
- Return values:
-
None
Definition at line 675 of file stm32f3_discovery.c.
References ACCELERO_INT1_EXTI_IRQn, ACCELERO_INT1_PIN, ACCELERO_INT2_PIN, ACCELERO_INT_GPIO_CLK_ENABLE, and ACCELERO_INT_GPIO_PORT.
uint8_t COMPASSACCELERO_IO_Read | ( | uint16_t | DeviceAddr, |
uint8_t | RegisterAddr | ||
) |
Reads a block of data from the COMPASS / ACCELEROMETER.
- Parameters:
-
DeviceAddr specifies the slave address to be programmed(ACC_I2C_ADDRESS or MAG_I2C_ADDRESS). RegisterAddr specifies the COMPASS / ACCELEROMETER internal address register to read from
- Return values:
-
ACCELEROMETER register value
Definition at line 714 of file stm32f3_discovery.c.
References I2Cx_ReadData().
void COMPASSACCELERO_IO_Write | ( | uint16_t | DeviceAddr, |
uint8_t | RegisterAddr, | ||
uint8_t | Value | ||
) |
Writes one byte to the COMPASS / ACCELEROMETER.
- Parameters:
-
DeviceAddr specifies the slave address to be programmed. RegisterAddr specifies the COMPASS / ACCELEROMETER register to be written. Value Data to be written
- Return values:
-
None
Definition at line 702 of file stm32f3_discovery.c.
References I2Cx_WriteData().
void GYRO_IO_Init | ( | void | ) |
Configures the GYROSCOPE SPI interface.
- Return values:
-
None
Definition at line 535 of file stm32f3_discovery.c.
References GYRO_CS_GPIO_CLK_ENABLE, GYRO_CS_GPIO_PORT, GYRO_CS_HIGH, GYRO_CS_PIN, GYRO_INT1_PIN, GYRO_INT2_PIN, GYRO_INT_GPIO_CLK_ENABLE, GYRO_INT_GPIO_PORT, and SPIx_Init().
void GYRO_IO_Read | ( | uint8_t * | pBuffer, |
uint8_t | ReadAddr, | ||
uint16_t | NumByteToRead | ||
) |
Reads a block of data from the GYROSCOPE.
- Parameters:
-
pBuffer pointer to the buffer that receives the data read from the GYROSCOPE. ReadAddr GYROSCOPE's internal address to read from. NumByteToRead number of bytes to read from the GYROSCOPE.
- Return values:
-
None
Definition at line 604 of file stm32f3_discovery.c.
References DUMMY_BYTE, GYRO_CS_HIGH, GYRO_CS_LOW, MULTIPLEBYTE_CMD, READWRITE_CMD, and SPIx_WriteRead().
void GYRO_IO_Write | ( | uint8_t * | pBuffer, |
uint8_t | WriteAddr, | ||
uint16_t | NumByteToWrite | ||
) |
Writes one byte to the GYROSCOPE.
- Parameters:
-
pBuffer pointer to the buffer containing the data to be written to the GYROSCOPE. WriteAddr GYROSCOPE's internal address to write to. NumByteToWrite Number of bytes to write.
- Return values:
-
None
Definition at line 569 of file stm32f3_discovery.c.
References GYRO_CS_HIGH, GYRO_CS_LOW, MULTIPLEBYTE_CMD, and SPIx_WriteRead().
Generated on Wed May 31 2017 10:47:41 for STM32F3-Discovery BSP User Manual by 1.7.6.1