Bus services: Difference between revisions

 
(5 intermediate revisions by 3 users not shown)
Line 420: Line 420:
| 5 || GetEnabled
| 5 || GetEnabled
|-
|-
| 6 || [6.0.0+] SetScale
| 6 || [6.0.0+] [[#SetDutyCycle|SetDutyCycle]]
|-
|-
| 7 || [6.0.0+] GetScale
| 7 || [6.0.0+] [[#GetDutyCycle|GetDutyCycle]]
|}
|}
=== SetDutyCycle ===
Takes an input double '''DutyCycle'''. No output.
=== GetDutyCycle ===
No input. Returns an output double '''DutyCycle'''.


= pinmux =
= pinmux =
Line 451: Line 457:
| 2 || [[#SetPinAssignmentForHardwareTest|SetPinAssignmentForHardwareTest]]
| 2 || [[#SetPinAssignmentForHardwareTest|SetPinAssignmentForHardwareTest]]
|-
|-
| 3 || [17.0.0+]
| 3 || [17.0.0+] SetSfioConfiguration
|-
|-
| 4 || [17.0.0+]
| 4 || [17.0.0+] GetSfioConfiguration
|-
|-
| 5 || [17.0.0+]
| 5 || [17.0.0+] SetInputEnableConfiguration
|-
|-
| 6 || [17.0.0+]
| 6 || [17.0.0+] GetInputEnableConfiguration
|-
|-
| 7 || [17.0.0+]
| 7 || [17.0.0+] SetPullConfiguration
|-
|-
| 8 || [17.0.0+]
| 8 || [17.0.0+] GetPullConfiguration
|-
|-
| 9 || [17.0.0+]
| 9 || [17.0.0+] SetPmConfiguration
|-
|-
| 10 || [17.0.0+]
| 10 || [17.0.0+] GetPmConfiguration
|}
|}


Line 506: Line 512:
|-
|-
| 3 || [[#StopPeriodicReceiveMode|StopPeriodicReceiveMode]]
| 3 || [[#StopPeriodicReceiveMode|StopPeriodicReceiveMode]]
|-
| 4 || [19.0.0+]
|-
| 5 || [19.0.0+]
|}
|}


Line 515: Line 525:


=== StartPeriodicReceiveMode ===
=== StartPeriodicReceiveMode ===
Takes an u8 '''SpiCommand''' (padded to u32), an u32, two u64s and a copy handle. No output.
Takes an u8 '''SpiCommand''' (padded to u32), an u32, two u64s and a TransferMemory handle. No output.
 
[20.0.0+] Data intended for the user-process was [[Switch_System_Flaws|moved]] from tmem+0x8 to +0x0.


=== StopPeriodicReceiveMode ===
=== StopPeriodicReceiveMode ===
No input/output.
No input/output.
=== Cmd4 ===
Takes a total of 0x10-bytes of input and an input handle. No output.
This is similar to [[#StartPeriodicReceiveMode|StartPeriodicReceiveMode]]. This eventually calls an impl func which just writes some input fields into state, then (on NX) Aborts.
=== Cmd5 ===
No input/output.
This is identical to [[#StopPeriodicReceiveMode|StopPeriodicReceiveMode]].


= led =
= led =
Line 544: Line 566:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || SetConfigEnable
| 0 || StartLighting
|-
|-
| 1 || SetConfigDisable
| 1 || StopLighting
|-
|-
| 2 || SetConfigType
| 2 || SetLightingMode
|-
|-
| 3 || GetConfigType
| 3 || GetLightingMode
|-
|-
| 4 || GetBlinkPwmEnabled
| 4 || IsLighting
|-
|-
| 5 || SetConfigSoftBlinkRampTime
| 5 || SetRisingTime
|-
|-
| 6 || GetConfigSoftBlinkRampTime
| 6 || GetRisingTime
|-
|-
| 7 || SetConfigSoftBlinkRampTime2
| 7 || SetFallingTime
|-
|-
| 8 || GetConfigSoftBlinkRampTime2
| 8 || GetFallingTime
|-
|-
| 9 || SetConfigSoftBlinkPlateau
| 9 || SetPeakTime
|-
|-
| 10 || GetConfigSoftBlinkPlateau
| 10 || GetPeakTime
|-
|-
| 11 || SetConfigSoftBlinkShortPeriod
| 11 || SetPulseInterval
|-
|-
| 12 || GetConfigSoftBlinkShortPeriod
| 12 || GetPulseInterval
|-
|-
| 13 || SetConfigSoftBlinkShortPeriodEnable
| 13 || SetPulseCount
|-
|-
| 14 || GetConfigSoftBlinkShortPeriodEnable
| 14 || GetPulseCount
|-
|-
| 15 || GetConfigSoftBlinkShortPeriodConeCount
| 15 || GetMaxPulseCount
|-
|-
| 16 || SetConfigSoftBlinkLongPeriod
| 16 || SetBreathInterval
|-
|-
| 17 || GetConfigSoftBlinkLongPeriod
| 17 || GetBreathInterval
|-
|-
| 18 || SetBlinkPwmScale
| 18 || SetConstantBrightness
|-
|-
| 19 || GetBlinkPwmScale
| 19 || GetConstantBrightness
|-
|-
| 20 || [10.0.0+] GetSoftBlinkFsmStatus ([8.1.1-9.2.0] RegisterPwmChannel)
| 20 || [10.0.0+] GetBreathingStatus ([8.1.1-9.2.0] RegisterPwmChannel)
|-
|-
| 21 || [8.1.1-9.2.0] UnregisterPwmChannel
| 21 || [8.1.1-9.2.0] UnregisterPwmChannel