Environmental Shield API

Committer:
Deepti
Date:
Tue Aug 19 07:13:15 2014 +0000
Revision:
0:9e645e6ed2ce
Environment Shield API

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Deepti 0:9e645e6ed2ce 1 #include "mbed.h"
Deepti 0:9e645e6ed2ce 2 #include "x_nucleo_ike01x1_hum_temp.h"
Deepti 0:9e645e6ed2ce 3 #include "x_nucleo_ike01x1_pressure.h"
Deepti 0:9e645e6ed2ce 4 #include "x_nucleo_ike01x1_uv.h"
Deepti 0:9e645e6ed2ce 5
Deepti 0:9e645e6ed2ce 6
Deepti 0:9e645e6ed2ce 7 #ifdef __cplusplus
Deepti 0:9e645e6ed2ce 8 extern "C" {
Deepti 0:9e645e6ed2ce 9 #endif
Deepti 0:9e645e6ed2ce 10
Deepti 0:9e645e6ed2ce 11
Deepti 0:9e645e6ed2ce 12 class Envt_Shield_API
Deepti 0:9e645e6ed2ce 13 {
Deepti 0:9e645e6ed2ce 14 public:
Deepti 0:9e645e6ed2ce 15
Deepti 0:9e645e6ed2ce 16 uint8_t Pressure_Init(void);
Deepti 0:9e645e6ed2ce 17 uint8_t Pressure_isInitialized(void);
Deepti 0:9e645e6ed2ce 18 void Pressure_Reset(void);
Deepti 0:9e645e6ed2ce 19 uint8_t Pressure_ReadID(void);
Deepti 0:9e645e6ed2ce 20 void Pressure_ITConfig(void/*PRESSURE_InterruptConfigTypeDef *pIntConfigStruct*/);
Deepti 0:9e645e6ed2ce 21 void Pressure_EnableIT(uint8_t IntPin);
Deepti 0:9e645e6ed2ce 22 void Pressure_DisableIT(uint8_t IntPin);
Deepti 0:9e645e6ed2ce 23 void Pressure_GetPressure(float* pfData);
Deepti 0:9e645e6ed2ce 24 void Pressure_GetTemperature(float* pfData);
Deepti 0:9e645e6ed2ce 25 uint8_t Hum_Temp_Init(void);
Deepti 0:9e645e6ed2ce 26 uint8_t Hum_Temp_isInitialized(void);
Deepti 0:9e645e6ed2ce 27 void Hum_Temp_Reset(void);
Deepti 0:9e645e6ed2ce 28 uint8_t Hum_Temp_ReadID(void);
Deepti 0:9e645e6ed2ce 29 void Hum_Temp_ITConfig(void/*HUM_TEMP_InterruptConfigTypeDef *pIntConfig*/);
Deepti 0:9e645e6ed2ce 30 void Hum_Temp_EnableIT(uint8_t IntPin);
Deepti 0:9e645e6ed2ce 31 void Hum_Temp_DisableIT(uint8_t IntPin);
Deepti 0:9e645e6ed2ce 32 void Hum_Temp_GetHumidity(float* pfData);
Deepti 0:9e645e6ed2ce 33 void Hum_Temp_GetTemperature(float* pfData);
Deepti 0:9e645e6ed2ce 34 void Hum_Temp_PowerOFF();
Deepti 0:9e645e6ed2ce 35 uint8_t UV_Init(void);
Deepti 0:9e645e6ed2ce 36 uint8_t UV_isInitialized(void);
Deepti 0:9e645e6ed2ce 37 uint8_t UV_ReadID(void);
Deepti 0:9e645e6ed2ce 38 void UV_Reset(void);
Deepti 0:9e645e6ed2ce 39 void UV_ITConfig(void/*UV_InterruptConfigTypeDef *pIntConfig*/);
Deepti 0:9e645e6ed2ce 40 void UV_EnableIT(uint8_t IntPin);
Deepti 0:9e645e6ed2ce 41 void UV_DisableIT(uint8_t IntPin);
Deepti 0:9e645e6ed2ce 42 void UV_GetIndex(float* pfData);
Deepti 0:9e645e6ed2ce 43 };
Deepti 0:9e645e6ed2ce 44
Deepti 0:9e645e6ed2ce 45 #ifdef __cplusplus
Deepti 0:9e645e6ed2ce 46 }
Deepti 0:9e645e6ed2ce 47 #endif