Changes

Jump to navigation Jump to search
645 bytes added ,  17:14, 2 July 2017
thx BotW
Line 4: Line 4:  
! Cmd || Name
 
! Cmd || Name
 
|-
 
|-
| 0 || OpenSessionForDev
+
| 0 || [[#OpenSessionForDev]]
 
|-
 
|-
 
| 1 || [[#OpenSession]]
 
| 1 || [[#OpenSession]]
Line 18: Line 18:  
| 6 ||
 
| 6 ||
 
|}
 
|}
 +
 +
== OpenSessionForDev ==
 +
Takes a raw GpioPadDescriptor and returns a [[#IPadSession]] session for it.
    
== OpenSession ==
 
== OpenSession ==
Same thing as OpenSessionForDev except the descriptor is looked up in a table:
+
Same thing as OpenSessionForDev except the descriptor is looked up in the table below.
 +
Returns an [[#IPadSession]] session.
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 45: Line 49:  
== OpenSessionForTest ==
 
== OpenSessionForTest ==
 
Same as [[#OpenSession]] but panics on failure.
 
Same as [[#OpenSession]] but panics on failure.
 +
 +
== IPadSession ==
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || SetDirection
 +
|-
 +
| 1 || GetDirection
 +
|-
 +
| 2 || SetInterruptMode
 +
|-
 +
| 3 || GetInterruptMode
 +
|-
 +
| 4 || SetInterruptEnable
 +
|-
 +
| 5 || GetInterruptEnable
 +
|-
 +
| 6 || GetInterruptStatus
 +
|-
 +
| 7 || ClearInterruptStatus
 +
|-
 +
| 8 || SetValue
 +
|-
 +
| 9 || GetValue
 +
|-
 +
| 10 || BindInterrupt
 +
|-
 +
| 11 || UnbindInterrupt
 +
|-
 +
| 12 || SetDebounceEnabled
 +
|-
 +
| 13 || GetDebounceEnabled
 +
|-
 +
| 14 || SetDebounceTime
 +
|-
 +
| 15 || GetDebounceTime
 +
|}
    
== GpioPadDescriptor ==
 
== GpioPadDescriptor ==

Navigation menu