当前位置: 首页>>代码示例>>C++>>正文


C++ HWREG16函数代码示例

本文整理汇总了C++中HWREG16函数的典型用法代码示例。如果您正苦于以下问题:C++ HWREG16函数的具体用法?C++ HWREG16怎么用?C++ HWREG16使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了HWREG16函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CRC_setDataByteBitsReversed

//*****************************************************************************
//
//! \brief Translates the data by reversing the bits in each byte and then sets
//! this data to add into the CRC module to generate a new signature.
//!
//! This function first reverses the bits in each byte of the data and then
//! generates the new signature from the current signature and new translated
//! data.
//!
//! \param baseAddress is the base address of the CRC module.
//! \param dataIn is the data to be added, through the CRC module, to the
//!        signature.
//!        \n Modified bits are \b CRCDIRB of \b CRCDIRB register.
//!
//! \return None
//
//*****************************************************************************
void CRC_setDataByteBitsReversed (uint32_t baseAddress,
                                  uint16_t dataIn)
{
    HWREG16(baseAddress + OFS_CRCDIRB) = dataIn;
}
开发者ID:JUSTINMKAUFMAN,项目名称:Energia,代码行数:22,代码来源:crc.c

示例2: PMM_clearPMMIFGS

//*****************************************************************************
//
//! \brief Clear all interrupt flags for the PMM
//!
//! \param baseAddress is the base address of the PMM module.
//!
//! Modified bits of \b PMMCTL0 register and bits of \b PMMIFG register.
//!
//! \return None
//
//*****************************************************************************
void PMM_clearPMMIFGS(uint32_t baseAddress)
{
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5;
        HWREG16(baseAddress + OFS_PMMIFG) = 0;
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;
}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:17,代码来源:pmm.c

示例3: PMM_SvsHDisabledInLPMNormPerf

//*****************************************************************************
//
//! \brief Disables supervisor high side in LPM with tpd = 20 ?s(1)
//!
//! \param baseAddress is the base address of the PMM module.
//!
//! Modified bits of \b PMMCTL0 register and bits of \b SVSMHCTL register.
//!
//! \return None
//
//*****************************************************************************
void PMM_SvsHDisabledInLPMNormPerf(uint32_t baseAddress)
{
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5;
        HWREG16(baseAddress + OFS_SVSMHCTL) &= ~(SVSMHACE + SVSHFP + SVSHMD);
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;
}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:17,代码来源:pmm.c

示例4: PMM_enableSvsLReset

//*****************************************************************************
//
//! \brief Enables the POR signal generation when a low-voltage event is
//! registered by the low-side SVS
//!
//! \param baseAddress is the base address of the PMM module.
//!
//! Modified bits of \b PMMCTL0 register and bits of \b PMMIE register.
//!
//! \return None
//
//*****************************************************************************
void PMM_enableSvsLReset(uint32_t baseAddress)
{
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5;
        HWREG16(baseAddress + OFS_PMMRIE) |= SVSLPE;
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;
}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:18,代码来源:pmm.c

示例5: PMM_disableSvsHReset

//*****************************************************************************
//
//! \brief Disables the POR signal generation when a low-voltage event is
//! registered by the high-side SVS
//!
//! \param baseAddress is the base address of the PMM module.
//!
//! Modified bits of \b PMMCTL0 register and bits of \b PMMIE register.
//!
//! \return None
//
//*****************************************************************************
void PMM_disableSvsHReset(uint32_t baseAddress)
{
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5;
        HWREG16(baseAddress + OFS_PMMRIE) &= ~SVSHPE;
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;
}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:18,代码来源:pmm.c

示例6: LCD_E_off

void LCD_E_off(uint16_t baseAddress)
{
    HWREG16(SYS_BASE + OFS_SYSCFG2) &= ~LCDPCTL;
    HWREG16(baseAddress + OFS_LCDCTL0) &= ~LCDON;
}
开发者ID:BonifaceBassey,项目名称:MSP432P401R-Launchad,代码行数:5,代码来源:lcd_e.c

示例7: PMM_disableSvsLSvmL

//*****************************************************************************
//
//! \brief Disables the low-side SVS and SVM circuitry
//!
//! \param baseAddress is the base address of the PMM module.
//!
//! Modified bits of \b PMMCTL0 register and bits of \b SVSMLCTL register.
//!
//! \return None
//
//*****************************************************************************
void PMM_disableSvsLSvmL(uint32_t baseAddress)
{
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5;
        HWREG16(baseAddress + OFS_SVSMLCTL) &= ~(SVSLE + SVMLE);
        HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;
}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:17,代码来源:pmm.c

