STM32F072B-Discovery BSP User Manual
|
Functions | |
void | GYRO_IO_Init (void) |
Configures the GYRO SPI interface. | |
void | GYRO_IO_Write (uint8_t *pBuffer, uint8_t WriteAddr, uint16_t NumByteToWrite) |
Writes one byte to the GYRO. | |
void | GYRO_IO_Read (uint8_t *pBuffer, uint8_t ReadAddr, uint16_t NumByteToRead) |
Reads a block of data from the GYROSCOPE. | |
void | EEPROM_IO_Init (void) |
Initializes peripherals used by the I2C EEPROM driver. | |
uint32_t | EEPROM_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint32_t pBuffer, uint32_t BufferSize) |
Write data to I2C EEPROM driver in using DMA channel. | |
uint32_t | EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint32_t pBuffer, uint32_t BufferSize) |
Read data from I2C EEPROM driver in using DMA channel. | |
HAL_StatusTypeDef | EEPROM_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. |
Function Documentation
void EEPROM_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
- Return values:
-
None
Definition at line 729 of file stm32f072b_discovery.c.
References I2Cx_Init().
Referenced by BSP_EEPROM_Init().
HAL_StatusTypeDef EEPROM_IO_IsDeviceReady | ( | uint16_t | DevAddress, |
uint32_t | Trials | ||
) |
Checks if target device is ready for communication.
- Note:
- This function is used with Memory devices
- Parameters:
-
DevAddress Target device address Trials Number of trials
- Return values:
-
HAL status
Definition at line 781 of file stm32f072b_discovery.c.
References I2cHandle, and I2Cx_TIMEOUT_MAX.
Referenced by BSP_EEPROM_Init(), and BSP_EEPROM_WaitEepromStandbyState().
uint32_t EEPROM_IO_ReadData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint32_t | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Read data from I2C EEPROM driver in using DMA channel.
- Parameters:
-
DevAddress Target device address MemAddress Internal memory address pBuffer Pointer to data buffer BufferSize Amount of data to be read
- Return values:
-
HAL status
Definition at line 762 of file stm32f072b_discovery.c.
References I2Cx_ReadBuffer(), and I2Cx_ReadData().
Referenced by BSP_EEPROM_ReadBuffer().
uint32_t EEPROM_IO_WriteData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint32_t | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Write data to I2C EEPROM driver in using DMA channel.
- Parameters:
-
DevAddress Target device address MemAddress Internal memory address pBuffer Pointer to data buffer BufferSize Amount of data to be sent
- Return values:
-
HAL status
Definition at line 742 of file stm32f072b_discovery.c.
References I2Cx_WriteBuffer(), and I2Cx_WriteData().
Referenced by BSP_EEPROM_WritePage().
void GYRO_IO_Init | ( | void | ) |
Configures the GYRO SPI interface.
- Return values:
-
None
Definition at line 624 of file stm32f072b_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 693 of file stm32f072b_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 GYRO.
- Parameters:
-
pBuffer pointer to the buffer containing the data to be written to the GYRO. WriteAddr GYRO's internal address to write to. NumByteToWrite Number of bytes to write.
- Return values:
-
None
Definition at line 658 of file stm32f072b_discovery.c.
References GYRO_CS_HIGH, GYRO_CS_LOW, MULTIPLEBYTE_CMD, and SPIx_WriteRead().
Generated on Wed Jul 5 2017 09:43:19 for STM32F072B-Discovery BSP User Manual by
![doxygen](doxygen.png)