/////////////////////////////////////////////// BIT FLIP
| 384 | // BIT FLIP |
| 385 | // |
| 386 | uint8_t bitFlip(uint8_t value, uint8_t pos) |
| 387 | { |
| 388 | if (pos > 7) return value; |
| 389 | return value ^ (1 << pos); |
| 390 | } |
| 391 | |
| 392 | |
| 393 | uint16_t bitFlip(uint16_t value, uint8_t pos) |