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

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

?? i2c.c

?? 基于TI公司Cortex-M3的uart超級通信開發
?? C
?? 第 1 頁 / 共 3 頁
字號:
    HWREG(ulBase + I2C_O_MIMR) = 1;
}

//*****************************************************************************
//
//! Enables the I2C Slave interrupt.
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
//! Enables the I2C Slave interrupt source.
//!
//! \return None.
//
//*****************************************************************************
void
I2CSlaveIntEnable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Enable the slave interrupt.
    //
    HWREG(ulBase + I2C_O_SIMR) |= I2C_SLAVE_INT_DATA;
}

//*****************************************************************************
//
//! Enables individual I2C Slave interrupt sources.
//!
//! \param ulBase is the base address of the I2C Slave module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be enabled.
//!
//! Enables the indicated I2C Slave interrupt sources.  Only the sources that
//! are enabled can be reflected to the processor interrupt; disabled sources
//! have no effect on the processor.
//!
//! The \e ulIntFlags parameter is the logical OR of any of the following:
//!
//! - \b I2C_SLAVE_INT_STOP - Stop condition detected interrupt
//! - \b I2C_SLAVE_INT_START - Start condition detected interrupt
//! - \b I2C_SLAVE_INT_DATA - Data interrupt
//!
//! \return None.
//
//*****************************************************************************
void
I2CSlaveIntEnableEx(unsigned long ulBase, unsigned long ulIntFlags)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Enable the slave interrupt.
    //
    HWREG(ulBase + I2C_O_SIMR) |= ulIntFlags;
}

//*****************************************************************************
//
//! Disables the I2C Master interrupt.
//!
//! \param ulBase is the base address of the I2C Master module.
//!
//! Disables the I2C Master interrupt source.
//!
//! \return None.
//
//*****************************************************************************
void
I2CMasterIntDisable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_MASTER_BASE) || (ulBase == I2C1_MASTER_BASE));

    //
    // Disable the master interrupt.
    //
    HWREG(ulBase + I2C_O_MIMR) = 0;
}

//*****************************************************************************
//
//! Disables the I2C Slave interrupt.
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
//! Disables the I2C Slave interrupt source.
//!
//! \return None.
//
//*****************************************************************************
void
I2CSlaveIntDisable(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Disable the slave interrupt.
    //
    HWREG(ulBase + I2C_O_SIMR) &= ~I2C_SLAVE_INT_DATA;
}

//*****************************************************************************
//
//! Disables individual I2C Slave interrupt sources.
//!
//! \param ulBase is the base address of the I2C Slave module.
//! \param ulIntFlags is the bit mask of the interrupt sources to be disabled.
//!
//! Disables the indicated I2C Slave interrupt sources.  Only the sources that
//! are enabled can be reflected to the processor interrupt; disabled sources
//! have no effect on the processor.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to I2CSlaveIntEnableEx().
//!
//! \return None.
//
//*****************************************************************************
void
I2CSlaveIntDisableEx(unsigned long ulBase, unsigned long ulIntFlags)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Disable the slave interrupt.
    //
    HWREG(ulBase + I2C_O_SIMR) &= ~ulIntFlags;
}

//*****************************************************************************
//
//! Gets the current I2C Master interrupt status.
//!
//! \param ulBase is the base address of the I2C Master module.
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
//! This returns the interrupt status for the I2C Master module.  Either the
//! raw interrupt status or the status of interrupts that are allowed to
//! reflect to the processor can be returned.
//!
//! \return The current interrupt status, returned as \b true if active
//! or \b false if not active.
//
//*****************************************************************************
tBoolean
I2CMasterIntStatus(unsigned long ulBase, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_MASTER_BASE) || (ulBase == I2C1_MASTER_BASE));

    //
    // Return either the interrupt status or the raw interrupt status as
    // requested.
    //
    if(bMasked)
    {
        return((HWREG(ulBase + I2C_O_MMIS)) ? true : false);
    }
    else
    {
        return((HWREG(ulBase + I2C_O_MRIS)) ? true : false);
    }
}

//*****************************************************************************
//
//! Gets the current I2C Slave interrupt status.
//!
//! \param ulBase is the base address of the I2C Slave module.
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
//! This returns the interrupt status for the I2C Slave module.  Either the raw
//! interrupt status or the status of interrupts that are allowed to reflect to
//! the processor can be returned.
//!
//! \return The current interrupt status, returned as \b true if active
//! or \b false if not active.
//
//*****************************************************************************
tBoolean
I2CSlaveIntStatus(unsigned long ulBase, tBoolean bMasked)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Return either the interrupt status or the raw interrupt status as
    // requested.
    //
    if(bMasked)
    {
        return((HWREG(ulBase + I2C_O_SMIS)) ? true : false);
    }
    else
    {
        return((HWREG(ulBase + I2C_O_SRIS)) ? true : false);
    }
}

