最近在学新唐MUC,其中有个语句不理解怎么运算的,请各位老师指导下
void Write_LED_Bar(uint32_t Number)
{
uint32_t i;
volatile uint32_t *ptrLED[_LED_Bar_Count] = {&_LED1, &_LED2, &_LED3, &_LED4, &_LED5, &_LED6, &_LED7};
for(i = 0; i < _LED_Bar_Count; i++)
{
if((Number > i) & 0x01)
*ptrLED[i] = 0; //LED ON
else
*ptrLED[i] = 1; //LED OFF
}
}
这里边的if((Number > i) & 0x01)是怎么计算的 |