📄 ds1620.h
字号:
#ifndef _DS1620_H
#define _DS1620_H
#define SDB_DS1620 60000
#define SDC_READ_TEMP_HI (SDB_DS1620+0)
#define SDC_WRITE_TEMP_HI (SDB_DS1620+1)
#define SDC_READ_TEMP_LO (SDB_DS1620+2)
#define SDC_WRITE_TEMP_LO (SDB_DS1620+3)
#define SDC_START_CONVERT (SDB_DS1620+4)
#define SDC_STOP_CONVERT (SDB_DS1620+5)
#define SDC_WRITE_CONFIG (SDB_DS1620+6)
#define SDC_READ_CONFIG (SDB_DS1620+7)
#define SDC_GET_UPPER_LIMIT SDC_READ_TEMP_HI
#define SDC_SET_UPPER_LIMIT SDC_WRITE_TEMP_HI
#define SDC_GET_LOWER_LIMIT SDC_READ_TEMP_LO
#define SDC_SET_LOWER_LIMIT SDC_WRITE_TEMP_LO
typedef struct{
LineLevelStruct Rst;
LineLevelStruct Clk;
LineLevelStruct Dq;
LineLevelStruct Dir;
}Ds1620CfgStruct;
char *Ds1620BspInit(int DEV, char *FreeMemPtr, Ds1620CfgStruct *pCfg);
#endif /* _DS1620_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -