|
Zephyr Project API 4.3.0
A Scalable Open Source RTOS
|
Interfaces for NXP FlexIO. More...
Files | |
| file | nxp_flexio.h |
| Header file for NXP FlexIO driver. | |
Data Structures | |
| struct | nxp_flexio_child_res |
| Structure containing information about the required resources for a FlexIO child. More... | |
| struct | nxp_flexio_child |
| Structure containing the required child data for FlexIO. More... | |
Typedefs | |
| typedef int(* | nxp_flexio_child_isr_t) (void *user_data) |
| Callback API to inform API user that FlexIO triggered interrupt. | |
Functions | |
| void | nxp_flexio_irq_enable (const struct device *dev) |
| Enable FlexIO IRQ. | |
| void | nxp_flexio_irq_disable (const struct device *dev) |
| Disable FlexIO IRQ. | |
| void | nxp_flexio_lock (const struct device *dev) |
| Lock FlexIO mutex. | |
| void | nxp_flexio_unlock (const struct device *dev) |
| Unlock FlexIO mutex. | |
| int | nxp_flexio_get_rate (const struct device *dev, uint32_t *rate) |
| Obtain the clock rate of sub-system used by the FlexIO. | |
| int | nxp_flexio_child_attach (const struct device *dev, const struct nxp_flexio_child *child) |
| Attach flexio child to flexio controller. | |
Interfaces for NXP FlexIO.
| typedef int(* nxp_flexio_child_isr_t) (void *user_data) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Callback API to inform API user that FlexIO triggered interrupt.
The controller calls this from IRQ context whenever one of the child's mapped shifters or timers has a pending and enabled interrupt.
| user_data | Opaque pointer provided at attachment time. |
| int nxp_flexio_child_attach | ( | const struct device * | dev, |
| const struct nxp_flexio_child * | child ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Attach flexio child to flexio controller.
| dev | Pointer to the device structure for the FlexIO driver instance |
| child | Pointer to flexio child |
| 0 | if successful |
| -ENOBUFS | if there are not enough available resources |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Obtain the clock rate of sub-system used by the FlexIO.
| dev | Pointer to the device structure for the FlexIO driver instance | |
| [out] | rate | Subsystem clock rate |
| 0 | on successful rate reading. |
| -EAGAIN | if rate cannot be read. Some drivers do not support returning the rate when the clock is off. |
| -ENOTSUP | if reading the clock rate is not supported for the given sub-system. |
| -ENOSYS | if the interface is not implemented. |
| void nxp_flexio_irq_disable | ( | const struct device * | dev | ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Disable FlexIO IRQ.
| dev | Pointer to the device structure for the FlexIO driver instance |
| void nxp_flexio_irq_enable | ( | const struct device * | dev | ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Enable FlexIO IRQ.
| dev | Pointer to the device structure for the FlexIO driver instance |
| void nxp_flexio_lock | ( | const struct device * | dev | ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Lock FlexIO mutex.
| dev | Pointer to the device structure for the FlexIO driver instance |
| void nxp_flexio_unlock | ( | const struct device * | dev | ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Unlock FlexIO mutex.
| dev | Pointer to the device structure for the FlexIO driver instance |