![]() |
no-OS
|
Header file for iio_trigger. More...
Classes | |
| struct | iio_hw_trig |
| IIO hardware trigger structure. More... | |
| struct | iio_hw_trig_cb_info |
| Hardware trigger callback extra information structure. More... | |
| struct | iio_hw_trig_init_param |
| IIO hardware trigger initialization structure. More... | |
| struct | iio_sw_trig |
| IIO software trigger structure. More... | |
| struct | iio_sw_trig_init_param |
| IIO software trigger initialization structure. More... | |
Macros | |
| #define | TRIG_MAX_NAME_SIZE 20 |
Functions | |
| int | iio_hw_trig_init (struct iio_hw_trig **iio_trig, struct iio_hw_trig_init_param *init_param) |
| Initialize hardware trigger. | |
| int | iio_trig_enable (void *trig) |
| Enable system interrupt which is linked to the given trigger. | |
| int | iio_trig_disable (void *trig) |
| Disable system interrupt which is linked to the given trigger. | |
| void | iio_hw_trig_handler (void *trig) |
| Trigger interrupt handler. This function will be called when a system interrupt is asserted for the configured trigger. | |
| int | iio_hw_trig_remove (struct iio_hw_trig *trig) |
| Free the resources allocated by iio_hw_trig_init(). | |
| int | iio_sw_trig_init (struct iio_sw_trig **iio_trig, struct iio_sw_trig_init_param *init_param) |
| Initialize software trigger. | |
| int | iio_sw_trig_handler (void *trig, char *buf, uint32_t len, const struct iio_ch_info *channel, intptr_t priv) |
| Handles the write request for trigger_now attribute. | |
| int | iio_trig_remove (struct iio_sw_trig *trig) |
Header file for iio_trigger.
Copyright 2022(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define TRIG_MAX_NAME_SIZE 20 |
| void iio_hw_trig_handler | ( | void * | trig | ) |
Trigger interrupt handler. This function will be called when a system interrupt is asserted for the configured trigger.
API for hardware trigger handler
| trig | - Trigger structure which is linked to this handler. |
| int iio_hw_trig_init | ( | struct iio_hw_trig ** | iio_trig, |
| struct iio_hw_trig_init_param * | init_param ) |
Initialize hardware trigger.
API to initialize a hardware trigger
| iio_trig | - The iio trigger structure. |
| init_param | - The structure that contains the trigger initial params. |
| int iio_hw_trig_remove | ( | struct iio_hw_trig * | trig | ) |
Free the resources allocated by iio_hw_trig_init().
API to remove a hardware trigger
| trig | - The trigger structure. |
| int iio_sw_trig_handler | ( | void * | trig, |
| char * | buf, | ||
| uint32_t | len, | ||
| const struct iio_ch_info * | channel, | ||
| intptr_t | priv ) |
Handles the write request for trigger_now attribute.
API for software trigger handler
| trig | - The iio trigger structure. |
| buf | - Command buffer to be filled with the data to be written. |
| len | - Length of the received command buffer in bytes. |
| channel | - Command channel info (is NULL). |
| priv | - Command attribute id. |
| int iio_sw_trig_init | ( | struct iio_sw_trig ** | iio_trig, |
| struct iio_sw_trig_init_param * | init_param ) |
Initialize software trigger.
API to initialize a software trigger
| iio_trig | - The iio trigger structure. |
| init_param | - The structure that contains the sw trigger initial params. |
| int iio_trig_disable | ( | void * | trig | ) |
Disable system interrupt which is linked to the given trigger.
API to disable a hardware trigger
| trig | - Trigger structure. |
| int iio_trig_enable | ( | void * | trig | ) |
Enable system interrupt which is linked to the given trigger.
API to enable a hardware trigger
| trig | - Trigger structure. |
| int iio_trig_remove | ( | struct iio_sw_trig * | trig | ) |
API to remove a software trigger