what is b3b2 mean in C++ ?

May 5, 2022 at 2:23pm
I am new in learning C++ , pls I need to understand what is mean b3b2 , I think it is mean a value in Hex
it is here in this code

1
2
 // Configure LEDSIG1 Pin as GPIO mode (b3b2 = 11 = GPIOB3)
	RTL_W32(RTL_GPIO_MUX, (RTL_R32(RTL_GPIO_MUX) | 0x0000000C));


thanks
May 5, 2022 at 2:33pm
I would guess it means bit 3 and bit 2

Hex 0x0000000C -> Bin 1100 -> Bit 3 = 1, Bit 2 = 1, Bit 1 = 0, Bit 0 = 0
May 5, 2022 at 3:24pm
Numbers that start with 0x are in Hexadecimal (Hex) notation.

See also:
https://miro.medium.com/max/2000/1*DTmuXRaK9GIqeEF9IB2B_g.png
Last edited on May 5, 2022 at 3:25pm
May 5, 2022 at 5:01pm
@coder777
thank you very much
May 5, 2022 at 5:01pm
@kigar64551
thank you very much
Topic archived. No new replies allowed.