亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pwm.c

?? KEIL驅動 各方面各 你的看法女士的煩惱 方看到你
?? C
?? 第 1 頁 / 共 5 頁
字號:
    HWREG(ulBase + PWM_O_ISC) = PWM_ISC_INTFAULT0;
}

//*****************************************************************************
//
//! Gets the interrupt status for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
//! \param bMasked specifies whether masked or raw interrupt status is
//! returned.
//!
//! If \e bMasked is set as \b true, then the masked interrupt status is
//! returned; otherwise, the raw interrupt status will be returned.
//!
//! \return The current interrupt status, enumerated as a bit field of
//! \b PWM_INT_GEN_0, \b PWM_INT_GEN_1, \b PWM_INT_GEN_2, \b PWM_INT_GEN_3,
//! \b PWM_INT_FAULT0, \b PWM_INT_FAULT1, \b PWM_INT_FAULT2, and
//! \b PWM_INT_FAULT3.
//!
//*****************************************************************************
unsigned long
PWMIntStatus(unsigned long ulBase, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);

    //
    // Read and return either the module's raw or enabled interrupt status.
    //
    if(bMasked == true)
    {
        return(HWREG(ulBase + PWM_O_ISC));
    }
    else
    {
        return(HWREG(ulBase + PWM_O_RIS));
    }
}

//*****************************************************************************
//
//! Clears the fault interrupt for a PWM module.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulFaultInts specifies the fault interrupts to clear.
//!
//! Clears one or more fault interrupts by writing to the appropriate bit of
//! the PWM interrupt status register.  The parameter \e ulFaultInts must be
//! the logical OR of any of \b PWM_INT_FAULT0, \b PWM_INT_FAULT1,
//! \b PWM_INT_FAULT2, or \b PWM_INT_FAULT3.
//!
//! When running on a device supporting extended PWM fault handling, the fault
//! interrupts are derived by performing a logical OR of each of the configured
//! fault trigger signals for a given generator.  Therefore, these interrupts
//! are not directly related to the four possible FAULTn inputs to the device
//! but indicate that a fault has been signalled to one of the four possible
//! PWM generators.  On a device without extended PWM fault handling, the
//! interrupt is directly related to the state of the single FAULT pin.
//!
//! \note Since there is a write buffer in the Cortex-M3 processor, it may take
//! several cycles before the interrupt source is actually cleared.  Therefore,
//! it is recommended that the interrupt source be cleared early in the
//! interrupt handler (as opposed to the very last action) to avoid returning
//! from the interrupt handler before the interrupt source is actually cleared.
//! Failure to do so may result in the interrupt handler being immediately
//! reentered (since NVIC still sees the interrupt source asserted).
//!
//! \return None.
//
//*****************************************************************************
void
PWMFaultIntClearExt(unsigned long ulBase, unsigned long ulFaultInts)
{
    //
    // Check the arguments.
    //
    ASSERT(ulBase == PWM_BASE);
    ASSERT((ulFaultInts & ~(PWM_INT_FAULT0 | PWM_INT_FAULT1 |
                            PWM_INT_FAULT2 | PWM_INT_FAULT3)) == 0);

    //
    // Clear the supplied fault bits.
    //
    HWREG(ulBase + PWM_O_ISC) = ulFaultInts;
}

