PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
pbl_gpio_port Struct Reference

A GPIO controller. More...

#include <gpio.h>

Data Fields

struct pbl_device dev
 Device.
 
const struct pbl_gpio_port_ops * ops
 Driver operations.
 
uint8_t num_pins
 Number of pins.
 
const struct pbl_intc * intc
 Interrupt controller of the pins, NULL if the port cannot interrupt.
 
int(* init )(const struct pbl_device *dev)
 Driver init function, or NULL, called before the hogs are configured.
 

Detailed Description

A GPIO controller.

Field Documentation

◆ dev

struct pbl_device pbl_gpio_port::dev

Device.

◆ init

int(* pbl_gpio_port::init) (const struct pbl_device *dev)

Driver init function, or NULL, called before the hogs are configured.

◆ intc

const struct pbl_intc* pbl_gpio_port::intc

Interrupt controller of the pins, NULL if the port cannot interrupt.

◆ num_pins

uint8_t pbl_gpio_port::num_pins

Number of pins.

◆ ops

const struct pbl_gpio_port_ops* pbl_gpio_port::ops

Driver operations.

Referenced by pbl_gpio_can_sleep().


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