//*****************************************************************************
//
//! Gets the current I2C Slave interrupt status.
//!
//! \param ulBase is the base address of the I2C Slave module.
//! \param bMasked is false if the raw interrupt status is requested and
//! true if the masked interrupt status is requested.
//!
//! This returns the interrupt status for the I2C Slave module.  Either the raw
//! interrupt status or the status of interrupts that are allowed to reflect to
//! the processor can be returned.
//!
//! \return Returns the current interrupt status, enumerated as a bit field of
//! values described in I2CSlaveIntEnableEx().
//
//*****************************************************************************
unsigned long
I2CSlaveIntStatusEx(unsigned long ulBase, tBoolean bMasked)
{
    unsigned long ulValue;

    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Return either the interrupt status or the raw interrupt status as
    // requested.
    //
    if(bMasked)
    {
        //
        // Workaround for I2C slave masked interrupt status register errata
        // (7.1) for Dustdevil Rev A0 devices.
        //
        if(CLASS_IS_DUSTDEVIL && REVISION_IS_A0)
        {
            ulValue = HWREG(ulBase + I2C_O_SRIS);
            return(ulValue & HWREG(ulBase + I2C_O_SIMR));
        }
        else
        {
            return(HWREG(ulBase + I2C_O_SMIS));
        }
    }
    else
    {
        return(HWREG(ulBase + I2C_O_SRIS));
    }
}

//*****************************************************************************
//
//! Clears I2C Master interrupt sources.
//!
//! \param ulBase is the base address of the I2C Master module.
//!
//! The I2C Master interrupt source is cleared, so that it no longer asserts.
//! This must be done in the interrupt handler to keep it from being called
//! again immediately upon exit.
//!
//! \note Since there is a write buffer in the Cortex-M3 processor, it may take
//! several clock 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
I2CMasterIntClear(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_MASTER_BASE) || (ulBase == I2C1_MASTER_BASE));

    //
    // Clear the I2C master interrupt source.
    //
    HWREG(ulBase + I2C_O_MICR) = I2C_MICR_IC;

    //
    // Workaround for I2C master interrupt clear errata for rev B Stellaris
    // devices.  For later devices, this write is ignored and therefore
    // harmless (other than the slight performance hit).
    //
    HWREG(ulBase + I2C_O_MMIS) = I2C_MICR_IC;
}

//*****************************************************************************
//
//! Clears I2C Slave interrupt sources.
//!
//! \param ulBase is the base address of the I2C Slave module.
//!
//! The I2C Slave interrupt source is cleared, so that it no longer asserts.
//! This must be done in the interrupt handler to keep it from being called
//! again immediately upon exit.
//!
//! \note Since there is a write buffer in the Cortex-M3 processor, it may take
//! several clock 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
I2CSlaveIntClear(unsigned long ulBase)
{
    //
    // Check the arguments.
    //
    ASSERT((ulBase == I2C0_SLAVE_BASE) || (ulBase == I2C1_SLAVE_BASE));

    //
    // Clear the I2C slave interrupt source.
    //
    HWREG(ulBase + I2C_O_SICR) = I2C_SICR_DATAIC;
}

