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);
123 unsigned offset,
unsigned mask,
124 unsigned mode,
unsigned value);
140 unsigned offset,
unsigned mask,
141 unsigned func,
unsigned value);
151 unsigned offset,
unsigned *data);
163 unsigned offset,
unsigned mask,
unsigned data);
L4vbus_gpio_pull_modes
Constants for generic GPIO pull up/down resistor 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.
Common L4 ABI Data Types.
unsigned long l4_cap_idx_t
L4 Capability selector Type.
#define __END_DECLS
End section with C types and functions.
L4 compiler related defines.
No pull up or pull down resistors.
int l4vbus_gpio_set(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, int value)
Set GPIO output pin.
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_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_config_pull(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, unsigned mode)
Generic function to set pull up/down mode.
#define L4_CV
Define calling convention.
This header file contains descriptions of vbus related data types and constants.
L4vbus_gpio_generic_func
Constants for generic GPIO functions.
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.
enable pull down resistor
int l4vbus_gpio_get(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin)
Read value of GPIO input pin.
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_pad(l4_cap_idx_t vbus, l4vbus_device_handle_t handle, unsigned pin, unsigned func, unsigned value)
Hardware specific configuration function.
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_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.