I'm not sure how to address this. This struct type is (apparently) regarded by the compiler as 4 bytes long:
Yet I want to pass a variable of that type where a unit8_t is expected (because it is - or should be - just a single byte).
Trying a C "cast" fails:
with:
"aggregate value used where an integer was expected".
intellisense reveals this:

most puzzling...
Code:
struct nrf_reg_RF_CH
{
unsigned int RF_CH : 7;
unsigned int RESERVED : 1;
};
Trying a C "cast" fails:
Code:
_WriteSingleByteRegister(device_ptr, NrfRegister.RF_CH, (uint8_t)(Value), NrfStatus);
"aggregate value used where an integer was expected".
intellisense reveals this:

most puzzling...
