⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adcfd.h

📁 PWM同步
💻 H
📖 第 1 页 / 共 2 页
字号:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : AdcFD.H
**     Project   : Iadc
**     Processor : 56F8346
**     Beantype  : ADC
**     Version   : Bean 01.329, Driver 01.14, CPU db: 2.87.097
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 2009-2-10, 11:45
**     Abstract  :
**         This device "ADC" implements an A/D converter,
**         its control methods and interrupt/event handling procedure.
**     Settings  :
**         AD control register         : ADCB_ADCR1  [62016]
**         AD control register         : ADCB_ADCR2  [62017]
**         AD control register         : ADCB_ADZCC  [62018]
**         AD control register         : ADCB_ADLST1 [62019]
**         AD control register         : ADCB_ADLST2 [62020]
**         AD control register         : ADCB_ADSDIS [62021]
**         AD control register         : ADCB_ADSTAT [62022]
**         AD control register         : ADCB_ADLSTAT [62023]
**         AD control register         : ADCB_ADZCSTAT [62024]
**         AD control register         : ADCB_ADLLMT0 [62033]
**         AD control register         : ADCB_ADLLMT1 [62034]
**         AD control register         : ADCB_ADLLMT2 [62035]
**         AD control register         : ADCB_ADLLMT3 [62036]
**         AD control register         : ADCB_ADLLMT4 [62037]
**         AD control register         : ADCB_ADLLMT5 [62038]
**         AD control register         : ADCB_ADLLMT6 [62039]
**         AD control register         : ADCB_ADLLMT7 [62040]
**         AD control register         : ADCB_ADHLMT0 [62041]
**         AD control register         : ADCB_ADHLMT1 [62042]
**         AD control register         : ADCB_ADHLMT2 [62043]
**         AD control register         : ADCB_ADHLMT3 [62044]
**         AD control register         : ADCB_ADHLMT4 [62045]
**         AD control register         : ADCB_ADHLMT5 [62046]
**         AD control register         : ADCB_ADHLMT6 [62047]
**         AD control register         : ADCB_ADHLMT7 [62048]
**         AD control register         : ADCB_ADOFS0 [62049]
**         AD control register         : ADCB_ADOFS1 [62050]
**         AD control register         : ADCB_ADOFS2 [62051]
**         AD control register         : ADCB_ADOFS3 [62052]
**         AD control register         : ADCB_ADOFS4 [62053]
**         AD control register         : ADCB_ADOFS5 [62054]
**         AD control register         : ADCB_ADOFS6 [62055]
**         AD control register         : ADCB_ADOFS7 [62056]
**         AD control register         : ADCB_ADPOWER [62057]
**         AD result register          : ADCBres7    [62032]
**         AD result register          : ADCBres7    [62032]
**         Interrupt name              : INT_ADCB_Complete
**         Interrupt enable reg.       : INTC_IPR8   [61864]
**         Priority                    : 1
**         User handling procedure     : AdcFD_OnEnd
**         Number of conversions       : 1
**         AD resolution               : 12-bit
**
**         Input pins
**
**
**
**         Initialization:
**              Conversion             : Enabled
**              Event                  : Enabled
**         High speed mode
**             Prescaler               : divide-by-24
**     Contents  :
**         Enable           - byte AdcFD_Enable(void);
**         Disable          - byte AdcFD_Disable(void);
**         Start            - byte AdcFD_Start(void);
**         Measure          - byte AdcFD_Measure(bool WaitForResult);
**         EnableIntTrigger - byte AdcFD_EnableIntTrigger(void);
**         GetValue         - byte AdcFD_GetValue(void* Values);
**         GetChanValue     - byte AdcFD_GetChanValue(byte Channel,void* Value);
**         GetValue8        - byte AdcFD_GetValue8(byte *Values);
**         GetChanValue8    - byte AdcFD_GetChanValue8(byte Channel,byte *Value);
**         GetValue16       - byte AdcFD_GetValue16(word *Values);
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2005
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

/* MODULE AdcFD. */

#ifndef __AdcFD
#define __AdcFD

/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"

/* MODULE AdcFD. */



void AdcFD_InterruptCC(void);
/*
** ===================================================================
**     Method      :  AdcFD_InterruptCC (bean ADC)
**
**     Description :
**         The method services the conversion complete interrupt of the 
**         selected peripheral(s) and eventually invokes the beans 
**         event(s).
**         This method is internal. It is used by Processor Expert only.
** ===================================================================
*/

byte AdcFD_Enable(void);
/*
** ===================================================================
**     Method      :  AdcFD_Enable (bean ADC)
**
**     Description :
**         Enables A/D converter bean. <Events> may be generated
**         (<DisableEvent>/<EnableEvent>). If possible, this method
**         switches on A/D converter device, voltage reference, etc.
**     Parameters  : None
**     Returns     :
**         ---             - Error code, possible codes:
**                           ERR_OK - OK
**                           ERR_SPEED - This device does not work in
**                           the active speed mode
** ===================================================================
*/

byte AdcFD_Disable(void);
/*
** ===================================================================
**     Method      :  AdcFD_Disable (bean ADC)
**
**     Description :
**         Disables A/D converter bean. No <events> will be
**         generated. If possible, this method switches off A/D
**         converter device, voltage reference, etc.
**     Parameters  : None
**     Returns     :
**         ---             - Error code, possible codes:
**                           ERR_OK - OK
**                           ERR_SPEED - This device does not work in
**                           the active speed mode
** ===================================================================
*/

byte AdcFD_Start(void);
/*
** ===================================================================
**     Method      :  AdcFD_Start (bean ADC)
**
**     Description :
**         This method starts continuous conversion of the A/D
**         channels. When each measurement on all channels has
**         finished the <OnEnd > event may be invoked. This method
**         is not available if the <interrupt service> is disabled
**         and the device doesn't support the continuous mode. Note:
**         If time of measurement is too short and the instruction
**         clock is too slow then the conversion complete interrupt
**         and its handler may cause a system overflow.
**     Parameters  : None
**     Returns     :
**         ---             - Error code, possible codes:
**                           ERR_OK - OK
**                           ERR_SPEED - This device does not work in
**                           the active speed mode
**                           ERR_DISABLED - Device is disabled
**                           ERR_BUSY - A conversion is already
**                           running
** ===================================================================
*/

byte AdcFD_Measure(bool WaitForResult);
/*
** ===================================================================
**     Method      :  AdcFD_Measure (bean ADC)
**
**     Description :
**         This method performs one measurement on all channels that
**         are set in the bean inspector. (Note: If the <number of
**         conversions> is more than one the conversion of A/D
**         channels is performed specified number of times.)
**     Parameters  :
**         NAME            - DESCRIPTION
**         WaitForResult   - Wait for a result
**                           of a conversion. If <interrupt service>
**                           is disabled, A/D peripheral doesn't
**                           support measuring all channels at once
**                           or <Autoscan mode> property isn't
**                           enabled and at the same time the <number
**                           of channel> is greater than 1, then the
**                           WaitForResult parameter is ignored and
**                           the method waits for each result every
**                           time. If the <interrupt service> is
**                           disabled and a <number of conversions>
**                           is greater than 1, the parameter is
**                           ignored and the method also waits for
**                           each result every time.
**     Returns     :
**         ---             - Error code, possible codes:
**                           ERR_OK - OK
**                           ERR_SPEED - This device does not work in
**                           the active speed mode
**                           ERR_DISABLED - Device is disabled
**                           ERR_BUSY - A conversion is already
**                           running
** ===================================================================
*/

byte AdcFD_EnableIntTrigger(void);

⌨️ 快捷键说明

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