generated from hulk/gd32e23x_template_cmake_vscode
add tmp112a code
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
/******************************************************************************/
|
||||
/* TMP112A I2C Address */
|
||||
#define TMP112A_ADDR (0x48) // 7-bit address (ADD0=GND)
|
||||
#define TMP112A_ADDR (0x49) // 7-bit address (ADD0=GND)
|
||||
|
||||
/* Register Addresses */
|
||||
/******************************************************************************/
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
/* Default Configuration */
|
||||
/******************************************************************************/
|
||||
#define TMP112A_CONFIG_DEFAULT (TMP112A_RESOLUTION_12BIT | TMP112A_RATE_4HZ)
|
||||
#define TMP112A_CONFIG_DEFAULT (TMP112A_RESOLUTION_12BIT | TMP112A_RATE_8HZ)
|
||||
|
||||
/* Temperature Conversion Constants */
|
||||
/******************************************************************************/
|
||||
@@ -111,6 +111,8 @@ tmp112a_status_t tmp112a_config(uint16_t config);
|
||||
*/
|
||||
tmp112a_status_t tmp112a_read_temperature(tmp112a_result_t *result);
|
||||
|
||||
void tmp112a_get_raw_temperature_value(uint8_t *value);
|
||||
|
||||
/*!
|
||||
\brief 设置温度阈值
|
||||
\param[in] low_temp: 低温阈值 (°C)
|
||||
|
Reference in New Issue
Block a user