//*****************************************************************************
//
//! Configures the minimum fault period and fault pin senses for a given
//! PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator whose fault configuration is being set.
//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulMinFaultPeriod is the minimum fault active period expressed in
//! PWM clock cycles.
//! \param ulFaultSenses indicates which sense of each FAULT input should be
//! considered the ``asserted'' state.  Valid values are logical OR
//! combinations of \b PWM_FAULTn_SENSE_HIGH and \b PWM_FAULTn_SENSE_LOW.
//!
//! This function sets the minimum fault period for a given generator along
//! with the sense of each of the 4 possible fault inputs.  The minimum fault
//! period is expressed in PWM clock cycles and takes effect only if
//! PWMGenConfigure() is called with flag \b PWM_GEN_MODE_FAULT_PER set in the
//! \e ulConfig parameter.  When a fault input is asserted, the minimum fault
//! period timer ensures that it remains asserted for at least the number of
//! clock cycles specified.
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
//!
//! \return None.
//
//*****************************************************************************
void
PWMGenFaultConfigure(unsigned long ulBase, unsigned long ulGen,
                     unsigned long ulMinFaultPeriod,
                     unsigned long ulFaultSenses)
{
    //
    // Check the arguments.
    //
    ASSERT(HWREG(SYSCTL_DC5) & SYSCTL_DC5_PWMEFLT);
    ASSERT(ulBase == PWM_BASE);
    ASSERT(PWMGenValid(ulGen));
    ASSERT(ulMinFaultPeriod < PWM_X_MINFLTPER_M);
    ASSERT((ulFaultSenses & ~(PWM_FAULT0_SENSE_HIGH | PWM_FAULT0_SENSE_LOW |
                              PWM_FAULT1_SENSE_HIGH | PWM_FAULT1_SENSE_LOW |
                              PWM_FAULT2_SENSE_HIGH | PWM_FAULT2_SENSE_LOW |
                              PWM_FAULT3_SENSE_HIGH | PWM_FAULT3_SENSE_LOW)) ==
           0);

    //
    // Write the minimum fault period.
    //
    HWREG(PWM_GEN_BADDR(ulBase, ulGen) + PWM_O_X_MINFLTPER) = ulMinFaultPeriod;

    //
    // Write the fault senses.
    //
    HWREG(PWM_GEN_EXT_BADDR(ulBase, ulGen) + PWM_O_X_FLTSEN) = ulFaultSenses;
}

//*****************************************************************************
//
//! Configures the set of fault triggers for a given PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator whose fault triggers are being set.  Must
//! be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulGroup indicates the subset of possible faults that are to be
//! configured.  This must be \b PWM_FAULT_GROUP_0.
//! \param ulFaultTriggers defines the set of inputs that are to contribute
//! towards generation of the fault signal to the given PWM generator.  For
//! \b PWM_FAULT_GROUP_0, this will be the logical OR of \b PWM_FAULT_FAULT0,
//! \b PWM_FAULT_FAULT1, \b PWM_FAULT_FAULT2, or \b PWM_FAULT_FAULT3.
//!
//! This function allows selection of the set of fault inputs that will be
//! combined to generate a fault condition to a given PWM generator.  By
//! default, all generators use only FAULT0 (for backwards compatibility) but
//! if PWMGenConfigure() is called with flag \b PWM_GEN_MODE_FAULT_SRC in the
//! \e ulConfig parameter, extended fault handling is enabled and this function
//! must be called to configure the fault triggers.
//!
//! The fault signal to the PWM generator is generated by ORing together each
//! of the signals whose inputs are specified in the \e ulFaultTriggers
//! parameter after having adjusted the sense of each FAULTn input based on the
//! configuration previously set using a call to PWMGenFaultConfigure().
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
//!
//! \return None.
//
//*****************************************************************************
void
PWMGenFaultTriggerSet(unsigned long ulBase, unsigned long ulGen,
                      unsigned long ulGroup, unsigned long ulFaultTriggers)
{
    //
    // Check for valid parameters.
    //
    ASSERT(HWREG(SYSCTL_DC5) & SYSCTL_DC5_PWMEFLT);
    ASSERT(ulBase == PWM_BASE);
    ASSERT(PWMGenValid(ulGen));
    ASSERT(ulGroup == PWM_FAULT_GROUP_0);
    ASSERT((ulFaultTriggers & ~(PWM_FAULT_FAULT0 | PWM_FAULT_FAULT1 |
                                PWM_FAULT_FAULT2 | PWM_FAULT_FAULT3)) == 0);

    //
    // Write the fault triggers to the appropriate register.
    //
    HWREG(PWM_GEN_BADDR(ulBase, ulGen) + PWM_O_X_FLTSRC0) = ulFaultTriggers;
}

