diff options
| -rw-r--r-- | os/various/devices_lib/sensors/mcp9808/mcp9808.h | 13 | 
1 files changed, 10 insertions, 3 deletions
| diff --git a/os/various/devices_lib/sensors/mcp9808/mcp9808.h b/os/various/devices_lib/sensors/mcp9808/mcp9808.h index 74540b4..6a8725d 100644 --- a/os/various/devices_lib/sensors/mcp9808/mcp9808.h +++ b/os/various/devices_lib/sensors/mcp9808/mcp9808.h @@ -44,7 +44,6 @@ typedef enum __attribute__ ((__packed__)) {      MCP9808_ERROR     = 6,            /**< Error.                          */  } MCP9808_state_t; -  /**   * @brief   MCP9808 configuration structure.   */ @@ -56,6 +55,13 @@ typedef struct {  } MCP9808_drv;  /** + * @brief   MCP9808 measure reading + */ +typedef struct { +    float temperature; +} MCP9808_measure; + +/**   * @brief   Initialize the sensor driver   */  void @@ -102,7 +108,7 @@ MCP9808_setResolution(MCP9808_drv *drv,  static inline unsigned int  MCP9808_getBootupTime(MCP9808_drv *drv) {      (void)drv; -    return 15; +    return 0; /* no info found */  };  /** @@ -114,7 +120,7 @@ MCP9808_getBootupTime(MCP9808_drv *drv) {  static inline unsigned int  MCP9808_getStartupTime(MCP9808_drv *drv) {      (void)drv; -    return 0; +    return 0; /* no info found */  };  /** @@ -131,6 +137,7 @@ MCP9808_getAcquisitionTime(MCP9808_drv *drv);   */  static inline msg_t  MCP9808_startMeasure(MCP9808_drv *drv) { +    return MSG_OK;  }  /** | 
