diff --git a/os/various/devices_lib/sensors/mcp9808/mcp9808.h b/os/various/devices_lib/sensors/mcp9808/mcp9808.h index 74540b43..6a8725d5 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. */ @@ -55,6 +54,13 @@ typedef struct { uint16_t cfg; } MCP9808_drv; +/** + * @brief MCP9808 measure reading + */ +typedef struct { + float temperature; +} MCP9808_measure; + /** * @brief Initialize the sensor driver */ @@ -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; } /**