Structure describing a callback to be registered.
Definition: no_os_irq.h:142
Header file of IRQ interface.
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:92
struct no_os_gpio_init_param ade7913_gpio_rdy_ip
Definition: platform.c:81
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
ADE7913 Device structure.
Definition: ade7913.h:164
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
int32_t no_os_irq_set_priority(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, uint32_t priority_level)
Set the priority for an interrupt.
Definition: no_os_irq.c:216
void reset_gpio_low_flag_state(void)
Reset GPIO low flag value.
Definition: inter.c:114
int get_drdy_flag_state(void)
Get data ready flag value.
Definition: interrupt.c:72
void * ctx
Definition: no_os_irq.h:146
int inter_init(struct ade7913_dev *dev)
Initialize data ready interrupt.
Definition: interrupt.c:92
struct no_os_irq_ctrl_desc * irq_ctrl
Definition: ade7913.h:198
Definition: state_machine.h:224
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
void(* callback)(void *context)
Definition: no_os_irq.h:144
int inter_init(struct ade7913_dev *dev)
Initialize data ready interrupt.
Definition: interrupt.c:92
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
#define NULL
Definition: wrapper.h:64
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:71
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
int get_gpio_flag_state(void)
Get GPIO flag value.
Definition: inter.c:104
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:85
int32_t no_os_irq_trigger_level_set(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level trig)
Set interrupt trigger level.
Definition: no_os_irq.c:162
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
Definition: no_os_irq.h:123
const struct no_os_irq_platform_ops max_gpio_irq_ops
maxim platform specific gpio irq platform ops structure
Definition: maxim_gpio_irq.c:375
void reset_drdy_low_flag_state(void)
Reset data ready low flag value.
Definition: interrupt.c:82