这篇教程C++ HWREG16函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中HWREG16函数的典型用法代码示例。如果您正苦于以下问题:C++ HWREG16函数的具体用法?C++ HWREG16怎么用?C++ HWREG16使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了HWREG16函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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,
示例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,
示例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,
示例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,
示例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,
示例6: LCD_E_offvoid LCD_E_off(uint16_t baseAddress){ HWREG16(SYS_BASE + OFS_SYSCFG2) &= ~LCDPCTL; HWREG16(baseAddress + OFS_LCDCTL0) &= ~LCDON;}
开发者ID:BonifaceBassey,项目名称:MSP432P401R-Launchad,代码行数:5,
示例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,
示例8: USCI_B_I2C_setSlaveAddressvoid 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,
示例9: DAC12_A_disableGroupingvoid DAC12_A_disableGrouping(uint16_t baseAddress){ HWREG16(baseAddress + OFS_DAC12_0CTL0) &= ~(DAC12GRP);}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:4,
示例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,
示例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,
示例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,
示例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,
示例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,
示例15: DAC12_A_disablevoid 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,
示例16: DAC12_A_enableInterruptvoid DAC12_A_enableInterrupt(uint16_t baseAddress, uint8_t submoduleSelect){ HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CTL0) |= DAC12IE;}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:5,
示例17: DAC12_A_enableGroupingvoid DAC12_A_enableGrouping(uint16_t baseAddress){ HWREG16(baseAddress + OFS_DAC12_0CTL0) |= DAC12GRP;}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:4,
示例18: DAC12_A_getInterruptStatusuint16_t DAC12_A_getInterruptStatus(uint16_t baseAddress, uint8_t submoduleSelect){ return (HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CTL0) & DAC12IFG);}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:6,
示例19: PMM_enableSvmH//*****************************************************************************////! /brief Enables the high-side SVM circuitry//!//! /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_enableSvmH(uint32_t baseAddress){ HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5; HWREG16(baseAddress + OFS_SVSMHCTL) |= SVMHE; HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:17,
示例20: DAC12_A_clearInterruptvoid DAC12_A_clearInterrupt(uint16_t baseAddress, uint8_t submoduleSelect){ HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CTL0) &= ~(DAC12IFG);}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:5,
示例21: PMM_disableSvsHSvmH//*****************************************************************************////! /brief Disables the high-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 SVSMHCTL register.//!//! /return None////*****************************************************************************void PMM_disableSvsHSvmH(uint32_t baseAddress){ HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5; HWREG16(baseAddress + OFS_SVSMHCTL) &= ~(SVSHE + SVMHE); HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:17,
示例22: DAC12_A_getCalibrationDatauint16_t DAC12_A_getCalibrationData(uint16_t baseAddress, uint8_t submoduleSelect){ return ((uint16_t)(HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CALDAT)));}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:6,
示例23: PMM_enableSvmLInterrupt//*****************************************************************************////! /brief Enables the interrupt generation when a low-voltage event is//! registered by the low-side SVM//!//! /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_enableSvmLInterrupt(uint32_t baseAddress){ HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5; HWREG16(baseAddress + OFS_PMMRIE) |= SVMLIE; HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:18,
示例24: DAC12_A_enableConversionsvoid DAC12_A_enableConversions(uint16_t baseAddress, uint8_t submoduleSelect){ HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CTL0) |= DAC12ENC;}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:5,
示例25: PMM_disableSvmHInterrupt//*****************************************************************************////! /brief Disables the interrupt generation when a low-voltage event is//! registered by the high-side SVM//!//! /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_disableSvmHInterrupt(uint32_t baseAddress){ HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5; HWREG16(baseAddress + OFS_PMMRIE) &= ~SVMHIE; HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:18,
示例26: DAC12_A_setDatavoid DAC12_A_setData(uint16_t baseAddress, uint8_t submoduleSelect, uint16_t data){ HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0DAT) = data;}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:6,
示例27: PMM_SvsLDisabledInLPMSlowWake//*****************************************************************************////! /brief Disables supervisor low side in LPM with twake-up-slow from LPM2,//! LPM3, and LPM4//!//! /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_SvsLDisabledInLPMSlowWake(uint32_t baseAddress){ HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5; HWREG16(baseAddress + OFS_SVSMLCTL) &= ~(SVSLFP + SVSMLACE + SVSLMD); HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:18,
示例28: DAC12_A_disableConversionsvoid DAC12_A_disableConversions(uint16_t baseAddress, uint8_t submoduleSelect){ HWREG16(baseAddress + submoduleSelect + OFS_DAC12_0CTL0) &= ~(DAC12ENC);}
开发者ID:TE-xHiroyukiNishiyama,项目名称:NRS_Station,代码行数:5,
示例29: PMM_SvsHOptimizedInLPMFullPerf//*****************************************************************************////! /brief Optimized to provide tpd = 2.5 ?s(1) in LPM with least power//!//! /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_SvsHOptimizedInLPMFullPerf(uint32_t baseAddress){ HWREG8(baseAddress + OFS_PMMCTL0_H) = 0xA5; HWREG16(baseAddress + OFS_SVSMHCTL) |= (SVSHMD + SVSHFP + SVSMHACE); HWREG8(baseAddress + OFS_PMMCTL0_H) = 0x00;}
开发者ID:jschmandt,项目名称:mini-mac,代码行数:17,
示例30: LDOPWR_lockConfiguration//*****************************************************************************////! /brief Locks the configuration registers and disables write access//!//! /param baseAddress is the base address of the LDOPWR module.//!//! Modified bits of /b LDOKEYPID register.//!//! /return None////*****************************************************************************void LDOPWR_lockConfiguration( uint32_t baseAddress ){ HWREG16(baseAddress + OFS_LDOKEYPID) = 0x0000;}
开发者ID:liuzheng712,项目名称:MSP430-Keyboard,代码行数:15,
注:本文中的HWREG16函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ HWREG8函数代码示例 C++ HWREG函数代码示例 |