//*****************************************************************************
//
//! Returns the set of fault triggers currently configured for a given PWM
//! generator.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator whose fault triggers are being queried.
//! Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or \b PWM_GEN_3.
//! \param ulGroup indicates the subset of faults that are being queried.  This
//! must be \b PWM_FAULT_GROUP_0.
//!
//! This function allows an application to query the current set of inputs that
//! contribute towards the generation of a fault condition to a given PWM
//! generator.
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
//!
//! \return Returns the current fault triggers configured for the fault group
//! provided.  For \b PWM_FAULT_GROUP_0, the returned value will be a logical
//! OR of \b PWM_FAULT_FAULT0, \b PWM_FAULT_FAULT1, \b PWM_FAULT_FAULT2, or
//! \b PWM_FAULT_FAULT3.
//
//*****************************************************************************
unsigned long
PWMGenFaultTriggerGet(unsigned long ulBase, unsigned long ulGen,
                      unsigned long ulGroup)
{
    //
    // Check for valid parameters.
    //
    ASSERT(HWREG(SYSCTL_DC5) & SYSCTL_DC5_PWMEFLT);
    ASSERT(ulBase == PWM_BASE);
    ASSERT(PWMGenValid(ulGen));
    ASSERT(ulGroup == PWM_FAULT_GROUP_0);

    //
    // Return the current fault triggers.
    //
    return(HWREG(PWM_GEN_BADDR(ulBase, ulGen) + PWM_O_X_FLTSRC0));
}

//*****************************************************************************
//
//! Returns the current state of the fault triggers for a given PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator whose fault trigger states are being
//! queried.  Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
//! \b PWM_GEN_3.
//! \param ulGroup indicates the subset of faults that are being queried.  This
//! must be \b PWM_FAULT_GROUP_0.
//!
//! This function allows an application to query the current state of each of
//! the fault trigger inputs to a given PWM generator.  The current state of
//! each fault trigger input is returned unless PWMGenConfigure() has
//! previously been called with flag \b PWM_GEN_MODE_LATCH_FAULT in the
//! \e ulConfig parameter in which case the returned status is the latched
//! fault trigger status.
//!
//! If latched faults are configured, the application must call
//! PWMGenFaultClear() to clear each trigger.
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
//!
//! \return Returns the current state of the fault triggers for the given PWM
//! generator.  A set bit indicates that the associated trigger is active.  For
//! \b PWM_FAULT_GROUP_0, the returned value will be a logical OR of
//! \b PWM_FAULT_FAULT0, \b PWM_FAULT_FAULT1, \b PWM_FAULT_FAULT2, or
//! \b PWM_FAULT_FAULT3.
//
//*****************************************************************************
unsigned long
PWMGenFaultStatus(unsigned long ulBase, unsigned long ulGen,
                  unsigned long ulGroup)
{
    //
    // Check for valid parameters.
    //
    ASSERT(HWREG(SYSCTL_DC5) & SYSCTL_DC5_PWMEFLT);
    ASSERT(ulBase == PWM_BASE);
    ASSERT(PWMGenValid(ulGen));
    ASSERT(ulGroup == PWM_FAULT_GROUP_0);

    //
    // Return the current fault status.
    //
    return(HWREG(PWM_GEN_EXT_BADDR(ulBase, ulGen) + PWM_O_X_FLTSTAT0));
}

