17#include <zephyr/drivers/i2c.h>
18#include <zephyr/kernel.h>
20#include "pw_function/function.h"
21#include "pw_i2c/address.h"
22#include "pw_i2c/responder.h"
23#include "pw_log/log.h"
24#include "pw_status/status.h"
63 static int ZephyrWriteRequestedCb(::i2c_target_config* cfg);
64 static int ZephyrWriteReceivedCb(::i2c_target_config* cfg, uint8_t val);
65 static int ZephyrReadRequestedCb(::i2c_target_config* cfg, uint8_t* val);
66 static int ZephyrReadProcessedCb(::i2c_target_config* cfg, uint8_t* val);
67 static int ZephyrStopCb(::i2c_target_config* cfg);
69#ifdef CONFIG_I2C_TARGET_BUFFER_MODE
70 static void ZephyrBufWriteReceivedCb(::i2c_target_config* cfg,
73 static int ZephyrBufReadRequestedCb(::i2c_target_config* cfg,
78 const ::device* zephyr_i2c_device_;
82 ::i2c_target_config config;
83 ::i2c_target_callbacks callbacks;
84 } zephyr_target_ = {};
Definition: responder.h:27
Definition: responder.h:87
const Address & address() const
Definition: responder.h:162
Definition: responder.h:35
Status DoDisable() override
Implementation of Disable()
Status DoEnable() override
Implementation of Enable()
fit::function_impl< function_internal::config::kInlineCallableSize, !function_internal::config::kEnableDynamicAllocation, FunctionType, PW_FUNCTION_DEFAULT_ALLOCATOR_TYPE > Function
Definition: function.h:73
Cross-platform I2C library.
Definition: address.h:19