Bridle API 4.1.99
A Zephyr based application framework
Loading...
Searching...
No Matches
i2c_sc18is604.c File Reference

Driver for the I2C controller part of an SC18IM604 bridge. More...

#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/mfd/sc18is604.h>
#include "i2c_sc18is604.h"
#include <zephyr/logging/log.h>

Macros

#define DT_DRV_COMPAT   nxp_sc18is604_i2c
 
#define I2C_SC18IS604_DEFINE(inst)
 

Functions

 LOG_MODULE_REGISTER (sc18is604_i2c, CONFIG_I2C_LOG_LEVEL)
 
int await_signal (struct k_poll_signal *signal, int *result, k_timeout_t timeout)
 Await a signal being raised.
 
static void i2c_sc18is604_interrupt_work_fn_initial (struct k_work *work)
 
static void i2c_sc18is604_interrupt_work_fn_final (struct k_work *work)
 
static void i2c_sc18is604_interrupt_callback (const struct device *dev, struct gpio_callback *cb, gpio_port_pins_t pins)
 
static int i2c_sc18is604_set_clock_speed (const struct device *dev, uint32_t speed)
 
static int i2c_sc18is604_write_message (const struct device *dev, uint8_t *data, size_t len, uint16_t addr)
 
static int i2c_sc18is604_read_message (const struct device *dev, uint8_t *data, size_t len, uint16_t addr)
 
static int i2c_sc18is604_configure (const struct device *dev, uint32_t config)
 
static int i2c_sc18is604_get_config (const struct device *dev, uint32_t *config)
 
static int i2c_sc18is604_transfer_msg (const struct device *dev, struct i2c_msg *msg, uint16_t addr)
 
static int i2c_sc18is604_transfer (const struct device *dev, struct i2c_msg *msgs, uint8_t num_msgs, uint16_t addr)
 
static int i2c_sc18is604_init (const struct device *dev)
 
 DT_INST_FOREACH_STATUS_OKAY (I2C_SC18IS604_DEFINE)
 

Variables

static const struct i2c_driver_api i2c_sc18is604_api
 

Detailed Description

Driver for the I2C controller part of an SC18IM604 bridge.

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   nxp_sc18is604_i2c

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( sc18is604_i2c  ,
CONFIG_I2C_LOG_LEVEL   
)