52 unsigned pin,
unsigned mode,
int value);
63 unsigned pin,
unsigned mode);
74 unsigned pin,
unsigned func,
unsigned value);
85 unsigned pin,
unsigned func,
unsigned *value);
107 unsigned pin,
int value);
119 unsigned offset,
unsigned mask,
120 unsigned mode,
unsigned value);
132 unsigned offset,
unsigned mask,
133 unsigned func,
unsigned value);
143 unsigned offset,
unsigned *data);
155 unsigned offset,
unsigned mask,
unsigned data);
L4 compiler related defines.
unsigned long l4_cap_idx_t
Capability selector type.
#define __END_DECLS
End section with C types and functions.
#define L4_CV
Define calling convention.
#define __BEGIN_DECLS
Start section with C types and functions.
int l4vbus_gpio_to_irq(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin)
Create IRQ for GPIO pin.
int l4vbus_gpio_set(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, int value)
Set GPIO output pin.
L4vbus_gpio_generic_func
Constants for generic GPIO functions.
int l4vbus_gpio_multi_set(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned offset, unsigned mask, unsigned data)
Set multiple GPIO output pins at once.
int l4vbus_gpio_setup(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, unsigned mode, int value)
Configure the function of a GPIO pin.
int l4vbus_gpio_config_pull(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, unsigned mode)
Generic function to set pull up/down mode.
L4vbus_gpio_pull_modes
Constants for generic GPIO pull up/down resistor configuration.
int l4vbus_gpio_multi_config_pad(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned offset, unsigned mask, unsigned func, unsigned value)
Hardware specific configuration function for multiple GPIO pins.
int l4vbus_gpio_config_get(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, unsigned func, unsigned *value)
Read hardware specific configuration.
int l4vbus_gpio_multi_setup(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned offset, unsigned mask, unsigned mode, unsigned value)
Configure function of multiple GPIO pins at once.
int l4vbus_gpio_config_pad(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, unsigned func, unsigned value)
Hardware specific configuration function.
int l4vbus_gpio_multi_get(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned offset, unsigned *data)
Read values of multiple GPIO pins at once.
int l4vbus_gpio_get(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin)
Read value of GPIO input pin.
@ L4VBUS_GPIO_SETUP_IRQ
Set GPIO pin to IRQ.
@ L4VBUS_GPIO_SETUP_INPUT
Set GPIO pin to input.
@ L4VBUS_GPIO_SETUP_OUTPUT
Set GPIO pin to output.
@ L4VBUS_GPIO_PIN_PULL_DOWN
enable pull down resistor
@ L4VBUS_GPIO_PIN_PULL_NONE
No pull up or pull down resistors.
@ L4VBUS_GPIO_PIN_PULL_UP
enable pull up resistor
Common L4 ABI Data Types.
This header file contains descriptions of vbus related data types and constants.
l4_mword_t l4vbus_device_handle_t
Device handle for a device on the vbus.