pub fn encode_frame( w: &mut Writer<'_>, transaction_id: u16, unit_id: u8, pdu: &[u8], ) -> Result<(), EncodeError>