STM32F0xx Standard Peripherals Firmware Library: I2S_DataExchangeDMA

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Defines

#define SPI1_DR_Address   0x4001300C

Enumerations

enum  TestStatus {
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 1, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED
}

Functions

void DMA1_Channel2_3_IRQHandler (void)
 This function handles DMA1 interrupt request.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
static void I2S_Config (void)
 Configures I2S peripheral.
int main (void)
 Main program.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSVC exception.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.

Variables

uint16_t I2S_Buffer_Rx [32] = {0}
const uint16_t I2S_Buffer_Tx [32]
uint8_t RxStatus
__IO uint32_t RxStatus = 0
TestStatus TransferStatus = FAILED
uint8_t TxStatus
__IO uint32_t TxStatus = 0

Define Documentation

#define SPI1_DR_Address   0x4001300C

Enumeration Type Documentation

enum TestStatus
Enumerator:
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 

Definition at line 40 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/main.c.


Function Documentation

void DMA1_Channel2_3_IRQHandler ( void  )

This function handles DMA1 interrupt request.

Parameters:
None
Return values:
:None

Definition at line 114 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/stm32f0xx_it.c.

References RxStatus, and TxStatus.

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 68 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/stm32f0xx_it.c.

static void I2S_Config ( void  ) [static]

Configures I2S peripheral.

Parameters:
None
Return values:
None

Definition at line 167 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/main.c.

References DMA_InitStructure, GPIO_InitStructure, I2S_Buffer_Rx, I2S_Buffer_Tx, NVIC_InitStructure, and SPI1_DR_Address.

Referenced by main().

int main ( void  )

Main program.

Parameters:
None
Return values:
None

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file

Definition at line 68 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/main.c.

References Buffercmp(), I2S_Buffer_Rx, I2S_Buffer_Tx, I2S_Config(), PASSED, RxStatus, TransferStatus, and TxStatus.

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 59 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 90 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 81 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 99 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/stm32f0xx_it.c.


Variable Documentation

uint16_t I2S_Buffer_Rx[32] = {0}
const uint16_t I2S_Buffer_Tx[32]
Initial value:
 {0x0102, 0x0304, 0x0506, 0x0708, 0x090A, 0x0B0C,
                                    0x0D0E, 0x0F10, 0x1112, 0x1314, 0x1516, 0x1718,
                                    0x191A, 0x1B1C, 0x1D1E, 0x1F20, 0x2122, 0x2324,
                                    0x2526, 0x2728, 0x292A, 0x2B2C, 0x2D2E, 0x2F30,
                                    0x3132, 0x3334, 0x3536, 0x3738, 0x393A, 0x3B3C,
                                    0x3D3E, 0x3F40}

Definition at line 46 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/main.c.

Referenced by I2S_Config(), main(), and SPI1_IRQHandler().

__IO uint32_t RxStatus = 0
__IO uint32_t TxStatus = 0
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32