Bus services: Difference between revisions
Line 604: | Line 604: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || OpenSession | | 0 || [[#OpenSession_3|OpenSession]] | ||
|} | |} | ||
== OpenSession == | |||
Takes an u32 that must be 0 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 614: | Line 619: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || Write | | 0 || [[#Write]] | ||
|- | |- | ||
| 1 || Read | | 1 || [[#Read]] | ||
|- | |- | ||
| 2 || StartPeriodicReceiveMode | | 2 || [[#StartPeriodicReceiveMode]] | ||
|- | |- | ||
| 3 || StopPeriodicReceiveMode | | 3 || [[#StopPeriodicReceiveMode]] | ||
|} | |} | ||
=== Write === | |||
Takes a type-0x21 input buffer and an u8 '''SpiCommand'''. No output. | |||
=== Read === | |||
Takes a type-0x22 output buffer and an u8 '''SpiCommand'''. No output. | |||
=== StartPeriodicReceiveMode === | |||
Takes an u8 '''SpiCommand''', an u32 and two u64s. No output. | |||
=== StopPeriodicReceiveMode === | |||
No input/output. | |||
= led = | = led = |