WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
tsensor.h 文件参考
#include <stdint.h>
#include "errcode.h"
#include "tsensor_porting.h"
tsensor.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  tsensor_calibration_point
 Tsensor温度补偿点定义。 更多...
 

类型定义

typedef struct tsensor_calibration_point tsensor_calibration_point_t
 Tsensor温度补偿点定义。
 
typedef enum tsensor_samp_mode tsensor_samp_mode_t
 Tsensor设置采样模式定义。
 
typedef errcode_t(* uapi_tsensor_callback_t) (int8_t temp)
 Tsensor 回调类型定义。
 

枚举

enum  tsensor_samp_mode {
  TSENSOR_SAMP_MODE_AVERAGE_ONCE , TSENSOR_SAMP_MODE_AVERAGE_CYCLE , TSENSOR_SAMP_MODE_SINGLE_POINT_CYCLE , TSENSOR_SAMP_MODE_MAX_NUM ,
  TSENSOR_SAMP_MODE_NONE = TSENSOR_SAMP_MODE_MAX_NUM
}
 Tsensor设置采样模式定义。 更多...
 

函数

errcode_t uapi_tsensor_init (void)
 初始化Tsensor。
 
errcode_t uapi_tsensor_deinit (void)
 去初始化Tsensor。
 
errcode_t uapi_tsensor_start_inquire_mode (tsensor_samp_mode_t mode, uint32_t period)
 配置Tsensor的采样模式。
 
errcode_t uapi_tsensor_enable_outtemp_interrupt (uapi_tsensor_callback_t callback, int8_t temp_threshold_low, int8_t temp_threshold_high)
 启用tsensor,当温度超出阈值时触发中断。
 
errcode_t uapi_tsensor_enable_overtemp_interrupt (uapi_tsensor_callback_t callback, int8_t overtemp)
 启用Tsensor,当温度过温时触发中断。
 
errcode_t uapi_tsensor_enable_done_interrupt (uapi_tsensor_callback_t callback)
 启用Tsensor,当温度采集完毕时触发中断。
 
errcode_t uapi_tsensor_get_current_temp (int8_t *temp)
 获取当前温度值。
 
void uapi_tsensor_set_calibration_single_point (tsensor_calibration_point_t *point)
 设置单点校准参数。
 
void uapi_tsensor_set_calibration_two_points (const tsensor_calibration_point_t *point_first, const tsensor_calibration_point_t *point_second)
 设置两点校准参数。
 
errcode_t uapi_tsensor_set_multilevel_threshold_value (tsensor_multilevel_value_t level, int16_t temp)
 设置多步温度阈值的阈值。
 
errcode_t uapi_tsensor_set_multilevel_threshold_en (tsensor_multilevel_en_t level, uapi_tsensor_callback_t callback)
 设置两点校准参数。