6#ifndef ZEPHYR_DRIVERS_MFD_SC18IS604_EMUL_H_
7#define ZEPHYR_DRIVERS_MFD_SC18IS604_EMUL_H_
11#include <zephyr/drivers/emul.h>
13#define SC18IS604_BUFFER_SIZE 255
int mfd_sc18is604_emul_gpio_get_output(const struct emul *target, uint8_t pin, uint8_t *value)
Get the value of a GPIO output pin.
Definition mfd_sc18is604_emul.c:88
int mfd_sc18is604_emul_gpio_set_input(const struct emul *target, uint8_t pin, uint8_t value)
Simulate a GPIO input pin being set to a specific value.
Definition mfd_sc18is604_emul.c:62
int mfd_sc18is604_emul_i2c_set_rx(const struct emul *target, uint8_t *buf, size_t len)
Simulate the device receiving a message.
Definition mfd_sc18is604_emul.c:39
#define SC18IS604_BUFFER_SIZE
Definition sc18is604_emul.h:13
int mfd_sc18is604_emul_i2c_get_last_tx(const struct emul *target, struct mfd_sc18is604_emul_transmission *transmission)
Get the last transmission sent by the device.
Definition mfd_sc18is604_emul.c:54
Definition sc18is604_emul.h:15
size_t len
Definition sc18is604_emul.h:18
uint8_t addr
Definition sc18is604_emul.h:16
uint8_t msg[255]
Definition sc18is604_emul.h:17