I'm using following code:
#define OFFSETOF(_s, _m) ((uint32_t)(uint32_t *)(&(((_s *)0)->_m)))
typedef struct test
{
uint16_t param0;
uint8_t param1;
} test;
uint32_t uStartAddr = OFFSETOF(test, param1);
But I get that error:
error: cast from pointer to integer of different size