//*****************************************************************************
//
//! Clears I2C Slave interrupt sources.
//!
//! \param ulBase is the base address of the I2C Slave module.
//! \param ulIntFlags is a bit mask of the interrupt sources to be cleared.
//!
//! The specified I2C Slave interrupt sources are cleared, so that they no
//! longer assert.  This must be done in the interrupt handler to keep it from
//! being called again immediately upon exit.
//!
//! The \e ulIntFlags parameter has the same definition as the \e ulIntFlags
//! parameter to I2CSlaveIntEnableEx().
//!
//! \note Since there is a write buffer in the Cortex-M3 processor, it may take
//! several clock 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品全国免费观看高清| 欧美精品日韩精品| 日韩一级在线观看| 亚洲人成在线播放网站岛国| 激情文学综合网| 欧美日韩亚洲综合一区二区三区| 国产清纯在线一区二区www| 日韩高清电影一区| 欧美亚洲综合一区| 国产精品成人一区二区艾草| 久国产精品韩国三级视频| 欧美色图免费看| 亚洲视频图片小说| 国产成人免费xxxxxxxx| 欧美一区二区三区视频| 一区二区三区日韩| gogogo免费视频观看亚洲一| 久久久另类综合| 麻豆精品在线视频| 欧美三级中文字| 一区二区三区在线高清| 成人涩涩免费视频| 久久亚洲精品小早川怜子| 青青草97国产精品免费观看无弹窗版| 91行情网站电视在线观看高清版| 国产精品免费人成网站| 国产精品18久久久| 久久这里都是精品| 久99久精品视频免费观看| 51久久夜色精品国产麻豆| 亚洲一区二区黄色| 在线观看免费成人| 亚洲网友自拍偷拍| 欧美在线免费观看亚洲| 亚洲免费观看在线观看| 91在线小视频| 亚洲靠逼com| 91麻豆国产自产在线观看| 亚洲欧美在线视频观看| 成人免费va视频| 日韩一区有码在线| 色悠久久久久综合欧美99| 亚洲欧美另类久久久精品2019| 99热在这里有精品免费| 日韩毛片精品高清免费| 91猫先生在线| 亚洲综合久久av| 在线观看免费亚洲| 无码av免费一区二区三区试看| 欧美日韩一级片在线观看| 偷拍一区二区三区| 日韩一区二区视频在线观看| 日本视频中文字幕一区二区三区| 欧美一区二区三区啪啪| 精品一区二区三区免费视频| 国产亚洲人成网站| 97久久久精品综合88久久| 亚洲三级在线播放| 欧美影片第一页| 免播放器亚洲一区| 久久综合久久鬼色| 成人永久免费视频| 亚洲免费观看高清完整版在线观看熊| 91九色02白丝porn| 日韩高清在线一区| 久久精品欧美日韩精品| 不卡免费追剧大全电视剧网站| 一区二区三区**美女毛片| 欧美年轻男男videosbes| 卡一卡二国产精品 | 9l国产精品久久久久麻豆| 粉嫩蜜臀av国产精品网站| 美国十次了思思久久精品导航| 久久久99精品久久| 天堂成人免费av电影一区| 日韩女优毛片在线| 国产精品一区专区| 亚洲欧美一区二区三区孕妇| 精品视频免费在线| 九色porny丨国产精品| 国产日产亚洲精品系列| 在线观看国产一区二区| 美女视频免费一区| 日本一区二区三区dvd视频在线| 91老师国产黑色丝袜在线| 亚洲成人中文在线| 久久色在线视频| 色综合色综合色综合| 看电影不卡的网站| 最好看的中文字幕久久| 日韩一区二区免费在线电影| 岛国av在线一区| 午夜激情综合网| 国产偷v国产偷v亚洲高清| 色八戒一区二区三区| 久久精品噜噜噜成人av农村| 中文字幕在线观看一区二区| 欧美久久久久中文字幕| 福利电影一区二区| 日本不卡在线视频| 日韩伦理电影网| 精品国一区二区三区| 一本大道久久a久久综合婷婷 | 午夜精品久久一牛影视| 欧美精品丝袜中出| 国产成人在线免费观看| 亚洲成人精品影院| 国产欧美精品一区| 欧美电影在哪看比较好| 成人一二三区视频| 欧美aⅴ一区二区三区视频| 亚洲欧美偷拍三级| 久久久久久久久久久久电影| 欧美三级在线视频| www.爱久久.com| 久久se这里有精品| 亚洲一区二区三区四区在线观看 | 91精品免费在线观看| av在线不卡网| 久草精品在线观看| 日韩影院在线观看| 亚洲精品日韩一| 国产精品不卡在线观看| 欧美精品一区二区三区在线播放 | 91女神在线视频| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 色噜噜狠狠色综合中国 | 国产一区二区看久久| 国产成人精品1024| 专区另类欧美日韩| 久久精品视频网| 日韩一级片网站| 欧美日韩一区不卡| 91成人在线免费观看| 丰满亚洲少妇av| 国产伦精品一区二区三区视频青涩 | 国产午夜精品福利| 日韩精品中文字幕一区| 91精品蜜臀在线一区尤物| 欧洲精品中文字幕| 色综合久久久网| 91女神在线视频| aaa国产一区| 成人av在线一区二区| 成人动漫精品一区二区| 高潮精品一区videoshd| 国产成人免费av在线| 国产成人综合自拍| 国产高清亚洲一区| 国产精品一区三区| 国产一区二区三区国产| 久草精品在线观看| 国产一区二区成人久久免费影院 | 亚洲国产日韩综合久久精品| 亚洲三级在线看| 国产精品久久久久影院| 成人黄色国产精品网站大全在线免费观看| 奇米色一区二区三区四区| 亚洲成a人片在线观看中文| 亚洲一区二区三区在线看| 亚洲激情自拍视频| 一区二区三区欧美在线观看| 樱花影视一区二区| 亚洲自拍偷拍麻豆| 亚洲一区在线观看网站| 亚洲一区二区视频在线| 午夜精品视频在线观看| 午夜欧美电影在线观看| 日本aⅴ亚洲精品中文乱码| 久久精品国产色蜜蜜麻豆| 韩国成人福利片在线播放| 国产乱人伦精品一区二区在线观看| 国产精品系列在线观看| 成人的网站免费观看| 色女孩综合影院| 欧美日韩精品高清| 日韩视频在线观看一区二区| 精品国产一区二区三区忘忧草 | 91电影在线观看| 欧美人妖巨大在线| 精品国产自在久精品国产| 久久精品欧美日韩| 国产精品不卡一区| 亚洲一二三专区| 蜜桃视频免费观看一区| 国产乱一区二区| 91在线免费看| 欧美女孩性生活视频| 精品国产麻豆免费人成网站| 欧美国产精品劲爆| 一区二区免费在线播放| 免费看黄色91| 成人午夜在线免费| 欧美天堂一区二区三区| 欧美大片在线观看一区| 中文成人av在线| 一区二区三区中文字幕精品精品| 日本在线不卡视频一二三区| 丰满少妇在线播放bd日韩电影| 在线观看中文字幕不卡|