Bus services: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 45: | Line 45: | ||
== OpenSession2 == | == OpenSession2 == | ||
Same as [[#OpenSession]] but takes a [[#GpioPadName|DeviceCode]] and an u32. | Same as [[#OpenSession]] but takes a [[#GpioPadName|DeviceCode]] and an input u32 [[#AccessMode]]. | ||
== IsWakeEventActive2 == | == IsWakeEventActive2 == | ||
Line 282: | Line 282: | ||
[7.0.0+] Takes 4 input u8s (padded as u32) '''IsInvertTx''', '''IsInvertRx''', '''IsInvertRts''' and '''IsInvertCts''', 4 input u32s [[#UartPort]], '''BaudRate''', [[#FlowControlMode]] and '''DeviceVariation''', 2 input u64s '''SendBufferLength''' and '''ReceiveBufferLength''' and 2 input TransferMemory handles '''SendHandle''' and '''ReceiveHandle'''. Returns an output boolean success value. | [7.0.0+] Takes 4 input u8s (padded as u32) '''IsInvertTx''', '''IsInvertRx''', '''IsInvertRts''' and '''IsInvertCts''', 4 input u32s [[#UartPort]], '''BaudRate''', [[#FlowControlMode]] and '''DeviceVariation''', 2 input u64s '''SendBufferLength''' and '''ReceiveBufferLength''' and 2 input TransferMemory handles '''SendHandle''' and '''ReceiveHandle'''. Returns an output boolean success value. | ||
This will Abort when the specified [[#UartPort]] is already being used, due to a [[SVC]] failing. | |||
=== OpenPortForDev === | === OpenPortForDev === | ||
Line 373: | Line 375: | ||
=== SetPinAssignment === | === SetPinAssignment === | ||
Takes | Takes a [[#PinAssignment]]. No output. | ||
=== GetPinAssignment === | === GetPinAssignment === | ||
No input. Returns | No input. Returns a [[#PinAssignment]]. | ||
=== SetPinAssignmentForHardwareTest === | === SetPinAssignmentForHardwareTest === | ||
Takes | Takes a [[#PinAssignmentForHardwareTest]]. No output. | ||
= sasbus = | = sasbus = | ||
Line 963: | Line 965: | ||
|- | |- | ||
| 100 || Uart4Tx, Uart4Rx, Uart4Rts and Uart4Cts | | 100 || Uart4Tx, Uart4Rx, Uart4Rts and Uart4Cts | ||
|} | |||
= PinAssignment = | |||
This is "nn::pinmux::PinAssignment". | |||
{| class="wikitable sortable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 2 || Sdmmc1OutputHigh | |||
|- | |||
| 3 || Sdmmc1ResetState | |||
|- | |||
| 4 || Sdmmc1SchmtEnable | |||
|- | |||
| 5 || Sdmmc1SchmtDisable | |||
|} | |||
= PinAssignmentForHardwareTest = | |||
This is "nn::pinmux::PinAssignmentForHardwareTest". | |||
{| class="wikitable sortable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 100 || UartDHiZ | |||
|- | |||
| 101 || UartDEnable | |||
|} | |} | ||
Line 971: | Line 1,001: | ||
|- | |- | ||
| 0 || SPI4 || 0x3500003D || Joy-Con | | 0 || SPI4 || 0x3500003D || Joy-Con | ||
|} | |||
= AccessMode = | |||
This is "nn::ddsf::AccessMode". | |||
{| class="wikitable sortable" border="1" | |||
|- | |||
! Value || Name | |||
|- | |||
| 0 || None | |||
|- | |||
| 1 || Read | |||
|- | |||
| 2 || Write | |||
|- | |||
| 3 || ReadWrite | |||
|} | |} | ||
[[Category:Services]] | [[Category:Services]] |