macro_rules! write_bits {
    ($start:expr, $end:expr, $value:expr, $data:expr) => { ... };
}