|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Header file for the M5Stack M5PM1 MFD driver. More...
Go to the source code of this file.
Enumerations | |
| enum | m5pm1_pin_func { M5PM1_PIN_FUNC_GPIO = 0 , M5PM1_PIN_FUNC_IRQ , M5PM1_PIN_FUNC_ADC , M5PM1_PIN_FUNC_PWM , M5PM1_PIN_FUNC_NEOPIXEL } |
| Semantic function of an M5PM1 multiplexed pin. More... | |
Functions | |
| int | mfd_m5pm1_read_reg (const struct device *dev, uint8_t reg, uint8_t *val) |
| Read a single 8-bit M5PM1 register. | |
| int | mfd_m5pm1_write_reg (const struct device *dev, uint8_t reg, uint8_t val) |
| Write a single 8-bit M5PM1 register. | |
| int | mfd_m5pm1_update_reg (const struct device *dev, uint8_t reg, uint8_t mask, uint8_t val) |
| Read-modify-write selected bits of an M5PM1 register. | |
| int | mfd_m5pm1_toggle_reg (const struct device *dev, uint8_t reg, uint8_t mask) |
| Toggle selected bits of an M5PM1 register. | |
| int | mfd_m5pm1_burst_read (const struct device *dev, uint8_t reg, uint8_t *buf, size_t len) |
| Read multiple consecutive M5PM1 registers in a single I2C transaction. | |
| int | mfd_m5pm1_burst_write (const struct device *dev, uint8_t reg, const uint8_t *buf, size_t len) |
| Write multiple consecutive M5PM1 registers in a single I2C transaction. | |
| int | mfd_m5pm1_pin_request (const struct device *dev, const struct device *client, uint8_t pin, enum m5pm1_pin_func func) |
| Claim a pin for a given function on behalf of a sibling driver. | |
| int | mfd_m5pm1_pin_release (const struct device *dev, const struct device *client, uint8_t pin) |
| Release a pin previously claimed with mfd_m5pm1_pin_request(). | |
Header file for the M5Stack M5PM1 MFD driver.