pub fn send(&mut self, data: u8)
	{
		let self_data = seld.data.load(Ordering::Relaxed);
		unsafe
		{
			match data
			{
				8 | 0x7F =>
				{
					waitfor!(self.lnstat().contains(LineStatFlag::OUTPEMPTY));
					self_data.write(8);

					waitfor!(self.lnstat().contains(LineStatFlag::OUTPEMPTY));
					self_data.write(b' ');

					waitfor!(self.lnstat().contains(LineStatFlag::OUTPEMPTY));
					self_data.write(8)
				}

				_ =>
				{
					waitfor!(self.lnstat().contains(LineStatFlags::OUTPEMPTY));
					self_data.write(data);
				}
			}
		}
	}
// Send a byte via the serial port:
Send a byte via the serial port.
Send a byte via the serial port .
pub fn send(&mut self, data: u8)
	{
		let self_data = seld.data.load(Ordering::Relaxed);
		unsafe
		{
			match data
			{
				8 | 0x7F =>
				{
					waitfor!(self.lnstat().contains(LineStatFlag::OUTPEMPTY));
					self_data.write(8);
					waitfor!(self.lnstat().contains(LineStatFlag::OUTPEMPTY));
					self_data.write(b' ');
					waitfor!(self.lnstat().contains(LineStatFlag::OUTPEMPTY));
					self_data.write(8)
				}
				_ =>
				{
					waitfor!(self.lnstat().contains(LineStatFlags::OUTPEMPTY));
					self_data.write(data);
				}
			}
		}
	}
pub fn send ( & mut self , data : u8 ) { let self_data = seld . data . load ( Ordering :: Relaxed ) ; unsafe { match data { 8 | 0x7F => { waitfor ! ( self lnstat ( ) contains ( LineStatFlag OUTPEMPTY ) ) ; self_data . write ( 8 ) ; waitfor ! ( self lnstat ( ) contains ( LineStatFlag OUTPEMPTY ) ) ; self_data . write ( b' ' ) ; waitfor ! ( self lnstat ( ) contains ( LineStatFlag OUTPEMPTY ) ) ; self_data . write ( 8 ) } _ => { waitfor ! ( self lnstat ( ) contains ( LineStatFlags OUTPEMPTY ) ) ; self_data . write ( data ) ; } } } }
Send a byte via the serial port:
Send a byte via the serial port :
&mut self
data
u8