calibration.c
来自「cypress cy3721做的外部无线结点。感知温度后将温度值反给中心结点。」· C语言 代码 · 共 37 行
C
37 行
//*****************************************************************************
//*****************************************************************************
// FILENAME: calibration.c
// @Version@
// `@PSOC_VERSION`
//
// DESCRIPTION: This files contains the calibration constansts for the
// ADC. Currently these values are default values that
// are not calibrated.
//
//-----------------------------------------------------------------------------
// Copyright (c) Cypress MicroSystems 2004. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#pragma abs_address:0x1F80
const int CountsPerVolt = 25206; // ADC gain for 0 to 2.6 volt range.
#pragma end_abs_address
#pragma abs_address:0x1F82
const int ADC_Offset = 0; // ADC offset in counts
#pragma end_abs_address
#pragma abs_address:0x1F84
// This array of offsets allows for custom calibration
// of each input that uses the mVolts channel. The offset
// will be in the drivers native units. For the mVolts
// driver it will be in mVolts. For a temperature driver
// it will be in tenths of degrees, etc.
const int imVolts_Chan_Offset[32] = {
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
};
#pragma end_abs_address
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?