Bus services: Difference between revisions
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
== OpenSessionForDev == | == OpenSessionForDev == | ||
Takes a raw [[#GpioPadDescriptor]] and returns an [[#IPadSession]] | Takes a raw [[#GpioPadDescriptor]] and returns an [[#IPadSession]]. | ||
== OpenSession == | == OpenSession == | ||
Same as [[#OpenSessionForDev]] except it takes a [[#GpioPadName]] which is then converted to a [[#GpioPadDescriptor]]. Returns an [[#IPadSession]] | Same as [[#OpenSessionForDev]] except it takes a [[#GpioPadName]] which is then converted to a [[#GpioPadDescriptor]]. Returns an [[#IPadSession]]. | ||
== OpenSessionForTest == | == OpenSessionForTest == | ||
Line 113: | Line 113: | ||
== OpenSessionForDev == | == OpenSessionForDev == | ||
Takes an u32 '''port''', an u16 '''addr''', an '''AddressingMode''' (1 for 10-bit, 0 otherwise) and a '''SpeedMode''' (400000 or 100000). Returns an [[#II2cSession]] | Takes an u32 '''port''', an u16 '''addr''', an '''AddressingMode''' (1 for 10-bit, 0 otherwise) and a '''SpeedMode''' (400000 or 100000). Returns an [[#II2cSession]]. | ||
== OpenSession == | == OpenSession == | ||
Takes an [[#I2cDevice]] and returns an [[#II2cSession]] | Takes an [[#I2cDevice]] and returns an [[#II2cSession]]. | ||
== HasDevice == | == HasDevice == | ||
Line 283: | Line 283: | ||
| 1 || OpenSession | | 1 || OpenSession | ||
|- | |- | ||
| 2 || [6.0.0+] OpenSession2 | | 2 || [6.0.0+] [[#OpenSession2_3|OpenSession2]] | ||
|} | |} | ||
== OpenSession2 == | |||
Takes a [[#ChannelName|DeviceCode]] and returns an [[#IChannelSession]]. | |||
== IChannelSession == | == IChannelSession == | ||
Line 359: | Line 362: | ||
== OpenSession == | == OpenSession == | ||
Takes | Takes a [[#SasbusPort]] and returns an [[#ISession_2|ISession]]. | ||
== ISession == | == ISession == | ||
Line 826: | Line 827: | ||
|- | |- | ||
| 100 || Uart4Tx, Uart4Rx, Uart4Rts and Uart4Cts | | 100 || Uart4Tx, Uart4Rx, Uart4Rts and Uart4Cts | ||
|} | |||
= SasbusPort = | |||
{| class="wikitable sortable" border="1" | |||
|- | |||
! Name || DeviceCode || Port || Usage | |||
|- | |||
| 0 || 0x3500003D || SPI4 || Joy-Con | |||
|} | |} | ||
[[Category:Services]] | [[Category:Services]] |