use binrw::BinRead;
use crate::protocol::function::read_registers::Value;
impl Value for u16 {
const N_BYTES: usize = 2;
}
impl Value for i16 {
const N_BYTES: usize = 2;
}
#[derive(Copy, Clone, BinRead, derive_more::Display, derive_more::Into)]
#[br(big)]
pub struct BigEndianI32(i32);
impl Value for BigEndianI32 {
const N_BYTES: usize = 4;
}
#[derive(Copy, Clone, BinRead, derive_more::Display, derive_more::Into)]
#[br(big)]
pub struct BigEndianU32(u32);
impl Value for BigEndianU32 {
const N_BYTES: usize = 4;
}