New to Arduion

(deleted)

You forgot to dereference the pointer

    if(( *in_point & 0b0100000) == 1){ //check if the 6th bit is cleared.

Can you even compile to an xmega CPU on the Arduino IDE?

aarg: You forgot to dereference the pointer

    if(( *in_point & 0b0100000) == 1){ //check if the 6th bit is cleared.

And not just that line, just about every one that follows.

Also array “output” doesn’t define any memory (it is zero bytes), so anything you write to a pointer to it will be overwriting memory that doesn’t belong to it.

It’s also not entirely clear to me what all this bit twiddling and (malformed) pointer access is meant to be doing with the input data. Some explanation and/or more comments are in order.

   if(( *in_point & 0b0100000) == 1){ //check if the 6th bit is cleared.

Regardless of the pointer problems anyValue & 0b01000000 will never == 1

You just need

If(anyValue & 0b01000000) {
....
}