AudioRecord and FFT/MSE comparison. Call AudioRecord_demo for control record and AudioSample for subsequent recordings.
Dependencies: CMSIS_DSP_401 STM32L4xx_HAL_Driver
Fork of OneHopeOnePrayer by
Private Functions
[STM32L476RG-Nucleo]
Functions | |
static void | SPIx_Init (void) |
Initialize SPI HAL. | |
static void | SPIx_Write (uint8_t Value) |
SPI Write a byte to device. | |
static void | SPIx_Error (void) |
SPI error treatment function. | |
static void | SPIx_MspInit (void) |
Initialize SPI MSP. | |
static HAL_StatusTypeDef | ADCx_Init (void) |
Initializes ADC HAL. | |
static void | ADCx_MspInit (ADC_HandleTypeDef *hadc) |
Initialize ADC MSP. | |
void | SD_IO_Init (void) |
Initialize the SD Card and put it into StandBy State (Ready for data transfer). | |
void | SD_IO_CSState (uint8_t val) |
Set SD interface Chip Select state. | |
void | SD_IO_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength) |
Write byte(s) on the SD. | |
uint8_t | SD_IO_WriteByte (uint8_t Data) |
Write a byte on the SD. | |
void | LCD_IO_Init (void) |
Initialize the LCD. | |
void | LCD_IO_WriteMultipleData (uint8_t *pData, uint32_t Size) |
Write register value. | |
void | LCD_IO_WriteReg (uint8_t LCDReg) |
Write command to select the LCD register. | |
void | LCD_Delay (uint32_t Delay) |
Wait for loop in ms. | |
static void | SPIx_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength) |
SPI Write byte(s) to device. |
Function Documentation
static HAL_StatusTypeDef ADCx_Init | ( | void | ) | [static] |
static void ADCx_MspInit | ( | ADC_HandleTypeDef * | hadc ) | [static] |
void LCD_Delay | ( | uint32_t | Delay ) |
Wait for loop in ms.
- Parameters:
-
Delay in ms.
- Return values:
-
None
Definition at line 686 of file stm32l4xx_nucleo.c.
void LCD_IO_Init | ( | void | ) |
void LCD_IO_WriteMultipleData | ( | uint8_t * | pData, |
uint32_t | Size | ||
) |
Write register value.
- Parameters:
-
pData Pointer on the register value Size Size of byte to transmit to the register
- Return values:
-
None
Definition at line 637 of file stm32l4xx_nucleo.c.
void LCD_IO_WriteReg | ( | uint8_t | LCDReg ) |
Write command to select the LCD register.
- Parameters:
-
LCDReg,: Address of the selected register.
- Return values:
-
None
Definition at line 616 of file stm32l4xx_nucleo.c.
void SD_IO_CSState | ( | uint8_t | val ) |
Set SD interface Chip Select state.
- Parameters:
-
val,: 0 (low) or 1 (high) state
- Return values:
-
None
Definition at line 544 of file stm32l4xx_nucleo.c.
void SD_IO_Init | ( | void | ) |
Initialize the SD Card and put it into StandBy State (Ready for data transfer).
- Return values:
-
None
Definition at line 501 of file stm32l4xx_nucleo.c.
uint8_t SD_IO_WriteByte | ( | uint8_t | Data ) |
Write a byte on the SD.
- Parameters:
-
Data,: byte to send.
- Return values:
-
Data written
Definition at line 571 of file stm32l4xx_nucleo.c.
void SD_IO_WriteReadData | ( | const uint8_t * | DataIn, |
uint8_t * | DataOut, | ||
uint16_t | DataLength | ||
) |
Write byte(s) on the SD.
- Parameters:
-
DataIn,: Pointer to data buffer to write DataOut,: Pointer to data buffer for read data DataLength,: number of bytes to write
- Return values:
-
None
Definition at line 560 of file stm32l4xx_nucleo.c.
static void SPIx_Error | ( | void | ) | [static] |
SPI error treatment function.
- Return values:
-
None
Definition at line 482 of file stm32l4xx_nucleo.c.
static void SPIx_Init | ( | void | ) | [static] |
static void SPIx_MspInit | ( | void | ) | [static] |
static void SPIx_Write | ( | uint8_t | Value ) | [static] |
SPI Write a byte to device.
- Parameters:
-
Value,: value to be written
- Return values:
-
None
Definition at line 464 of file stm32l4xx_nucleo.c.
static void SPIx_WriteReadData | ( | const uint8_t * | DataIn, |
uint8_t * | DataOut, | ||
uint16_t | DataLength | ||
) | [static] |
SPI Write byte(s) to device.
- Parameters:
-
DataIn,: Pointer to data buffer to write DataOut,: Pointer to data buffer for read data DataLength,: number of bytes to write
- Return values:
-
None
Definition at line 447 of file stm32l4xx_nucleo.c.
Generated on Tue Jul 12 2022 19:27:52 by 1.7.2