//*****************************************************************************
//
//! Clears one or more latched fault triggers for a given PWM generator.
//!
//! \param ulBase is the base address of the PWM module.
//! \param ulGen is the PWM generator whose fault trigger states are being
//! queried.  Must be one of \b PWM_GEN_0, \b PWM_GEN_1, \b PWM_GEN_2, or
//! \b PWM_GEN_3.
//! \param ulGroup indicates the subset of faults that are being queried.  This
//! must be \b PWM_FAULT_GROUP_0.
//! \param ulFaultTriggers is the set of fault triggers which are to be
//! cleared.
//!
//! This function allows an application to clear the fault triggers for a given
//! PWM generator.  This is only required if PWMGenConfigure() has previously
//! been called with flag \b PWM_GEN_MODE_LATCH_FAULT in parameter \e ulConfig.
//!
//! \note This function is only available on devices supporting extended PWM
//! fault handling.
//!
//! \return None.
//
//*****************************************************************************
void
PWMGenFaultClear(unsigned long ulBase, unsigned long ulGen,
                 unsigned long ulGroup, unsigned long ulFaultTriggers)
{
    //
    // Check for valid parameters.
    //
    ASSERT(HWREG(SYSCTL_DC5) & SYSCTL_DC5_PWMEFLT);
    ASSERT(ulBase == PWM_BASE);
    ASSERT(PWMGenValid(ulGen));
    ASSERT(ulGroup == PWM_FAULT_GROUP_0);
    ASSERT((ulFaultTriggers & ~(PWM_FAULT_FAULT0 | PWM_FAULT_FAULT1 |
                                PWM_FAULT_FAULT2 | PWM_FAULT_FAULT3)) == 0);

    //
    // Clear the given faults.
    //
    HWREG(PWM_GEN_EXT_BADDR(ulBase, ulGen) + PWM_O_X_FLTSTAT0) =
        ulFaultTriggers;
}

