创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:avrgcc:bv

_BV()

Abstract

The _BV() is a macro that shifts 1 to left by the specified numnber.

Source Code

The _BV() is defined in hardware/tools/avr/avr/include/avr/sfr_defs.h, as shown below.

#define _BV(bit) (1 << (bit))

The _BV() is a macro that shifts 1 to left by the specified numnber. For example _BV(5) would be 0b00100000.

本页面的其他翻译:
arduino/avrgcc/bv.txt · 最后更改: 2016/12/25 22:15 (外部编辑)