Skip to main content

encode_frame

Function encode_frame 

Source
pub fn encode_frame(dlci: u8, cr: bool, control: u8, info: &[u8]) -> Vec<u8> ⓘ
Expand description

One frame. cr is the address C/R bit; as initiator we set it on commands and UIH.

§Panics

If info is longer than MAX_INFO (use encode_uih to split data).