Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行一个序列,我需要临时写入寄存器中的某个字段,过了一会儿我希望将其重置回其重置值。我不想使用该reset()功能重置整个寄存器,我只想重置该字段。我找不到一种简单的方法来访问字段本身的重置值,即使它是在reg_fld宏中为每个字段定义的。
reset()
reg_fld
您可以vr_ad_reg::static_info::fields_info通过vr_ad_reg::get_fields_info()(前提是 static_info 存在)访问。这是一个列表,其中包含有关该字段的信息的每个字段的项目。看看数据浏览器,这应该对你有帮助。
vr_ad_reg::static_info::fields_info
vr_ad_reg::get_fields_info()