Changes

Jump to navigation Jump to search
no edit summary
== OpenSessionForDev ==
Takes a raw [[#GpioPadDescriptor]] and returns an [[#IPadSession]] session for it.
== OpenSession ==
Same as [[#OpenSessionForDev]] except it takes a [[#GpioPadName]] which is then converted to a [[#GpioPadDescriptor]]. Returns an [[#IPadSession]] session.
== OpenSessionForTest ==
== 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]] session.
== OpenSession ==
Takes an [[#I2cDevice]] and returns an [[#II2cSession]] session for it.
== HasDevice ==
| 1 || OpenSession
|-
| 2 || [6.0.0+] [[#OpenSession2_3|OpenSession2]]
|}
 
== OpenSession2 ==
Takes a [[#ChannelName|DeviceCode]] and returns an [[#IChannelSession]].
== IChannelSession ==
== OpenSession ==
Takes an u32 that must be 0 a [[#SasbusPort]] and returns an [[#ISession_2|ISession]]. This opens a session for communicating over SPI4. While code exists to support both SPI1 and SPI4 communication, SPI4 is currently hardcoded as the only available interface.
== ISession ==
|-
| 100 || Uart4Tx, Uart4Rx, Uart4Rts and Uart4Cts
|}
 
= SasbusPort =
{| class="wikitable sortable" border="1"
|-
! Name || DeviceCode || Port || Usage
|-
| 0 || 0x3500003D || SPI4 || Joy-Con
|}
[[Category:Services]]

Navigation menu