Go to the source code of this file.
|
typedef int(* | nxp_flexio_child_isr_t) (void *user_data) |
| Callback API to inform API user that FlexIO triggered interrupt.
|
|
◆ nxp_flexio_child_isr_t
typedef int(* nxp_flexio_child_isr_t) (void *user_data) |
Callback API to inform API user that FlexIO triggered interrupt.
This callback is called from IRQ context.
◆ nxp_flexio_child_attach()
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 ) |
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 | ) |
|
Disable FlexIO IRQ.
- Parameters
-
dev | Pointer to the device structure for the FlexIO driver instance |
◆ nxp_flexio_irq_enable()
void nxp_flexio_irq_enable |
( |
const struct device * | dev | ) |
|
Enable FlexIO IRQ.
- Parameters
-
dev | Pointer to the device structure for the FlexIO driver instance |
◆ nxp_flexio_lock()
void nxp_flexio_lock |
( |
const struct device * | dev | ) |
|
Lock FlexIO mutex.
- Parameters
-
dev | Pointer to the device structure for the FlexIO driver instance |
◆ nxp_flexio_unlock()
void nxp_flexio_unlock |
( |
const struct device * | dev | ) |
|
Unlock FlexIO mutex.
- Parameters
-
dev | Pointer to the device structure for the FlexIO driver instance |