STM32F0xx Standard Peripherals Firmware Library: I2C_WakeUpFromStop

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Functions

void Delay (__IO uint32_t nTime)
 Inserts a delay time.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSVC exception.
static void RCC_Config (void)
 Configure the I2C Clock source and Power clock.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void TimingDelay_Decrement (void)
 Decrements the TimingDelay variable.

Variables

uint8_t BufferRX [BUFFSIZE]
uint32_t BufferSize = BUFFSIZE
const uint8_t BufferTX [] = "STM32 CPAL FIRMWARE DRIVER FOR I2Cx DEVICE: WAKEUP FROM STOP MODE EXAMPLE"
__IO uint8_t Counter = 0
CPAL_TransferTypeDef sRxStructure
CPAL_TransferTypeDef sTxStructure
static __IO uint32_t TimingDelay
__IO TestStatus TransferStatus = PASSED

Function Documentation

void Delay ( __IO uint32_t  nTime)

Inserts a delay time.

Parameters:
nTime,:specifies the delay time length, in 10 ms.
Return values:
None

Definition at line 400 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/main.c.

References TimingDelay.

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 68 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/stm32f0xx_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_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 69 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/main.c.

References BufferRX, BufferSize, BufferTX, Delay(), GPIO_InitStructure, MASTER_I2C_TIMING, MASTERSTRUCTURE, MEASSAGE_EMPTY, MESSAGE1, MESSAGE10, MESSAGE2, MESSAGE4, MESSAGE5, MESSAGE6, MESSAGE7, MESSAGE8, MESSAGE9, OWNADDRESS, PASSED, RCC_Config(), SLAVE_I2C_TIMING, SLAVESTRUCTURE, sRxStructure, sTxStructure, SystemCoreClock, and TransferStatus.

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 59 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/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/I2C/I2C_WakeUpFromStop/stm32f0xx_it.c.

static void RCC_Config ( void  ) [static]

Configure the I2C Clock source and Power clock.

Parameters:
None
Return values:
None

Definition at line 303 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/main.c.

Referenced by main().

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 81 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/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/I2C/I2C_WakeUpFromStop/stm32f0xx_it.c.

References Counter, CPAL_I2C_TIMEOUT_Manager(), and TimingDelay_Decrement().

void TimingDelay_Decrement ( void  )

Decrements the TimingDelay variable.

Parameters:
None
Return values:
None

Definition at line 412 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/main.c.

Referenced by SysTick_Handler().


Variable Documentation

uint8_t BufferRX[BUFFSIZE]

Definition at line 45 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/main.c.

Referenced by main().

uint32_t BufferSize = BUFFSIZE
const uint8_t BufferTX[] = "STM32 CPAL FIRMWARE DRIVER FOR I2Cx DEVICE: WAKEUP FROM STOP MODE EXAMPLE"

Definition at line 44 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_WakeUpFromStop/main.c.

Referenced by main().

CPAL_TransferTypeDef sRxStructure
CPAL_TransferTypeDef sTxStructure
__IO uint32_t TimingDelay [static]
STM32L1xx Standard Peripherals Library: Footer

 

 

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