
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... | |
| void ACCELERO_IO_Read | ( | uint8_t * | pBuffer, |
| uint8_t | ReadAddr, | ||
| uint16_t | NumByteToRead | ||
| ) |
Reads a block of data from the Accelerometer.
| pBuffer | pointer to the buffer that receives the data read from the Accelerometer. |
| ReadAddr | Accelerometer's internal address to read from. |
| NumByteToRead | number of bytes to read from the Accelerometer. |
Definition at line 592 of file stm32f4_discovery.c.
| void ACCELERO_IO_Write | ( | uint8_t * | pBuffer, |
| uint8_t | WriteAddr, | ||
| uint16_t | NumByteToWrite | ||
| ) |
Writes one byte to the Accelerometer.
| pBuffer | pointer to the buffer containing the data to be written to the Accelerometer. |
| WriteAddr | Accelerometer's internal address to write to. |
| NumByteToWrite | Number of bytes to write. |
Definition at line 558 of file stm32f4_discovery.c.
| uint8_t AUDIO_IO_Read | ( | uint8_t | Addr, |
| uint8_t | Reg | ||
| ) |
Reads a single data.
| Addr | I2C address |
| Reg | Reg address |
| Data | to be read |
Definition at line 680 of file stm32f4_discovery.c.
| void AUDIO_IO_Write | ( | uint8_t | Addr, |
| uint8_t | Reg, | ||
| uint8_t | Value | ||
| ) |
Writes a single data.
| Addr | I2C address |
| Reg | Reg address |
| Value | Data to be written |
Definition at line 669 of file stm32f4_discovery.c.
|
static |
Manages error callback by re-initializing I2C.
| Addr | I2C Address |
Definition at line 454 of file stm32f4_discovery.c.
|
static |
Read a register of the device through BUS.
| Addr | Device address on BUS |
| Reg | The target register address to read |
| HAL | status |
Definition at line 434 of file stm32f4_discovery.c.
|
static |
Write a value in a register of the device through BUS.
| Addr | Device address on BUS Bus. |
| Reg | The target register address to write |
| Value | The target register value to be written |
| HAL | status |
Definition at line 414 of file stm32f4_discovery.c.
|
static |
Sends a Byte through the SPI interface and return the Byte received from the SPI bus.
| Byte | Byte send. |
| The | received byte value |
Definition at line 338 of file stm32f4_discovery.c.