示例8: USCI_B_I2C_setSlaveAddress

void USCI_B_I2C_setSlaveAddress(uint16_t baseAddress,
                                uint8_t slaveAddress)
{
    //Set the address of the slave with which the master will communicate.
    HWREG16(baseAddress + OFS_UCBxI2CSA) = (slaveAddress);
}
开发者ID:BonifaceBassey,项目名称:MSP432P401R-Launchad,代码行数:6,代码来源:usci_b_i2c.c

示例9: DAC12_A_disableGrouping

void DAC12_A_disableGrouping(uint16_t baseAddress)
{
    HWREG16(baseAddress + OFS_DAC12_0CTL0) &= ~(DAC12GRP);
}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:4,代码来源:dac12_a.c

示例10: CRC_setSeed

//*****************************************************************************
//
//! \brief Sets the seed for the CRC.
//!
//! This function sets the seed for the CRC to begin generating a signature
//! with the given seed and all passed data. Using this funtion resets the CRC
//! signature.
//!
//! \param baseAddress is the base address of the CRC module.
//! \param seed is the seed for the CRC to start generating a signature from.
//!        \n Modified bits are \b CRCINIRES of \b CRCINIRES register.
//!
//! \return None
//
//*****************************************************************************
void CRC_setSeed (uint32_t baseAddress,
                  uint16_t seed)
{
    HWREG16(baseAddress + OFS_CRCINIRES) = seed;
}
开发者ID:JUSTINMKAUFMAN,项目名称:Energia,代码行数:20,代码来源:crc.c

示例11: CRC_set16BitData

//*****************************************************************************
//
//! \brief Sets the 16 bit data to add into the CRC module to generate a new
//! signature.
//!
//! This function sets the given data into the CRC module to generate the new
//! signature from the current signature and new data.
//!
//! \param baseAddress is the base address of the CRC module.
//! \param dataIn is the data to be added, through the CRC module, to the
//!        signature.
//!        \n Modified bits are \b CRCDI of \b CRCDI register.
//!
//! \return None
//
//*****************************************************************************
void CRC_set16BitData (uint32_t baseAddress,
                       uint16_t dataIn)
{
    HWREG16(baseAddress + OFS_CRCDI) = dataIn;
}
开发者ID:JUSTINMKAUFMAN,项目名称:Energia,代码行数:21,代码来源:crc.c

示例12: CRC_getResultBitsReversed

//*****************************************************************************
//
//! \brief Returns the bit-wise reversed format of the Signature Result.
//!
//! This function returns the bit-wise reversed format of the Signature Result.
//!
//! \param baseAddress is the base address of the CRC module.
//!
//! \return The bit-wise reversed format of the Signature Result
//
//*****************************************************************************
uint16_t CRC_getResultBitsReversed (uint32_t baseAddress)
{
    return ( HWREG16(baseAddress + OFS_CRCRESR) );
}
开发者ID:JUSTINMKAUFMAN,项目名称:Energia,代码行数:15,代码来源:crc.c

示例13: CRC_getResult

//*****************************************************************************
//
//! \brief Returns the value pf the Signature Result.
//!
//! This function returns the value of the signature result generated by the
//! CRC.
//!
//! \param baseAddress is the base address of the CRC module.
//!
//! \return The value currently in the data register
//
//*****************************************************************************
uint16_t CRC_getResult (uint32_t baseAddress)
{
    return ( HWREG16(baseAddress + OFS_CRCINIRES) );
}
开发者ID:JUSTINMKAUFMAN,项目名称:Energia,代码行数:16,代码来源:crc.c

示例14: CRC_getData

//*****************************************************************************
//
//! \brief Returns the value currently in the Data register.
//!
//! This function returns the value currently in the data register. If set in
//! byte bits reversed format, then the translated data would be returned.
//!
//! \param baseAddress is the base address of the CRC module.
//!
//! \return The value currently in the data register
//
//*****************************************************************************
uint16_t CRC_getData (uint32_t baseAddress)
{
    return ( HWREG16(baseAddress + OFS_CRCDI) );
}
开发者ID:JUSTINMKAUFMAN,项目名称:Energia,代码行数:16,代码来源:crc.c

示例15: DAC12_A_disable

void DAC12_A_disable(uint16_t baseAddress,
                     uint8_t submoduleSelect)
{
    //Reset amplifier setting to turn DAC12_A off completely
    HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CTL0) &= ~(DAC12AMP_7);
}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:6,代码来源:dac12_a.c


注:本文中的HWREG16函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。