This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0-SDK:DL_ADC12_initSeqSample 实现问题

Guru**** 2673895 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1591903/mspm0-sdk-dl_adc12_initseqsample-implementation-issue

器件型号: MSPM0-SDK

DL_ADC12_initSeqSample 的实现方式如下  
__static_inline void DL_ADC12_initSeqSample (ADC12_Regs *adc12、
  uint32_t repeatMode、uint32_t SampleMode、uint32_t trigSrc、
  uint32_t startAdd、uint32_t endAdd、uint32_t 分辨率、
  uint32_t 数据格式)
  DL_Common_updateReg (&ADC12->ULLMEM.CTL1、
    (ADC12_CTL1_CONSEQ_SEQUENCE | REPEATMode | SAMPLEMode | TRGSrc)、
    (ADC12_CTL1_SAMPMODE_MASK | ADC12_CTL1_CONSEQ_MASK |
      ADC12_CTL1_TRIGSRC_MASK);

  DL_Common_updateReg (&ADC12->ULLMEM.CTL2、
    (startAdd | endAdd | Resolution | dataFormat)、
    (ADC12_CTL2_ENDAD_MASK | ADC12_CTL2_STARTADD_MASK |
      ADC12_CTL2_RES_MASK | ADC12_CTL2_DF_MASK);
 
我坚信这一行 (startAdd | endAdd | Resolution | dataFormat)
startAdd、endAdd 和 Resolution as startAdd << 16 | endAdd<<24 | Resolution<<<1 | dataFormat 缺少“<<"</s>“
 
请提供建议。
(作为 SIEMAL — 为什么不添加 Addr?)
 
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Mykhaylo:

    很抱歉晚回复。  不知何故、 e2e 论坛中错过了此主题。

    [引述 userid=“640325" url="“ url="~“~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1591903/mspm0-sdk-dl_adc12_initseqsample-implementation-issue
    我坚信这一行 (startAdd | endAdd | Resolution | dataFormat)
    startAdd、endAdd 和 Resolution as startAdd << 16 | endAdd<<24 | Resolution<<<1 | dataFormat 缺少“<<"</s>“
    [/报价]

    该偏移添加在 HW_ADC12.h 中:

    B.R.

    Sal