Finished project.

Dependencies:   X_NUCLEO_COMMON

Fork of ReferredCoursework2016 by Stage-1 Students SoCEM

Revision:
46:badcff0675e8
Parent:
43:2544d064d528
Child:
67:08521fc910e8
--- a/Components/Interfaces/PressureSensor.h	Mon Jun 08 15:36:36 2015 +0200
+++ b/Components/Interfaces/PressureSensor.h	Mon Jun 08 17:22:35 2015 +0200
@@ -41,7 +41,7 @@
 #define __PRESSURE_SENSOR_CLASS_H
 
 /* Includes ------------------------------------------------------------------*/
-#include <stdint.h>
+#include <GenericSensor.h>
 
 /* Classes  ------------------------------------------------------------------*/
 /** An abstract class for a Pressure Sensor
@@ -50,49 +50,11 @@
 {
  public:
 	/**
-	 * @brief       Initialization of pressure sensor
-	 * @param[out]  ptr Pointer to device specific initalization structure
-	 * @return      0 in case of success, an error code otherwise
-	 */
-	virtual int Init(void *ptr) = 0;
-
-	/**
-	 * @brief       Enter sensor shutdown mode
-	 * @return      0 in case of success, an error code otherwise
-	 */
-	virtual int PowerOff(void) = 0;
-	
-	/**
-	 * @brief       Get ID of pressure sensor
-	 * @param[out]  id Pointer to where to store the ID to
-	 * @return      0 in case of success, an error code otherwise
-	 */
-	virtual int ReadID(uint8_t *id) = 0;
-
-	/**
-	 * @brief       Reset sensor
-	 * @return      0 in case of success, an error code otherwise
-	 */
-	virtual int Reset(void) = 0;
-
-	/**
 	 * @brief       Get current pressure [mbar]
 	 * @param[out]  pfData Pointer to where to store pressure to
 	 * @return      0 in case of success, an error code otherwise
 	 */
 	virtual int GetPressure(float *pfData) = 0;
-
-	virtual void ConfigIT(uint16_t) = 0;
-	virtual void EnableIT(uint8_t) = 0;
-	virtual void DisableIT(uint8_t) = 0;
-	virtual uint8_t ITStatus(uint16_t, uint16_t) = 0;
-	virtual void ClearIT(uint16_t, uint16_t) = 0;
-
-	/**
-	 * @brief       Attach a function to be called when an interrupt occurs
-	 * @param[in]   fptr A pointer to a void function, or 0 to set as none
-	 */
-	virtual void AttachIT(void (*fptr)(void)) = 0;
 };
 
 #endif /* __PRESSURE_SENSOR_CLASS_H */