10-24-2019 08:48 AM
How can I read 40 bits of data from a heap at a time.
10-25-2019 07:14 AM
I think we need more information to understand what you are trying to do.
In C, if p is a pointer to the heap, then this will read 40 bits (5 bytes) starting at address p:
uint8_t dst[5]; memcpy(dst, p, sizeof(dst));
Does that do what you want?