Bus services: Difference between revisions
No edit summary |
No edit summary |
||
Line 244: | Line 244: | ||
== OpenSessionForDev == | == OpenSessionForDev == | ||
Takes a raw [[#GpioPadDescriptor]] and returns | Takes a raw [[#GpioPadDescriptor]] and returns an [[#IPadSession]] session for it. | ||
== OpenSession == | == OpenSession == | ||
Line 388: | Line 388: | ||
== OpenSessionForDev == | == OpenSessionForDev == | ||
Takes an u32 '''port''', an u16 '''addr''', an '''AddressingMode''' (1 for 10-bit, 0 otherwise) and a '''SpeedMode''' (400000 or 100000). Returns | 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. | ||
== OpenSession == | == OpenSession == | ||
Takes an '''I2cDevice''' and returns | Takes an '''I2cDevice''' and returns an [[#II2cSession]] session for it. | ||
== HasDevice == | == HasDevice == |