Changes

29 bytes added ,  17:47, 10 March 2020
no edit summary
Line 30: Line 30:     
== OpenSessionForDev ==
 
== OpenSessionForDev ==
Takes a raw [[#GpioPadDescriptor]] and returns an [[#IPadSession]] session for it.
+
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]] session.
+
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]] session.
+
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]] session for it.
+
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 an u32 that must be 0 and returns an [[#ISession_2|ISession]].
+
Takes 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 ==
 
== 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]]