STM32F3-Discovery BSP User Manual: Link Operation functions

STM32F3-Discovery BSP Drivers

STM32F3-Discovery BSP User Manual
Link Operation functions

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_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:
DeviceAddrspecifies the slave address to be programmed(ACC_I2C_ADDRESS or MAG_I2C_ADDRESS).
RegisterAddrspecifies the COMPASS / ACCELEROMETER internal address register to read from
Return values:
ACCELEROMETERregister 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:
DeviceAddrspecifies the slave address to be programmed.
RegisterAddrspecifies the COMPASS / ACCELEROMETER register to be written.
ValueData 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:
pBufferpointer to the buffer that receives the data read from the GYROSCOPE.
ReadAddrGYROSCOPE's internal address to read from.
NumByteToReadnumber 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:
pBufferpointer to the buffer containing the data to be written to the GYROSCOPE.
WriteAddrGYROSCOPE's internal address to write to.
NumByteToWriteNumber 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   doxygen 1.7.6.1