Pinmux

Overview

API Reference

group pinmux_interface

Pinmux Interface.

Defines

PINMUX_FUNC_A
PINMUX_FUNC_B
PINMUX_FUNC_C
PINMUX_FUNC_D
PINMUX_FUNC_E
PINMUX_FUNC_F
PINMUX_FUNC_G
PINMUX_FUNC_H
PINMUX_FUNC_I
PINMUX_FUNC_J
PINMUX_FUNC_K
PINMUX_FUNC_L
PINMUX_FUNC_M
PINMUX_FUNC_N
PINMUX_FUNC_O
PINMUX_FUNC_P
PINMUX_PULLUP_ENABLE
PINMUX_PULLUP_DISABLE
PINMUX_INPUT_ENABLED
PINMUX_OUTPUT_ENABLED

Typedefs

typedef int (*pmux_set)(const struct device *dev, uint32_t pin, uint32_t func)

Callback API upon setting a PIN’s function See pinmux_pin_set() for argument description.

typedef int (*pmux_get)(const struct device *dev, uint32_t pin, uint32_t *func)

Callback API upon getting a PIN’s function See pinmux_pin_get() for argument description.

typedef int (*pmux_pullup)(const struct device *dev, uint32_t pin, uint8_t func)

Callback API upon setting a PIN’s pullup See pinmix_pin_pullup() for argument description.

typedef int (*pmux_input)(const struct device *dev, uint32_t pin, uint8_t func)

Callback API upon setting a PIN’s input function See pinmux_input() for argument description.

Functions

static inline int pinmux_pin_set(const struct device *dev, uint32_t pin, uint32_t func)
static inline int pinmux_pin_get(const struct device *dev, uint32_t pin, uint32_t *func)
static inline int pinmux_pin_pullup(const struct device *dev, uint32_t pin, uint8_t func)
static inline int pinmux_pin_input_enable(const struct device *dev, uint32_t pin, uint8_t func)
struct pinmux_driver_api
#include <pinmux.h>