Changes

Jump to navigation Jump to search
no edit summary
| 8 || [[#IsSupportedPortEventForDev]]
|-
| 9 || [7.0.0+] [[#IsSupportedDeviceIsSupportedDeviceVariation]]
|-
| 10 || [7.0.0+] [[#IsSupportedDeviceForDevIsSupportedDeviceVariationForDev]]
|}
== HasPort ==
Takes an input [[#UartPort]]. Returns a an output boolean success value.
== HasPortForDev ==
Takes an input [[#UartPortForDev]]. Returns a an output boolean success value.
== IsSupportedBaudRate ==
Takes an input [[#UartPort]] and an input u32 '''BaudRate'''. Returns a an output boolean success value.
Supported baud rates are 57600, 115200, 1000000 and 3000000.
== IsSupportedBaudRateForDev ==
Takes an input [[#UartPortForDev]] and an input u32 '''BaudRate'''. Returns a an output boolean success value.
Supported baud rates are 57600, 115200, 1000000 and 3000000.
== IsSupportedFlowControlMode ==
Takes an input [[#UartPort]] and an input u32 '''FlowControlMode'''. Returns a an output boolean success value.
Supported modes are 0 (RTS) and 1 (CTS).
== IsSupportedFlowControlModeForDev ==
Takes an input [[#UartPortForDev]] and an input u32 '''FlowControlMode'''. Returns a an output boolean success value.
Supported modes are 0 (RTS) and 1 (CTS).
== CreatePortSession ==
No input. Returns an output [[#IPortSession]].
== IsSupportedPortEvent ==
Takes an input [[#UartPort]] and an input u32 '''PortEvent'''. Returns a an output boolean success value.
Supported events are 0 (data), 1 (break), 2 (unknown) and 3 (unknown).
== IsSupportedPortEventForDev ==
Takes an input [[#UartPortForDev]] and an input u32 '''PortEvent'''. Returns a an output boolean success value.
Supported events are 0 (data), 1 (break), 2 (unknown) and 3 (unknown).
== IsSupportedDevice IsSupportedDeviceVariation ==Takes an input [[#UartPort]] and an input u32 '''DeviceDeviceVariation'''. Returns a an output boolean success value.
Supported devices device variations are 0 (Bluetooth) for UART-D, 0 (Joy-Con(R)) for UART-B, 0 (Joy-Con(L)) and 1 (MCU) for UART-C.
== IsSupportedDeviceForDev IsSupportedDeviceVariationForDev ==Takes an input [[#UartPortForDev]] and an input u32 '''DeviceDeviceVariation'''. Returns a an output boolean success value.
Supported devices device variations are 0 (Bluetooth) for UART-D, 0 (Joy-Con(R)) for UART-B, 0 (Joy-Con(L)) and 1 (MCU) for UART-C.
== IPortSession ==
=== OpenPort ===
Takes an input [[#UartPort]], 3 2 input u32s'''BaudRate''' and '''FlowControlMode''', 2 copy input u64s '''SendBufferLength''' and '''ReceiveBufferLength''' and 2 input TransferMemory handles '''SendHandle''' and 4 u8s (each padded to u32)'''ReceiveHandle'''. Returns a an output boolean success value.
[6.0.0+] Takes 4 input u8s (padded as u32) '''IsInvertTx''', '''IsInvertRx''', '''IsInvertRts''' and '''IsInvertCts''', an input [[#UartPort]], 2 input u32s '''BaudRate''' and '''FlowControlMode''', 2 input u64s '''SendBufferLength''' and '''ReceiveBufferLength''' and 2 input TransferMemory handles '''SendHandle''' and '''ReceiveHandle'''. Returns an output boolean success value. [7.0.0+] Now takes Takes 4 input u8s (padded as u32) '''IsInvertTx''', '''IsInvertRx''', '''IsInvertRts''' and '''IsInvertCts''', an input [[#UartPort]], 3 input u32s '''BaudRate''', '''FlowControlMode''' and '''DeviceVariation''', 2 input u64s '''SendBufferLength''' and '''ReceiveBufferLength''' and 2 input TransferMemory handles '''SendHandle''' and '''ReceiveHandle'''. Returns an additional u64output boolean success value.
=== OpenPortForDev ===
Takes an Same as [[#UartPortForDevOpenPort]], 3 u32s, 2 copy handles and 4 u8s (each padded to u32). Returns a boolean success value. but takes an input [[7.0.0+#UartPortForDev] Now takes an additional u64] instead.
=== GetWritableLength ===
No input, returns . Returns an output u64'''WritableLength'''.
=== Send ===
Takes a type-0x21 input buffer, returns '''DataBytes'''. Returns an output u64 size.
=== GetReadableLength ===
No input, returns . Returns an output u64'''ReadableLength'''.
=== Receive ===
Takes a type-0x22 output buffer, returns '''DataBytes'''. Returns an output u64 size.
=== BindPortEvent ===
Takes an input u32 '''PortEvent''' and an input u64, returns . Returns an output u8 boolean success value and an Event handle with EventClearMode=0.
=== UnbindPortEvent ===
Takes an input u32, returns '''PortEvent'''. Returns an output u8boolean success value.
= pwm =

Navigation menu