Bus services: Difference between revisions

Line 471: Line 471:


== IsSupportedBaudRate ==
== IsSupportedBaudRate ==
Takes an u32 [[#UartPort]] and an u32 '''baudrate'''. Returns a boolean success value.
Takes an u32 [[#UartPort]] and an u32 '''BaudRate'''. Returns a boolean success value.


Supported baud rates are 57600, 115200, 1000000 and 3000000.
Supported baud rates are 57600, 115200, 1000000 and 3000000.


== IsSupportedBaudRateForDev ==
== IsSupportedBaudRateForDev ==
Takes an u32 [[#UartPortForDev]] and an u32 '''baudrate'''. Returns a boolean success value.
Takes an u32 [[#UartPortForDev]] and an u32 '''BaudRate'''. Returns a boolean success value.


Supported baud rates are 57600, 115200, 1000000 and 3000000.
Supported baud rates are 57600, 115200, 1000000 and 3000000.


== IsSupportedFlowControlMode ==
== IsSupportedFlowControlMode ==
Takes an u32 [[#UartPort]] and an u32 '''mode'''. Returns a boolean success value.
Takes an u32 [[#UartPort]] and an u32 '''FlowControlMode'''. Returns a boolean success value.


Supported modes are 0 (RTS) and 1 (CTS).
Supported modes are 0 (RTS) and 1 (CTS).


== IsSupportedFlowControlModeForDev ==
== IsSupportedFlowControlModeForDev ==
Takes an u32 [[#UartPortForDev]] and an u32 '''mode'''. Returns a boolean success value.
Takes an u32 [[#UartPortForDev]] and an u32 '''FlowControlMode'''. Returns a boolean success value.


Supported modes are 0 (RTS) and 1 (CTS).
Supported modes are 0 (RTS) and 1 (CTS).
Line 494: Line 494:


== IsSupportedPortEvent ==
== IsSupportedPortEvent ==
Takes an u32 [[#UartPort]] and an u32 '''event'''. Returns a boolean success value.
Takes an u32 [[#UartPort]] and an u32 '''PortEvent'''. Returns a boolean success value.


Supported events are 0 (data), 1 (break), 2 (unknown) and 3 (unknown).
Supported events are 0 (data), 1 (break), 2 (unknown) and 3 (unknown).


== IsSupportedPortEventForDev ==
== IsSupportedPortEventForDev ==
Takes an u32 [[#UartPortForDev]] and an u32 '''event'''. Returns a boolean success value.
Takes an u32 [[#UartPortForDev]] and an u32 '''PortEvent'''. Returns a boolean success value.


Supported events are 0 (data), 1 (break), 2 (unknown) and 3 (unknown).
Supported events are 0 (data), 1 (break), 2 (unknown) and 3 (unknown).


== IsSupportedDevice ==
== IsSupportedDevice ==
Takes an u32 [[#UartPort]] and an u32 '''device'''. Returns a boolean success value.
Takes an u32 [[#UartPort]] and an u32 '''Device'''. Returns a boolean success value.


Supported devices are 0 (Bluetooth) for UART-D, 0 (Joy-Con(R)) for UART-B, 0 (Joy-Con(L)) and 1 (MCU) for UART-C.
Supported devices are 0 (Bluetooth) for UART-D, 0 (Joy-Con(R)) for UART-B, 0 (Joy-Con(L)) and 1 (MCU) for UART-C.


== IsSupportedDeviceForDev ==
== IsSupportedDeviceForDev ==
Takes an u32 [[#UartPortForDev]] and an u32 '''device'''. Returns a boolean success value.
Takes an u32 [[#UartPortForDev]] and an u32 '''Device'''. Returns a boolean success value.


Supported devices are 0 (Bluetooth) for UART-D, 0 (Joy-Con(R)) for UART-B, 0 (Joy-Con(L)) and 1 (MCU) for UART-C.
Supported devices are 0 (Bluetooth) for UART-D, 0 (Joy-Con(R)) for UART-B, 0 (Joy-Con(L)) and 1 (MCU) for UART-C.