Line data Source code
1 0 : /*
2 : * Copyright (c) 2025 Vogl Electronic GmbH
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_MAXQ10XX_H_
7 : #define ZEPHYR_INCLUDE_DRIVERS_MFD_MAXQ10XX_H_
8 :
9 : #include <zephyr/device.h>
10 : #include <zephyr/kernel.h>
11 :
12 : #ifdef __cplusplus
13 : extern "C" {
14 : #endif
15 :
16 : /**
17 : * @brief Get the semaphore reference for a MAXQ1xx instance. Callers
18 : * should pass the return value to k_sem_take/k_sem_give
19 : *
20 : * @param[in] dev Pointer to device struct of the driver instance
21 : *
22 : * @return Address of the semaphore
23 : */
24 1 : struct k_sem *mfd_maxq10xx_get_lock(const struct device *dev);
25 :
26 :
27 : #ifdef __cplusplus
28 : }
29 : #endif
30 :
31 : #endif /* ZEPHYR_INCLUDE_DRIVERS_MFD_MAXQ10XX_H_ */
|