I am a newbie! I need to pass an array of hex values bit by bit. I am not sure as to how to do it.
let's say I have array defined below,
const uint_8t a[] = { 0xAA, 0xF8, 0x03, ... };
int size=sizeof(a) / 8;
//edited
SBIT(port, SFR_P0, 1);
void Data(int *a, int size) {
int i;
for (i = 0; i < size; i++) {
port = a[i];
}
}
How can I pass this array bit by bit to a function pointing to MSB first.