NXP FlexIO driver APIs.
More...
|
typedef int(* | nxp_flexio_child_isr_t) (void *user_data) |
| Callback API to inform API user that FlexIO triggered interrupt.
|
|
NXP FlexIO driver APIs.
◆ nxp_flexio_child_isr_t
#include <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.
- Parameters
-
user_data | Opaque pointer provided at attachment time. |
◆ nxp_flexio_child_attach()
#include <include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Attach flexio child to flexio controller.
- Parameters
-
dev | Pointer to the device structure for the FlexIO driver instance |
child | Pointer to flexio child |
- Return values
-
0 | if successful |
-ENOBUFS | if there are not enough available resources |
◆ nxp_flexio_get_rate()
int nxp_flexio_get_rate |
( |
const struct device * |
dev, |
|
|
uint32_t * |
rate |
|
) |
| |
#include <include/zephyr/drivers/misc/nxp_flexio/nxp_flexio.h>
Obtain the clock rate of sub-system used by the FlexIO.
- Parameters
-
| dev | Pointer to the device structure for the FlexIO driver instance |
[out] | rate | Subsystem clock rate |
- Return values
-
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. |
◆ nxp_flexio_irq_disable()
void nxp_flexio_irq_disable |
( |
const struct device * |
dev | ) |
|
◆ nxp_flexio_irq_enable()
void nxp_flexio_irq_enable |
( |
const struct device * |
dev | ) |
|
◆ nxp_flexio_lock()
void nxp_flexio_lock |
( |
const struct device * |
dev | ) |
|
◆ nxp_flexio_unlock()
void nxp_flexio_unlock |
( |
const struct device * |
dev | ) |
|