25#define WRITE_MIDIUART_DATA(bp, x) WRITE_PORT_UCHAR((PUCHAR) bp, x)
26#define READ_MIDIUART_DATA(bp) READ_PORT_UCHAR((PUCHAR) bp)
27#define WRITE_MIDIUART_COMMAND(bp, x) WRITE_PORT_UCHAR((PUCHAR) bp+1, x)
28#define READ_MIDIUART_STATUS(bp) READ_PORT_UCHAR((PUCHAR) bp+1)
31#define MIDIUART_STATUS_DTR 0x40
32#define MIDIUART_STATUS_CTS 0x80
53#define WaitForMidiUartCTS(UartBasePort, Timeout) \
54 WaitForMidiUartStatus(UartBasePort, MIDIUART_STATUS_CTS, Timeout)
57#define WaitForMidiUartDTR(UartBasePort, Timeout) \
58 WaitForMidiUartStatus(UartBasePort, MIDIUART_STATUS_DTR, Timeout)
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
BOOLEAN WriteMidiUartMulti(IN PUCHAR UartBasePort, IN PUCHAR Data, IN ULONG DataLength, IN ULONG Timeout)
BOOLEAN WriteMidiUartByte(IN PUCHAR UartBasePort, IN UCHAR Data, IN ULONG Timeout)
BOOLEAN ReadMidiUartByte(IN PUCHAR UartBasePort, OUT UCHAR *Data, IN ULONG Timeout)
BOOLEAN WaitForMidiUartStatus(IN PUCHAR UartBasePort, IN UCHAR StatusFlags, IN ULONG Timeout)