Raspberry Pi RP2040/RP2350 Joybus backend.
More...
|
| #define | JOYBUS_RP2XXX(bus) |
| | Macro to cast a generic Joybus instance to a RP2xxx Joybus instance.
|
Raspberry Pi RP2040/RP2350 Joybus backend.
◆ JOYBUS_RP2XXX
| #define JOYBUS_RP2XXX |
( |
| bus | ) |
|
Value:
A RP2xxx Joybus instance.
Definition rp2xxx.h:60
Macro to cast a generic Joybus instance to a RP2xxx Joybus instance.
◆ joybus_rp2xxx_init()
| int joybus_rp2xxx_init |
( |
struct joybus_rp2xxx * | rp2xxx_bus, |
|
|
uint8_t | gpio, |
|
|
PIO | pio ) |
Initialize a RP2xxx Joybus instance.
- Parameters
-
| rp2xxx_bus | the RP2xxx Joybus instance to initialize |
| gpio | the GPIO pin to use for the Joybus data line |
| pio | the PIO instance to use (eg. pio0 or pio1) |
- Returns
- 0 on success, negative error code on failure