I2S_Interrupt
[STM32F10x_StdPeriph_Examples]

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 = 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 = 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 = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED
}

Functions

TestStatus Buffercmp24bits (uint16_t *pBuffer1, uint16_t *pBuffer2, uint16_t BufferLength)
 Compares two buffers in 24 bits data format.
void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void GPIO_Configuration (void)
 Configures the different GPIO ports.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void NVIC_Configuration (void)
 Configure the nested vectored interrupt controller.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void RCC_Configuration (void)
 Configures the different system clocks.
void SPI2_IRQHandler (void)
 This function handles SPI2 global interrupt request.
void SPI3_IRQHandler (void)
 This function handles SPI3 global interrupt request.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

ErrorStatus HSEStartUpStatus
uint16_t I2S2_Buffer_Rx [32]
uint16_t I2S2_Buffer_Rx [32]
const uint16_t I2S3_Buffer_Tx [32]
const uint16_t I2S3_Buffer_Tx [32]
I2S_InitTypeDef I2S_InitStructure
__IO uint32_t RxIdx
__IO uint32_t RxIdx = 0
TestStatus TransferStatus1 = FAILED
TestStatus TransferStatus2 = FAILED
__IO uint32_t TxIdx
__IO uint32_t TxIdx = 0

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 
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 33 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.


Function Documentation

TestStatus Buffercmp24bits ( uint16_t *  pBuffer1,
uint16_t *  pBuffer2,
uint16_t  BufferLength 
)

Compares two buffers in 24 bits data format.

Parameters:
pBuffer1,pBuffer2,: buffers to be compared.
BufferLength,: buffer's length
Return values:
PASSED,: pBuffer1 identical to pBuffer2 FAILED: pBuffer1 differs from pBuffer2

Definition at line 386 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.

References FAILED, and PASSED.

Referenced by main().

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 87 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 111 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void GPIO_Configuration ( void   ) 
void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 63 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

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_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 65 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.

References Buffercmp(), Buffercmp24bits(), ENABLE, GPIO_Configuration(), I2S2_Buffer_Rx, I2S3_Buffer_Tx, I2S_InitTypeDef::I2S_AudioFreq, I2S_AudioFreq_16k, I2S_AudioFreq_48k, I2S_Cmd(), I2S_InitTypeDef::I2S_CPOL, I2S_CPOL_Low, I2S_InitTypeDef::I2S_DataFormat, I2S_DataFormat_16bextended, I2S_DataFormat_24b, I2S_Init(), I2S_InitTypeDef::I2S_MCLKOutput, I2S_MCLKOutput_Disable, I2S_InitTypeDef::I2S_Mode, I2S_Mode_MasterTx, I2S_Mode_SlaveRx, I2S_InitTypeDef::I2S_Standard, I2S_Standard_Phillips, NVIC_Configuration(), RCC_Configuration(), RxIdx, SPI2, SPI3, SPI_I2S_DeInit(), SPI_I2S_IT_RXNE, SPI_I2S_IT_TXE, SPI_I2S_ITConfig(), TransferStatus1, TransferStatus2, and TxIdx.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 75 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 54 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 129 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void RCC_Configuration ( void   ) 
void SPI2_IRQHandler ( void   ) 

This function handles SPI2 global interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 173 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void SPI3_IRQHandler ( void   ) 

This function handles SPI3 global interrupt request.

Parameters:
None 
Return values:
None 

Definition at line 151 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

References DISABLE, I2S3_Buffer_Tx, RxIdx, SET, SPI3, SPI_I2S_GetITStatus(), SPI_I2S_IT_TXE, SPI_I2S_ITConfig(), SPI_I2S_SendData(), and TxIdx.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 120 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 138 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 99 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/stm32f10x_it.c.


Variable Documentation

uint16_t I2S2_Buffer_Rx[32]

Definition at line 46 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.

Referenced by main(), and SPI2_IRQHandler().

uint16_t I2S2_Buffer_Rx[32]

Definition at line 46 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.

Referenced by main(), and SPI2_IRQHandler().

const uint16_t I2S3_Buffer_Tx[32]

Definition at line 39 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.

Referenced by main(), and SPI3_IRQHandler().

const uint16_t I2S3_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 39 of file STM32F10x_StdPeriph_Examples/I2S/Interrupt/main.c.

Referenced by main(), and SPI3_IRQHandler().

__IO uint32_t RxIdx
__IO uint32_t RxIdx = 0
__IO uint32_t TxIdx
__IO uint32_t TxIdx = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32