|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Vtable for a pin driver. More...
#include <ra8_pin_interface.h>
Data Fields | |
| ra8_err_t(* | output_init )(void *ctx, ra8_port_pin_t pin, ra8_level_t init_level) |
| Configure a pin as an output at an initial level. | |
| ra8_err_t(* | write )(void *ctx, ra8_port_pin_t pin, ra8_level_t level) |
| Drive a pin. | |
| ra8_err_t(* | read )(void *ctx, ra8_port_pin_t pin, ra8_level_t *out_level) |
| Read a pin. | |
| ra8_err_t(* | toggle )(void *ctx, ra8_port_pin_t pin) |
| Toggle a pin. | |
| void * | ctx |
| Opaque context handed to every call. | |
Vtable for a pin driver.
Definition at line 51 of file ra8_pin_interface.h.
| void* ra8_pin_interface_t::ctx |
Opaque context handed to every call.
Definition at line 71 of file ra8_pin_interface.h.
Referenced by internal_config_gpio(), internal_do_bus_transfer(), internal_read_gpio(), internal_sample(), internal_write_gpio(), and priv_ra8_esp_hosted_spi_open().
| ra8_err_t(* ra8_pin_interface_t::output_init) (void *ctx, ra8_port_pin_t pin, ra8_level_t init_level) |
Configure a pin as an output at an initial level.
Definition at line 55 of file ra8_pin_interface.h.
Referenced by internal_config_gpio(), and priv_ra8_esp_hosted_spi_open().
| ra8_err_t(* ra8_pin_interface_t::read) (void *ctx, ra8_port_pin_t pin, ra8_level_t *out_level) |
Read a pin.
Definition at line 63 of file ra8_pin_interface.h.
Referenced by internal_read_gpio(), and internal_sample().
| ra8_err_t(* ra8_pin_interface_t::toggle) (void *ctx, ra8_port_pin_t pin) |
Toggle a pin.
Definition at line 67 of file ra8_pin_interface.h.
| ra8_err_t(* ra8_pin_interface_t::write) (void *ctx, ra8_port_pin_t pin, ra8_level_t level) |
Drive a pin.
Definition at line 59 of file ra8_pin_interface.h.
Referenced by internal_do_bus_transfer(), and internal_write_gpio().