Example:
// bits8 == uint8_t == unsigned char bits8 x=255; bits8 inv = channel_invert(x); assert(inv == 0);