We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm using an array of ints in the bit addressable memory area as a crude bit array bdata unsigned int sample_window[SAMPLE_WINDOW_LENGTH]; //bit addressable array in bit memory I'm using a mask to read from the array, however when I try to write a new bit in using the mask and a bitwise ex-or bits in more than one byte get changed. sample_window[byte] = ((sample_window[byte]) ^ mask); //change location by bit exor any ideas on a better implementation?