stm32_eval_i2c_tsensor.h File Reference

This file contains all the functions prototypes for the stm32_eval_i2c_tsensor firmware driver. More...

#include "stm32_eval.h"

Go to the source code of this file.

Defines

#define I2C_TIMEOUT   ((uint32_t)0x3FFFF)
#define LM75_ADDR   0x90
#define LM75_FLAG_TIMEOUT   ((uint32_t)0x1000)
#define LM75_I2C_SPEED   100000
#define LM75_LONG_TIMEOUT   ((uint32_t)(10 * LM75_FLAG_TIMEOUT))
#define LM75_REG_CONF   0x01
#define LM75_REG_TEMP   0x00
 Block Size.
#define LM75_REG_THYS   0x02
#define LM75_REG_TOS   0x03
#define LM75_TIMEOUT_UserCallback()   LM75_FAIL
 Timeout user callback function.

Enumerations

enum  LM75_DMADirection_TypeDef { LM75_DMA_TX = 0, LM75_DMA_RX = 1 }
 

IOE DMA Direction.

More...
enum  LM75_Status_TypDef { LM75_OK = 0, LM75_FAIL }
 

TSENSOR Status.

More...

Functions

void LM75_DeInit (void)
 DeInitializes the LM75_I2C.
ErrorStatus LM75_GetStatus (void)
 Checks the LM75 status.
void LM75_Init (void)
 Initializes the LM75_I2C.
uint8_t LM75_ReadConfReg (void)
 Read the configuration register from the LM75.
uint16_t LM75_ReadReg (uint8_t RegName)
 Read the specified register from the LM75.
uint16_t LM75_ReadTemp (void)
 Read Temperature register of LM75: double temperature value.
uint8_t LM75_ShutDown (FunctionalState NewState)
 Enables or disables the LM75.
uint8_t LM75_WriteConfReg (uint8_t RegValue)
 Write to the configuration register of the LM75.
uint8_t LM75_WriteReg (uint8_t RegName, uint16_t RegValue)
 Write to the specified register of the LM75.

Detailed Description

This file contains all the functions prototypes for the stm32_eval_i2c_tsensor firmware driver.

Author:
MCD Application Team
Version:
V4.3.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm32_eval_i2c_tsensor.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

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