ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_pin_interface_t Struct Reference

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.

Detailed Description

Vtable for a pin driver.

Definition at line 51 of file ra8_pin_interface.h.

Field Documentation

◆ ctx

void* ra8_pin_interface_t::ctx

◆ output_init

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().

◆ read

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().

◆ toggle

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.

◆ write

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().


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