blob: ed73d802a22022beb54368d8fa96da6910950d0e [file] [log] [blame]
/*
* Copyright (c) 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_EMUL_H
#define ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_EMUL_H
#include <zephyr/drivers/emul.h>
/**
* @brief Set one or more register values
*
* @param target The target emulator to modify
* @param reg_addr The starting address of the register to modify
* @param in One or more bytes to write to the registers
* @param count The number of bytes to write
*/
void akm09918c_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val,
size_t count);
/**
* @brief Get the values of one or more register values
*
* @param target The target emulator to read
* @param reg_addr The starting address of the register to read
* @param out Buffer to write the register values into
* @param count The number of bytes to read
*/
void akm09918c_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val,
size_t count);
/**
* @brief Reset the emulator
*
* @param target The target emulator to reset
*/
void akm09918c_emul_reset(const struct emul *target);
#endif /* ZEPHYR_DRIVERS_SENSOR_AKM09918C_AKM09918C_EMUL_H */