Hello,
Is it possible to increment a void pointer by uint8_t, then re-cast the pointer to uint16_t variable? Something similar to the following.
void buffer[20];
void * ptr = &buffer[0];
uint16_t lg = 64000;
((uint16_t)((uint8_t*)ptr+2)) = lg;
Thanks,
-diesel