Your task is to define a struct named AdcSample that represents a 16-bit ADC sample with a timestamp.
AdcSample
The structure must contain:
uint32_t
timestamp
uint16_t
raw
uint8_t lo
uint8_t hi
The program will:
0x
Example
Input:
1000 0x03F2
Output:
ts=1000 lo=0xF2 hi=0x03
Explanation:
raw = 0x03F2
lo = 0xF2
hi = 0x03
⚠️ Assumptions (MANDATORY)
Test Cases
Test Results
Input
1000 0x0000
Expected Output
ts=1000 lo=0x00 hi=0x00