use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
#[repr(C)]
pub struct HPMessage {
    pub start: u8,         // 0
    pub state_1: u8,       // 1
    pub state_2: u8,       // 2
    pub state_3: u8,       // 3
    pub state_4: u8,       // 4
    pub state_5: u8,       // 5
    pub state_6: u8,       // 6
    pub state_7: u8,       // 7
    pub state_8: u8,       // 8
    pub state_9: u8,       // 9
    pub state_10: u8,      // 10
    pub state_11: u8,      // 11
    pub state_12: u8,      // 12
    pub state_13: u8,      // 13
    pub state_14: u8,      // 14
    pub function_code: u8, // 15
    pub check_sum_up: u8,  // 16
    pub end: u8,           // 17
}
