Functions
STM32F4 DISCOVERY LOW LEVEL BUS Functions
Collaboration diagram for STM32F4 DISCOVERY LOW LEVEL BUS Functions:

Functions

void ACCELERO_IO_Read (uint8_t *pBuffer, uint8_t ReadAddr, uint16_t NumByteToRead)
 Reads a block of data from the Accelerometer. More...
 
void ACCELERO_IO_Write (uint8_t *pBuffer, uint8_t WriteAddr, uint16_t NumByteToWrite)
 Writes one byte to the Accelerometer. More...
 
uint8_t AUDIO_IO_Read (uint8_t Addr, uint8_t Reg)
 Reads a single data. More...
 
void AUDIO_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes a single data. More...
 
static void I2Cx_Error (uint8_t Addr)
 Manages error callback by re-initializing I2C. More...
 
static uint8_t I2Cx_ReadData (uint8_t Addr, uint8_t Reg)
 Read a register of the device through BUS. More...
 
static void I2Cx_WriteData (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Write a value in a register of the device through BUS. More...
 
static uint8_t SPIx_WriteRead (uint8_t Byte)
 Sends a Byte through the SPI interface and return the Byte received from the SPI bus. More...
 

Detailed Description

Function Documentation

◆ ACCELERO_IO_Read()

void ACCELERO_IO_Read ( uint8_t *  pBuffer,
uint8_t  ReadAddr,
uint16_t  NumByteToRead 
)

Reads a block of data from the Accelerometer.

Parameters
pBufferpointer to the buffer that receives the data read from the Accelerometer.
ReadAddrAccelerometer's internal address to read from.
NumByteToReadnumber of bytes to read from the Accelerometer.

Definition at line 592 of file stm32f4_discovery.c.

◆ ACCELERO_IO_Write()

void ACCELERO_IO_Write ( uint8_t *  pBuffer,
uint8_t  WriteAddr,
uint16_t  NumByteToWrite 
)

Writes one byte to the Accelerometer.

Parameters
pBufferpointer to the buffer containing the data to be written to the Accelerometer.
WriteAddrAccelerometer's internal address to write to.
NumByteToWriteNumber of bytes to write.

Definition at line 558 of file stm32f4_discovery.c.

◆ AUDIO_IO_Read()

uint8_t AUDIO_IO_Read ( uint8_t  Addr,
uint8_t  Reg 
)

Reads a single data.

Parameters
AddrI2C address
RegReg address
Return values
Datato be read

Definition at line 680 of file stm32f4_discovery.c.

◆ AUDIO_IO_Write()

void AUDIO_IO_Write ( uint8_t  Addr,
uint8_t  Reg,
uint8_t  Value 
)

Writes a single data.

Parameters
AddrI2C address
RegReg address
ValueData to be written

Definition at line 669 of file stm32f4_discovery.c.

◆ I2Cx_Error()

static void I2Cx_Error ( uint8_t  Addr)
static

Manages error callback by re-initializing I2C.

Parameters
AddrI2C Address

Definition at line 454 of file stm32f4_discovery.c.

◆ I2Cx_ReadData()

static uint8_t I2Cx_ReadData ( uint8_t  Addr,
uint8_t  Reg 
)
static

Read a register of the device through BUS.

Parameters
AddrDevice address on BUS
RegThe target register address to read
Return values
HALstatus

Definition at line 434 of file stm32f4_discovery.c.

◆ I2Cx_WriteData()

static void I2Cx_WriteData ( uint8_t  Addr,
uint8_t  Reg,
uint8_t  Value 
)
static

Write a value in a register of the device through BUS.

Parameters
AddrDevice address on BUS Bus.
RegThe target register address to write
ValueThe target register value to be written
Return values
HALstatus

Definition at line 414 of file stm32f4_discovery.c.

◆ SPIx_WriteRead()

static uint8_t SPIx_WriteRead ( uint8_t  Byte)
static

Sends a Byte through the SPI interface and return the Byte received from the SPI bus.

Parameters
ByteByte send.
Return values
Thereceived byte value

Definition at line 338 of file stm32f4_discovery.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:05