EFM32 Leopard Gecko Software Documentation  efm32lg-doc-4.2.1
tempsens.h File Reference

Temperature sensor driver for DS75 temperature sensor compatible device on the DK. More...

#include "em_device.h"

Go to the source code of this file.

Data Structures

struct  TEMPSENS_Temp_TypeDef
 

Macros

#define TEMPSENS_DK_ADDR   0x90
 

Enumerations

enum  TEMPSENS_Register_TypeDef {
  tempsensRegTemp = 0,
  tempsensRegConfig = 1,
  tempsensRegHysteresis = 2,
  tempsensRegShutdown = 3
}
 

Functions

void TEMPSENS_Celsius2Fahrenheit (TEMPSENS_Temp_TypeDef *temp)
 Convert temperature from Celsius to Fahrenheit. More...
 
int TEMPSENS_RegisterGet (I2C_TypeDef *i2c, uint8_t addr, TEMPSENS_Register_TypeDef reg, uint16_t *val)
 Read sensor register content. More...
 
int TEMPSENS_RegisterSet (I2C_TypeDef *i2c, uint8_t addr, TEMPSENS_Register_TypeDef reg, uint16_t val)
 Write to sensor register. More...
 
int TEMPSENS_TemperatureGet (I2C_TypeDef *i2c, uint8_t addr, TEMPSENS_Temp_TypeDef *temp)
 Fetch current temperature from temperature sensor (in Celsius). More...
 

Detailed Description

Version
4.2.1

License

(C) Copyright 2014 Silicon Labs, http://www.silabs.com

This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file tempsens.h.