Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_RPISENSE_JOYSTICK Struct Reference

#include <rpisensehat.h>

Data Fields

KEYBOARD_DEVICE keyboard
I2C_DEVICEi2c
 The I2C device the device is connected to.
GPIO_DEVICEgpio
 The GPIO device the device is connected to.
uint32_t pin
 The GPIO pin used to signal joystick events (GPIO_PIN_23).
uint32_t trigger
 The GPIO trigger to detect joystick events (GPIO_TRIGGER_RISING).
int32_t previouskeys
 The keys pressed on the last GPIO event callback.
uint32_t callbackcount
 Number of callback requests received by the device.

Field Documentation

◆ keyboard

KEYBOARD_DEVICE keyboard

◆ i2c

I2C_DEVICE* i2c

The I2C device the device is connected to.

◆ gpio

GPIO_DEVICE* gpio

The GPIO device the device is connected to.

◆ pin

uint32_t pin

The GPIO pin used to signal joystick events (GPIO_PIN_23).

◆ trigger

uint32_t trigger

The GPIO trigger to detect joystick events (GPIO_TRIGGER_RISING).

◆ previouskeys

int32_t previouskeys

The keys pressed on the last GPIO event callback.

◆ callbackcount

uint32_t callbackcount

Number of callback requests received by the device.


The documentation for this struct was generated from the following file: