Your task is to define a struct named AdcSample that represents a 16-bit ADC sample with a timestamp.
The structure must contain:
uint32_t field named timestampuint16_t value named rawuint8_t lo (least significant byte)uint8_t hi (most significant byte)The program will:
0x)Example
Input:
1000 0x03F2 Output:
ts=1000 lo=0xF2 hi=0x03
Explanation:
raw = 0x03F2lo = 0xF2hi = 0x03⚠️ Assumptions (MANDATORY)
Input
1000 0x0000
Expected Output
ts=1000 lo=0x00 hi=0x00