LoginSignup
10
9

More than 5 years have passed since last update.

[メモ]bitフラグ管理のコメントつけ

Last updated at Posted at 2016-02-22

どれがどれかわかりやすくていいと思う

foo( 0b00001111 );
//     |||||||+  X axis enable
//     ||||||+-  Y axis enable
//     |||||+--  Z axis enable
//     ||||+---  PD : 0:power down 1:active
//     ||++----  BW1-BW0 cutoff 12.5[Hz]
//     ++------  DR1-DR0 ODR 95[HZ]

コメントの部分画像からそのまま移しました。

参照元
ささ@白猫勢さんはTwitterを使っています: "bit演算とか使ってフラグ管理するときにこのコメントの書き方すごくよくない??? https://t.co/TPLOdHbtkA"

10
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
9