Bus services: Difference between revisions
No edit summary |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 81: | Line 81: | ||
| 5 || [[#GetInterruptEnable|GetInterruptEnable]] | | 5 || [[#GetInterruptEnable|GetInterruptEnable]] | ||
|- | |- | ||
| 6 || [[#GetInterruptStatus|GetInterruptStatus]] | | 6 || [1.0.0-16.1.0] [[#GetInterruptStatus|GetInterruptStatus]] | ||
|- | |- | ||
| 7 || [[#ClearInterruptStatus|ClearInterruptStatus]] | | 7 || [1.0.0-16.1.0] [[#ClearInterruptStatus|ClearInterruptStatus]] | ||
|- | |- | ||
| 8 || [[#SetValue|SetValue]] | | 8 || [[#SetValue|SetValue]] | ||
Line 261: | Line 261: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[#HasPort|HasPort]] | | 0 || [1.0.0-16.1.0] [[#HasPort|HasPort]] | ||
|- | |- | ||
| 1 || [[#HasPortForDev|HasPortForDev]] | | 1 || [1.0.0-16.1.0] [[#HasPortForDev|HasPortForDev]] | ||
|- | |- | ||
| 2 || [[#IsSupportedBaudRate|IsSupportedBaudRate]] | | 2 || [1.0.0-16.1.0] [[#IsSupportedBaudRate|IsSupportedBaudRate]] | ||
|- | |- | ||
| 3 || [[#IsSupportedBaudRateForDev|IsSupportedBaudRateForDev]] | | 3 || [1.0.0-16.1.0] [[#IsSupportedBaudRateForDev|IsSupportedBaudRateForDev]] | ||
|- | |- | ||
| 4 || [[#IsSupportedFlowControlMode|IsSupportedFlowControlMode]] | | 4 || [1.0.0-16.1.0] [[#IsSupportedFlowControlMode|IsSupportedFlowControlMode]] | ||
|- | |- | ||
| 5 || [[#IsSupportedFlowControlModeForDev|IsSupportedFlowControlModeForDev]] | | 5 || [1.0.0-16.1.0] [[#IsSupportedFlowControlModeForDev|IsSupportedFlowControlModeForDev]] | ||
|- | |- | ||
| 6 || [[#CreatePortSession|CreatePortSession]] | | 6 || [[#CreatePortSession|CreatePortSession]] | ||
|- | |- | ||
| 7 || [[#IsSupportedPortEvent|IsSupportedPortEvent]] | | 7 || [1.0.0-16.1.0] [[#IsSupportedPortEvent|IsSupportedPortEvent]] | ||
|- | |- | ||
| 8 || [[#IsSupportedPortEventForDev|IsSupportedPortEventForDev]] | | 8 || [1.0.0-16.1.0] [[#IsSupportedPortEventForDev|IsSupportedPortEventForDev]] | ||
|- | |- | ||
| 9 || [7.0.0 | | 9 || [7.0.0-16.1.0] [[#IsSupportedDeviceVariation|IsSupportedDeviceVariation]] | ||
|- | |- | ||
| 10 || [7.0.0 | | 10 || [7.0.0-16.1.0] [[#IsSupportedDeviceVariationForDev|IsSupportedDeviceVariationForDev]] | ||
|} | |} | ||
Line 420: | Line 420: | ||
| 5 || GetEnabled | | 5 || GetEnabled | ||
|- | |- | ||
| 6 || [6.0.0+] | | 6 || [6.0.0+] [[#SetDutyCycle|SetDutyCycle]] | ||
|- | |- | ||
| 7 || [6.0.0+] | | 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 450: | Line 456: | ||
|- | |- | ||
| 2 || [[#SetPinAssignmentForHardwareTest|SetPinAssignmentForHardwareTest]] | | 2 || [[#SetPinAssignmentForHardwareTest|SetPinAssignmentForHardwareTest]] | ||
|- | |||
| 3 || [17.0.0+] SetSfioConfiguration | |||
|- | |||
| 4 || [17.0.0+] GetSfioConfiguration | |||
|- | |||
| 5 || [17.0.0+] SetInputEnableConfiguration | |||
|- | |||
| 6 || [17.0.0+] GetInputEnableConfiguration | |||
|- | |||
| 7 || [17.0.0+] SetPullConfiguration | |||
|- | |||
| 8 || [17.0.0+] GetPullConfiguration | |||
|- | |||
| 9 || [17.0.0+] SetPmConfiguration | |||
|- | |||
| 10 || [17.0.0+] GetPmConfiguration | |||
|} | |} | ||
Line 490: | Line 512: | ||
|- | |- | ||
| 3 || [[#StopPeriodicReceiveMode|StopPeriodicReceiveMode]] | | 3 || [[#StopPeriodicReceiveMode|StopPeriodicReceiveMode]] | ||
|- | |||
| 4 || [19.0.0+] | |||
|- | |||
| 5 || [19.0.0+] | |||
|} | |} | ||
Line 499: | Line 525: | ||
=== StartPeriodicReceiveMode === | === StartPeriodicReceiveMode === | ||
Takes an u8 '''SpiCommand''' (padded to u32), an u32, two u64s and a | 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 528: | Line 566: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || | | 0 || StartLighting | ||
|- | |- | ||
| 1 || | | 1 || StopLighting | ||
|- | |- | ||
| 2 || | | 2 || SetLightingMode | ||
|- | |- | ||
| 3 || | | 3 || GetLightingMode | ||
|- | |- | ||
| 4 || | | 4 || IsLighting | ||
|- | |- | ||
| 5 || | | 5 || SetRisingTime | ||
|- | |- | ||
| 6 || | | 6 || GetRisingTime | ||
|- | |- | ||
| 7 || | | 7 || SetFallingTime | ||
|- | |- | ||
| 8 || | | 8 || GetFallingTime | ||
|- | |- | ||
| 9 || | | 9 || SetPeakTime | ||
|- | |- | ||
| 10 || | | 10 || GetPeakTime | ||
|- | |- | ||
| 11 || | | 11 || SetPulseInterval | ||
|- | |- | ||
| 12 || | | 12 || GetPulseInterval | ||
|- | |- | ||
| 13 || | | 13 || SetPulseCount | ||
|- | |- | ||
| 14 || | | 14 || GetPulseCount | ||
|- | |- | ||
| 15 || | | 15 || GetMaxPulseCount | ||
|- | |- | ||
| 16 || | | 16 || SetBreathInterval | ||
|- | |- | ||
| 17 || | | 17 || GetBreathInterval | ||
|- | |- | ||
| 18 || | | 18 || SetConstantBrightness | ||
|- | |- | ||
| 19 || | | 19 || GetConstantBrightness | ||
|- | |- | ||
| 20 || [10.0.0+] | | 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 | ||
Line 1,167: | Line 1,205: | ||
| [10.0.0+] 1 || SPI4 || 0x3500003D || Icm40607 (WHOAMI 0x38) | | [10.0.0+] 1 || SPI4 || 0x3500003D || Icm40607 (WHOAMI 0x38) | ||
|- | |- | ||
| [13.0.0+] 2 || SPI4 || 0x3500003D || | | [13.0.0+] 2 || SPI4 || 0x3500003D || Icm42607p (WHOAMI 0x60) | ||
|} | |} | ||
[[Category:Services]] | [[Category:Services]] |