Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nct38xx.h File Reference
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>

Go to the source code of this file.

Functions

struct k_sem * mfd_nct38xx_get_lock_reference (const struct device *dev)
 Get the semaphore reference for a NCT38xx instance.
 
const struct i2c_dt_specmfd_nct38xx_get_i2c_dt_spec (const struct device *dev)
 Get the I2C DT spec reference for a NCT38xx instance.
 

Function Documentation

◆ mfd_nct38xx_get_i2c_dt_spec()

const struct i2c_dt_spec * mfd_nct38xx_get_i2c_dt_spec ( const struct device * dev)

Get the I2C DT spec reference for a NCT38xx instance.

Parameters
[in]devPointer to device struct of the driver instance
Returns
Address of the I2C DT spec

◆ mfd_nct38xx_get_lock_reference()

struct k_sem * mfd_nct38xx_get_lock_reference ( const struct device * dev)

Get the semaphore reference for a NCT38xx instance.

Callers should pass the return value to k_sem_take/k_sem_give

Parameters
[in]devPointer to device struct of the driver instance
Returns
Address of the semaphore