Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nxp_flexio.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024, STRIM, ALC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_DRIVERS_MISC_NXP_FLEXIO_NXP_FLEXIO_H_
8#define ZEPHYR_DRIVERS_MISC_NXP_FLEXIO_NXP_FLEXIO_H_
9
10#include <zephyr/device.h>
11
23
30typedef int (*nxp_flexio_child_isr_t)(void *user_data);
31
41
46void nxp_flexio_irq_enable(const struct device *dev);
47
52void nxp_flexio_irq_disable(const struct device *dev);
53
58void nxp_flexio_lock(const struct device *dev);
59
64void nxp_flexio_unlock(const struct device *dev);
65
76int nxp_flexio_get_rate(const struct device *dev, uint32_t *rate);
77
85int nxp_flexio_child_attach(const struct device *dev,
86 const struct nxp_flexio_child *child);
87
88#endif /* ZEPHYR_DRIVERS_MISC_NXP_FLEXIO_NXP_FLEXIO_H_ */
int nxp_flexio_child_attach(const struct device *dev, const struct nxp_flexio_child *child)
Attach flexio child to flexio controller.
void nxp_flexio_irq_disable(const struct device *dev)
Disable FlexIO IRQ.
void nxp_flexio_lock(const struct device *dev)
Lock FlexIO mutex.
int(* nxp_flexio_child_isr_t)(void *user_data)
Callback API to inform API user that FlexIO triggered interrupt.
Definition nxp_flexio.h:30
void nxp_flexio_irq_enable(const struct device *dev)
Enable FlexIO IRQ.
int nxp_flexio_get_rate(const struct device *dev, uint32_t *rate)
Obtain the clock rate of sub-system used by the FlexIO.
void nxp_flexio_unlock(const struct device *dev)
Unlock FlexIO mutex.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:403
Structure containing information about the required resources for a FlexIO child.
Definition nxp_flexio.h:17
uint8_t timer_count
Definition nxp_flexio.h:21
uint8_t * timer_index
Definition nxp_flexio.h:20
uint8_t shifter_count
Definition nxp_flexio.h:19
uint8_t * shifter_index
Definition nxp_flexio.h:18
Structure containing the required child data for FlexIO.
Definition nxp_flexio.h:36
nxp_flexio_child_isr_t isr
Definition nxp_flexio.h:37
void * user_data
Definition nxp_flexio.h:38
struct nxp_flexio_child_res res
Definition nxp_flexio.h:39
static const intptr_t user_data[5]
Definition main.c:588