Revision:
3:082a970dca06
Parent:
2:9fe166c478b7
Child:
4:889926e2b6a5
--- a/DHT11.h	Thu Aug 08 16:04:03 2019 +0000
+++ b/DHT11.h	Fri Aug 09 07:32:18 2019 +0000
@@ -29,7 +29,7 @@
 
 
 /*!
- Library for the DHT11 Digital Pressure Sensor.
+ Library for the DHT11 Temperature & humidity sensor complex with a calibrated digital signal output.
 */
 class DHT11
 {
@@ -91,50 +91,9 @@
 
 
 
-    /**
-      * @brief   TYPEDEF DEFINITIONS.
-      */
-    /**
-      * @brief   SET PIN HIGH OR LOW.
-      *           NOTE: The user MUST take care of these function. Bus communication function pointer which should be
-      *                 mapped to the platform specific.
-      */
-    typedef DHT11_status_t (*dht11_comm_out_fptr_t)( DigitalInOut myDHT11pin );
-
-    /**
-      * @brief   READ PIN.
-      *           NOTE: The user MUST take care of these function. Bus communication function pointer which should be
-      *                 mapped to the platform specific.
-      */
-    typedef DHT11_status_t (*dht11_comm_in_fptr_t)( DigitalInOut myDHT11pin, DHT11_device_bus_status_t* myDHT11pinStatus );
-
-    /**
-      * @brief   DEVICE DELAYS.
-      *           NOTE: Delay function pointer which should be mapped to the platform specific.
-      */
-    typedef DHT11_status_t (*dht11_delay_fptr_t)( uint32_t myDHT11delay );
-
-
-
-
 #ifndef DHT11_VECTOR_STRUCT_H
 #define DHT11_VECTOR_STRUCT_H
     typedef struct {
-        /* DHT11: Set up the pin as an output: Low status  */
-        dht11_comm_out_fptr_t     dht11_set_low;
-
-        /* DHT11: Set up the pin as an output: High status  */
-        dht11_comm_out_fptr_t     dht11_set_high;
-
-        /* DHT11: Read pin  */
-        dht11_comm_in_fptr_t      dht11_read_pin;
-
-        /* DHT11: Delay function  */
-        dht11_delay_fptr_t        dht11_delay_us;
-    } DHT11_comm_t;
-
-
-    typedef struct {
         /* Outputs  */
         uint8_t   temperature;                    /*!<  Temperature value             */
         uint8_t   humidity;                       /*!<  Relative humidity value       */
@@ -169,15 +128,15 @@
     
     /** It configures the GPIO peripheral.
       */
-    DHT11_status_t DHT11_Init       ( DHT11_comm_t myDHT11                          );
+    DHT11_status_t DHT11_Init       ( void                    );
 
     /** It gets the raw data: Temperature, Humidity and Checksum.
       */
-    DHT11_status_t DHT11_GetRawData ( DHT11_comm_t myDHT11, DHT11_data_t* myRawData );
+    DHT11_status_t DHT11_GetRawData ( DHT11_data_t* myRawData );
 
     /** It gets and calculates the current data: Temperature, Humidity and Checksum.
       */
-    DHT11_status_t DHT11_GetData    ( DHT11_comm_t myDHT11, DHT11_data_t* myData    );
+    DHT11_status_t DHT11_GetData    ( DHT11_data_t* myData    );
     
     
 private: