picofuse-objc

NXSerialPort.h
Go to the documentation of this file.
1 
5 #pragma once
7 
22 @interface NXSerialPort : NXStream {
23 @private
24  void *_rx;
25  void *_tx;
26 }
27 
36 + (NXSerialPort *)serialPortWithRx:(uint8_t)rxPin tx:(uint8_t)txPin baudRate:(uint32_t)baudRate;
37 
45 + (NXSerialPort *)serialPortWithDevice:(NXString *)path baudRate:(uint32_t)baudRate;
46 
53 - (BOOL)flushWithTimeout:(NXDuration)timeout;
54 
55 @end
A UART, as a stream: a Pico's pins, or a host's serial device.
Definition: NXSerialPort.h:22
A stream of bytes, which can be read or written.
Definition: NXStream.h:38
int64_t NXDuration
A length of time, in nanoseconds, which may be negative.
Definition: NXDuration.h:17
Foundation framework header.
bool BOOL
A Boolean value.
Definition: runtime.h:60
A string of UTF-8 text.
Definition: NXString.h:53