cmx_mvolts.h

来自「cypress cy3721做的外部无线结点。感知温度后将温度值反给中心结点。」· C头文件 代码 · 共 43 行

H
43
字号
//*****************************************************************************
//*****************************************************************************
//  FILENAME:  CMX_mVolts.h
//  Version: 1.0, Updated on 2008/6/23 at 14:8:50
//  
//
//  DESCRIPTION:  Header file for the mVolts Driver
//-----------------------------------------------------------------------------
//      Copyright (c) Cypress MicroSystems 2001-2003. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************

// Volts input Parameter block
//
#include <m8c.h>

#ifndef CMX_MVOLTS_DRV_HEADER
#define CMX_MVOLTS_DRV_HEADER

// mVolts input Parameter block

typedef struct
{
   BYTE ID;      // Instance ID.  This ID value will be set upon code generation
                 // and will refer to the index in the array of pointers to 
                 // parameter blocks.

   BYTE InPort;  //  This is actually the index of the input channel to the ADC
                 //  scan array. The scan array in independent of the port or pin
                 //  that the input is on.

   int  ScaleNumerator;    // Volts scaling numerator
   int  ScaleDenominator;  // Volts scaling denominator

}CMX_mVolts_ParameterBlock;

// Function prototypes
void CMX_mVolts_Instantiate( const CMX_mVolts_ParameterBlock * thisBLK );
int  CMX_mVolts_GetValue( const CMX_mVolts_ParameterBlock * thisBLK );


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?