Lines Matching +full:i2c +full:- +full:speed
4 * SPDX-License-Identifier: Apache-2.0
17 * @brief Lock the mutex of npcx i2c controller.
19 * @param i2c_dev Pointer to the device structure for i2c controller instance.
24 * @brief Unlock the mutex of npcx i2c controller.
26 * @param i2c_dev Pointer to the device structure for i2c controller instance.
31 * @brief Configure operation of a npcx i2c controller.
33 * @param i2c_dev Pointer to the device structure for i2c controller instance.
34 * @param dev_config Bit-packed 32-bit value to the device runtime configuration
35 * for the I2C controller.
38 * @retval -EIO General input / output error, failed to configure device.
39 * @retval -ERANGE Out of supported i2c frequency.
44 * @brief Get I2C controller speed.
46 * @param i2c_dev Pointer to the device structure for i2c controller instance.
47 * @param speed Pointer to store the I2C speed.
50 * @retval -ERANGE Stored I2C frequency out of supported range.
51 * @retval -EIO Controller is not configured.
53 int npcx_i2c_ctrl_get_speed(const struct device *i2c_dev, uint32_t *speed);
56 * @brief Perform data transfer to via npcx i2c controller.
58 * @param i2c_dev Pointer to the device structure for i2c controller instance.
61 * @param addr Address of the I2C target device.
62 * @param port Port index of selected i2c port.
65 * @retval -EIO General input / output error.
66 * @retval -ENXIO No slave address match.
67 * @retval -ETIMEDOUT Timeout occurred for a i2c transaction.
76 * @param i2c_dev Pointer to the device structure for i2c controller instance.
79 * @retval -EBUSY fail to recover the bus.
84 * @brief Registers the provided config as Target device of a npcx i2c controller.
86 * @param i2c_dev Pointer to the device structure for i2c controller instance.
87 * @param target_cfg Config struct used by the i2c target driver
88 * @param port Port index of selected i2c port.
91 * @retval -EBUSY If i2c transaction is proceeding.
97 * @brief Unregisters the provided config as Target device of a npcx i2c controller.
99 * @param i2c_dev Pointer to the device structure for i2c controller instance.
100 * @param target_cfg Config struct used by the i2c target driver
103 * @retval -EBUSY If i2c transaction is proceeding.
104 * @retval -EINVAL If parameters are invalid