//*****************************************************************************
//
// Close the Doxygen group.
//! @}
//
//*****************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区不卡| 蜜臀av亚洲一区中文字幕| 亚洲欧美视频在线观看视频| 久久影院电视剧免费观看| 久久综合久久久久88| 国产视频一区二区在线观看| 国产精品―色哟哟| 日韩毛片在线免费观看| 一区二区三区在线播放| 午夜精品成人在线视频| 人人精品人人爱| 免费观看成人鲁鲁鲁鲁鲁视频| 日本中文字幕一区二区视频| 狠狠色丁香婷综合久久| 国产一区二区视频在线播放| 岛国精品一区二区| 91久久线看在观草草青青| 欧美日韩视频专区在线播放| 日韩一卡二卡三卡四卡| 精品理论电影在线| 国产精品沙发午睡系列990531| 国产日韩精品视频一区| 一个色妞综合视频在线观看| 日韩黄色在线观看| 国产精品一二三在| 91丨九色丨蝌蚪富婆spa| 欧美日韩激情一区二区| 欧美一区二区视频在线观看2022 | 欧美精品国产精品| 精品久久久久久综合日本欧美| 国产精品视频在线看| 亚洲女人的天堂| 日本一不卡视频| 成人免费高清在线| 欧美午夜视频网站| 精品国产123| 国产精品久久777777| 日韩精品高清不卡| 国产成人午夜精品5599| 欧美日韩一区久久| 国产免费观看久久| 亚洲人成网站在线| 国产精品亚洲а∨天堂免在线| proumb性欧美在线观看| 欧美高清激情brazzers| 国产午夜亚洲精品午夜鲁丝片| 日韩一区精品视频| 欧美性大战久久| 中文字幕一区二区三区在线不卡 | 91国偷自产一区二区三区观看| 久久亚洲一级片| 日韩电影一区二区三区四区| 在线国产电影不卡| 亚洲欧美中日韩| 丁香啪啪综合成人亚洲小说 | 看片网站欧美日韩| 欧美日韩国产成人在线免费| 亚洲欧美偷拍三级| 91在线精品一区二区三区| 久久免费看少妇高潮| 久久国产精品72免费观看| 欧美日韩高清一区二区三区| 一区二区三区不卡视频 | 亚洲一区二区三区在线| 91美女视频网站| 日本一区二区三区dvd视频在线| 国产一区二区三区精品欧美日韩一区二区三区 | 精品乱码亚洲一区二区不卡| 日日嗨av一区二区三区四区| 欧美性感一类影片在线播放| 亚洲欧美色一区| 色综合咪咪久久| 亚洲同性同志一二三专区| 99免费精品视频| 国产精品久久午夜夜伦鲁鲁| 成人性生交大片免费看中文| 欧美经典一区二区| 懂色av一区二区三区免费观看| 国产色一区二区| 国产精品18久久久久久久久久久久 | 久久久久99精品一区| 国产精品资源在线看| 国产午夜亚洲精品理论片色戒 | 欧美激情中文不卡| 国产成人在线影院| 国产精品乱码久久久久久| 白白色亚洲国产精品| 亚洲男人都懂的| 欧美性大战久久久久久久 | 日韩精品最新网址| 国产综合久久久久久久久久久久| 久久色成人在线| 豆国产96在线|亚洲| 国产精品第一页第二页第三页| jvid福利写真一区二区三区| 又紧又大又爽精品一区二区| 欧美日韩国产综合一区二区| 午夜精品一区二区三区三上悠亚| 日韩欧美成人激情| 国产成人夜色高潮福利影视| 亚洲欧洲av另类| 欧美绝品在线观看成人午夜影视| 青草av.久久免费一区| 久久久久88色偷偷免费| 色综合亚洲欧洲| 日韩福利视频导航| 26uuu国产日韩综合| av在线一区二区| 亚洲不卡一区二区三区| 日韩久久精品一区| www.亚洲在线| 亚洲高清免费视频| 欧美mv日韩mv国产网站| 懂色一区二区三区免费观看| 亚洲欧美日韩国产一区二区三区| 欧美高清视频www夜色资源网| 国产一区二区日韩精品| 亚洲欧美日韩国产成人精品影院| 欧美精品tushy高清| 国产精品羞羞答答xxdd| 亚洲国产毛片aaaaa无费看| 精品久久久久一区| 日本高清无吗v一区| 另类综合日韩欧美亚洲| 中文字幕中文乱码欧美一区二区| 精品视频一区二区不卡| 国产麻豆日韩欧美久久| 一区二区三区精品视频在线| www国产精品av| 91福利小视频| 成人中文字幕合集| 日产欧产美韩系列久久99| 亚洲欧洲成人av每日更新| 欧美成人video| 91搞黄在线观看| 国产超碰在线一区| 天天综合色天天| 亚洲欧洲制服丝袜| 久久人人爽人人爽| 欧美日韩中文另类| 91在线观看成人| 久草中文综合在线| 亚洲成人先锋电影| 国产精品毛片无遮挡高清| 日韩写真欧美这视频| 色噜噜久久综合| 国产成人精品网址| 久久丁香综合五月国产三级网站| 一区二区三区中文在线| 久久久青草青青国产亚洲免观| 欧美日韩国产一二三| www.亚洲激情.com| 国内精品国产成人国产三级粉色| 亚洲成人自拍一区| 亚洲欧美日韩在线| 国产午夜久久久久| 26uuu另类欧美亚洲曰本| 欧美日韩国产免费一区二区| 91在线无精精品入口| 国产福利91精品一区二区三区| 蜜桃av噜噜一区| 亚洲1区2区3区4区| 一区二区三区蜜桃| 亚洲人成影院在线观看| 国产精品久久久久毛片软件| 欧美电视剧在线观看完整版| 欧美精品黑人性xxxx| 欧美午夜理伦三级在线观看| 91亚洲精华国产精华精华液| 国产精品一区二区男女羞羞无遮挡| 日韩电影一二三区| 日韩精品电影一区亚洲| 亚洲电影在线播放| 一区二区日韩av| 亚洲人精品一区| 亚洲另类春色国产| 亚洲精品福利视频网站| 亚洲美女区一区| 亚洲视频电影在线| 日韩美女视频19| 亚洲三级在线观看| 亚洲欧美色综合| 一二三四社区欧美黄| 亚洲永久精品国产| 亚洲午夜国产一区99re久久| 亚洲精品亚洲人成人网 | 欧美群妇大交群中文字幕| 一本色道久久综合狠狠躁的推荐| 91蜜桃免费观看视频| 91美女蜜桃在线| 色婷婷综合久久久久中文 | 三级成人在线视频| 蜜芽一区二区三区| 亚洲日本在线天堂| 一区二区日韩电影| 欧美一区二区免费视频| 免费在线观看不卡| 中文字幕乱码亚洲精品一区| jizzjizzjizz欧美| 一区二区三区 在线观看视频|