本文介绍了这个逻辑运算符组合在C中的含义是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道->是指针| =是OR.这条线的逻辑含义是什么?
i know that -> is a pointer |= is OR.what is the logical meaning of such line?
TIMER0-> ROUTELOC0 | = TIMER_ROUTELOC0_CC0LOC_LOC15
TIMER0->ROUTELOC0 |= TIMER_ROUTELOC0_CC0LOC_LOC15
推荐答案
您正在将值(或设置)到寄存器中.您的处理器有一个带寄存器ROUTELOC0的TIMER0.可能是"CC0LOC_LOC15"
You're ORing in (setting) a value to a register. Your processor has a TIMER0 with a register ROUTELOC0. It likely has a bit that is "CC0LOC_LOC15"
我建议您查看处理器的数据表,以明确了解这是什么意思.
I recommend looking at the data sheet for your processor to figure out what that means specifically.
这篇关于这个逻辑运算符组合在C中的含义是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!