Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mfd_maxq10xx.h File Reference
#include <zephyr/device.h>
#include <zephyr/kernel.h>

Go to the source code of this file.

Functions

struct k_sem * mfd_maxq10xx_get_lock (const struct device *dev)
 Get the semaphore reference for a MAXQ1xx instance.
 

Function Documentation

◆ mfd_maxq10xx_get_lock()

struct k_sem * mfd_maxq10xx_get_lock ( const struct device * dev)

Get the semaphore reference for a MAXQ1xx 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