void hal_gpio_deregister_pin(hal_gpio_pin_t *pin)
De-register a pin.
Definition: hal_gpio.c:80
void hal_gpio_write_pin_output(hal_gpio_pin_t *pin, uint8_t value)
Sets pin state.
Definition: hal_gpio.c:127
void hal_gpio_set_pin_output(hal_gpio_pin_t *pin)
Set pin state high.
Definition: hal_gpio.c:160
void hal_gpio_toggle_pin_output(hal_gpio_pin_t *pin)
Toggle pin state.
Definition: hal_gpio.c:140
void hal_gpio_clear_pin_output(hal_gpio_pin_t *pin)
Set pin state low.
Definition: hal_gpio.c:176
void hal_gpio_configure_pin(hal_gpio_pin_t *pin, hal_pin_name_t name, hal_gpio_direction_t direction)
Configure pin.
Definition: hal_gpio.c:53
uint8_t hal_gpio_read_pin_input(hal_gpio_pin_t *pin)
Read pin.
Definition: hal_gpio.c:96
hal_port_size_t hal_gpio_read_port_input(hal_gpio_port_t *port)
Read port.
Definition: hal_gpio.c:200
void hal_gpio_configure_port(hal_gpio_port_t *port, hal_port_name_t name, hal_gpio_mask_t mask, hal_gpio_direction_t direction)
Configure port.
Definition: hal_gpio.c:192
hal_port_size_t hal_gpio_read_port_output(hal_gpio_port_t *port)
Read port.
Definition: hal_gpio.c:205
void hal_gpio_write_port_output(hal_gpio_port_t *port, hal_port_size_t value)
Sets port state.
Definition: hal_gpio.c:210
uint8_t hal_gpio_read_pin_output(hal_gpio_pin_t *pin)
Read pin.
Definition: hal_gpio.c:111
hal_gpio_direction_t
Definition: hal_gpio.h:58
@ HAL_GPIO_DIGITAL_INPUT
GPIO as digital input.
Definition: hal_gpio.h:59
@ HAL_GPIO_DIGITAL_OUTPUT
GPIO as digital output.
Definition: hal_gpio.h:60
handle_t hal_gpio_base_t
Handle type.
Definition: hal_gpio.h:63
hal_ll_gpio_mask_t hal_gpio_mask_t
Mask type.
Definition: hal_gpio.h:64
struct hal_gpio_t hal_gpio_t
GPIO HAL context structure, consisted of the following fields :
HAL target macros and typedefs.
uintptr_t handle_t
Definition: hal_target.h:58
hal_ll_port_size_t hal_port_size_t
Port width, which is size dependant on the architecture.
Definition: hal_target.h:75
hal_ll_port_name_t hal_port_name_t
Port type, which is size dependant on the architecture.
Definition: hal_target.h:74
hal_ll_pin_name_t hal_pin_name_t
Pin type, which is size dependant on the architecture.
Definition: hal_target.h:73
uint32_t hal_ll_gpio_mask_t
Definition: hal_target.h:59
GPIO HAL context structure, consisted of the following fields :
Definition: hal_gpio.h:76
hal_gpio_mask_t mask
Pin number.
Definition: hal_gpio.h:78
hal_gpio_base_t base
Port number.
Definition: hal_gpio.h:77