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.

[参考译文] DRV8323:DRV8323_CtrlMode_e 的定义错误

Guru**** 2650475 points

Other Parts Discussed in Thread: DRV8323

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

https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1581142/drv8323-wrong-definition-of-drv8323_ctrlmode_e

器件型号: DRV8323

尊敬的专家:

在“dual_axis_servo",“,"universal_motor_lab"、"universal_motor_lab"等“等多“多个示例中。

`D RV8323_CtrlMode_e`的定义如所示  
```μ s
typedef 枚举

  DRV8323_CTRLMODE_WRITE  = 0、 //!<写入模式
  DRV8323_CTRLMODE_READ  = 1 //!<读取模式
} DRV8323_CtrlMode_e;

```μ s

但是、在阅读数据表时、我认为正确的定义应该是
```μ s

typedef 枚举

  DRV8323_CTRLMODE_WRITE  =(0 << 15)、 //!<写入模式
  DRV8323_CTRLMODE_READ  =(1 << 15) //!<读取模式
} DRV8323_CtrlMode_e;

```μ s

因为它在`D RV8323_buildCtrlWord`函数中直接进行“或“运算。

此致、
Jonathan

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

    您好:

    我将其重定向到 C2000 团队、他们应该能够帮助您解决固件问题  

    此致、

    Yara

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

    你是对的。 应该相应地更改枚举或在  DRV8323_buildCtrlWord() 中添加左移操作。 谢谢。