STM32F0xx Standard Peripherals Firmware Library: I2C_TSENSOR

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Defines

#define TEMPERATURE_THYS   31
#define TEMPERATURE_TOS   32

Functions

void HardFault_Handler (void)
 This function handles Hard Fault exception.
void I2C1_IRQHandler (void)
 This function handles I2C1 Error interrupt request.
int main (void)
 Main program.
void NMI_Handler (void)
 This function handles NMI exception.
static void NVIC_Config (void)
 Configures the different interrupt.
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

__IO uint8_t SMbusAlertOccurred
__IO uint8_t SMbusAlertOccurred = 0
static uint8_t TempCelsiusDisplay [] = " +abc.d C "
static uint8_t TempFahrenheitDisplay [] = " +abc.d F "
static int32_t TempValue = 0
static int32_t TempValueCelsius = 0
static int32_t TempValueFahrenheit = 0

Define Documentation

#define TEMPERATURE_THYS   31

Definition at line 42 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().

#define TEMPERATURE_TOS   32

Definition at line 43 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().


Function Documentation

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_TSENSOR/stm32f0xx_it.c.

void I2C1_IRQHandler ( void  )

This function handles I2C1 Error interrupt request.

Parameters:
None
Return values:
None

Definition at line 115 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/stm32f0xx_it.c.

References SMbusAlertOccurred.

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 62 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

References NVIC_Config(), SMbusAlertOccurred, TempCelsiusDisplay, TEMPERATURE_THYS, TEMPERATURE_TOS, TempFahrenheitDisplay, TempValue, TempValueCelsius, and TempValueFahrenheit.

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_TSENSOR/stm32f0xx_it.c.

static void NVIC_Config ( void  ) [static]

Configures the different interrupt.

Parameters:
None
Return values:
None

Definition at line 247 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

References NVIC_InitStructure.

Referenced by main().

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_TSENSOR/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/I2C/I2C_TSENSOR/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_TSENSOR/stm32f0xx_it.c.


Variable Documentation

__IO uint8_t SMbusAlertOccurred

Definition at line 50 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by I2C1_IRQHandler(), and main().

__IO uint8_t SMbusAlertOccurred = 0

Definition at line 50 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by I2C1_IRQHandler(), and main().

uint8_t TempCelsiusDisplay[] = " +abc.d C " [static]

Definition at line 47 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().

uint8_t TempFahrenheitDisplay[] = " +abc.d F " [static]

Definition at line 48 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().

int32_t TempValue = 0 [static]

Definition at line 49 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().

int32_t TempValueCelsius = 0

Definition at line 49 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().

int32_t TempValueFahrenheit = 0

Definition at line 49 of file STM32F0xx_StdPeriph_Examples/I2C/I2C_TSENSOR/main.c.

Referenced by main().

STM32L1xx Standard Peripherals Library: Footer

 

 

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