no-OS
interrupt.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __INTER_H__
34 #define __INTER_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "no_os_irq.h"
40 
41 /******************************************************************************/
42 /************************* Functions Declarations *****************************/
43 /******************************************************************************/
44 
46 int get_gpio_flag_state(void);
47 
49 void reset_gpio_low_flag_state(void);
50 
52 int inter_init(struct ade7913_dev *dev);
53 
54 #endif /* __INTER__H__ */
no_os_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
no_os_irq.h
Header file of IRQ interface.
no_os_irq_register_callback
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
ade7913_gpio_rdy_ip
struct no_os_gpio_init_param ade7913_gpio_rdy_ip
Definition: platform.c:81
pr_err
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
no_os_print_log.h
Print messages helpers.
ade7913_dev
ADE7913 Device structure.
Definition: ade7913.h:164
no_os_gpio_direction_input
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
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
no_os_irq_set_priority
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
reset_gpio_low_flag_state
void reset_gpio_low_flag_state(void)
Reset GPIO low flag value.
Definition: inter.c:114
interrupt.h
get_drdy_flag_state
int get_drdy_flag_state(void)
Get data ready flag value.
Definition: interrupt.c:72
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:146
inter_init
int inter_init(struct ade7913_dev *dev)
Initialize data ready interrupt.
Definition: interrupt.c:92
ade7913_dev::irq_ctrl
struct no_os_irq_ctrl_desc * irq_ctrl
Definition: ade7913.h:198
rms_adc_values
Definition: state_machine.h:224
no_os_irq_init_param::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
no_os_gpio_remove
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
no_os_irq_ctrl_init
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
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:144
inter_init
int inter_init(struct ade7913_dev *dev)
Initialize data ready interrupt.
Definition: interrupt.c:92
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
platform.h
Defines platform data to be used by ADE7913 example project.
GPIO_RDY_PIN
#define GPIO_RDY_PIN
Definition: platform.h:68
no_os_gpio_get
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
GPIO_RDY_PORT
#define GPIO_RDY_PORT
Definition: platform.h:67
NULL
#define NULL
Definition: wrapper.h:64
NO_OS_EVT_GPIO
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
no_os_irq_ctrl_remove
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
no_os_irq_enable
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
get_gpio_flag_state
int get_gpio_flag_state(void)
Get GPIO flag value.
Definition: inter.c:104
NO_OS_GPIO_IRQ
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:85
no_os_irq_trigger_level_set
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
no_os_irq_disable
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
no_os_irq_ctrl_desc
Definition: no_os_irq.h:123
max_gpio_irq_ops
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
reset_drdy_low_flag_state
void reset_drdy_low_flag_state(void)
Reset data ready low flag value.
Definition: interrupt.c:82