template <typename Lock, typename Reader, typename Disabler>
class RxInterrupt
Defined at line 18 of file ../../zircon/system/ulib/uart/include/lib/uart/interrupt.h
Rx IRQ Handler's will be provided an instance of this class, providing the thread requirements
for calling each of the supported APIs. The synchronization cannot be enforced directly as a
protected object since the `Lock` encompasses more than the UART itself in some environments.
Public Methods
void RxInterrupt<Lock, Reader, Disabler> (Lock & lock, Reader && reader, Disabler && disabler)
Defined at line 20 of file ../../zircon/system/ulib/uart/include/lib/uart/interrupt.h
auto ReadChar ()
Returns characters from performing one read operation from the UART.
Defined at line 26 of file ../../zircon/system/ulib/uart/include/lib/uart/interrupt.h
auto DisableInterrupt ()
Mask RX IRQ and terminates the loop, even if we could still read more characters from the uart.
Usually means that the buffer where characters are being written is full.
Defined at line 30 of file ../../zircon/system/ulib/uart/include/lib/uart/interrupt.h
Lock & lock ()
In some cases it is desirable to control the locking sequence. Some of these caes involve
making sure certain TOCTOU operations do not leave the UART in an invalid state.
Defined at line 34 of file ../../zircon/system/ulib/uart/include/lib/uart/interrupt.h