pub fn send(&mut self, data: u8) {
        unsafe {
            match data {
                8 | 0x7F => {
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(8);
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(b' ');
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(8)
                }
                _ => {
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(data);
                }
            }
        }
    }
/// Sends a byte on the serial port.
Sends a byte on the serial port.
Sends a byte on the serial port .
pub fn send(&mut self, data: u8) {
        unsafe {
            match data {
                8 | 0x7F => {
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(8);
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(b' ');
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(8)
                }
                _ => {
                    while !self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY) {}
                    self.data.write(data);
                }
            }
        }
    }
pub fn send ( & mut self , data : u8 ) { unsafe { match data { 8 | 0x7F => { while ! self . line_sts ( ) . contains ( LineStsFlags :: OUTPUT_EMPTY ) { } self . data . write ( 8 ) ; while ! self . line_sts ( ) . contains ( LineStsFlags :: OUTPUT_EMPTY ) { } self . data . write ( b' ' ) ; while ! self . line_sts ( ) . contains ( LineStsFlags :: OUTPUT_EMPTY ) { } self . data . write ( 8 ) } _ => { while ! self . line_sts ( ) . contains ( LineStsFlags :: OUTPUT_EMPTY ) { } self . data . write ( data ) ; } } } }
Sends a byte on the serial port.
Sends a byte on the serial port .
&mut self
data
u8