no-OS
rcd.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __RCD_H__
34 #define __RCD_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "no_os_gpio.h"
40 #include "no_os_irq.h"
41 
42 /******************************************************************************/
43 /************************* Functions Declarations******************************/
44 /******************************************************************************/
45 
47 int get_rcd_flag_state(void);
48 
50 void reset_rcd_flag_state(void);
51 
53 int rcd_init(struct no_os_irq_ctrl_desc *desc,
54  struct no_os_gpio_desc **rcm_test, struct no_os_gpio_desc **rcddc,
55  struct no_os_gpio_desc **rcdac);
56 
57 #endif /* __RCD_H__ */
GPIO_RCDDC_PIN
#define GPIO_RCDDC_PIN
Definition: parameters.h:95
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
reset_rcd_flag_state
void reset_rcd_flag_state(void)
Reset RCD flag value.
Definition: rcd.c:79
ade9113_gpio_rcddc_ip
struct no_os_gpio_init_param ade9113_gpio_rcddc_ip
Definition: common_data.c:128
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
no_os_print_log.h
Print messages helpers.
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
rcd_init
int rcd_init(struct no_os_irq_ctrl_desc *irq_desc, struct no_os_gpio_desc **rcm_test, struct no_os_gpio_desc **rcddc, struct no_os_gpio_desc **rcdac)
Initialize pilot phase.
Definition: rcd.c:92
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
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:144
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
irq_desc
Structure for Interrupt Request descriptor.
ade9113_gpio_rcm_test_ip
struct no_os_gpio_init_param ade9113_gpio_rcm_test_ip
Definition: common_data.c:112
rcd_init
int rcd_init(struct no_os_irq_ctrl_desc *desc, struct no_os_gpio_desc **rcm_test, struct no_os_gpio_desc **rcddc, struct no_os_gpio_desc **rcdac)
Initialize pilot phase.
Definition: rcd.c:92
rcd.h
RCD interface file.
get_rcd_flag_state
int get_rcd_flag_state(void)
Get RCD flag value.
Definition: rcd.c:69
ade9113_gpio_rcdac_ip
struct no_os_gpio_init_param ade9113_gpio_rcdac_ip
Definition: common_data.c:120
NULL
#define NULL
Definition: wrapper.h:64
NO_OS_EVT_GPIO
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
NO_OS_IRQ_EDGE_RISING
@ NO_OS_IRQ_EDGE_RISING
Definition: no_os_irq.h:80
GPIO_RCDAC_PIN
#define GPIO_RCDAC_PIN
Definition: parameters.h:96
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
no_os_gpio.h
Header file of GPIO Interface.
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_ctrl_desc
Definition: no_os_irq.h:123
no_os_gpio_direction_output
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
reset_rcd_flag_state
void reset_rcd_flag_state(void)
Reset RCD flag value.
Definition: rcd.c:79
get_rcd_flag_state
int get_rcd_flag_state(void)
Get RCD flag value.
Definition: rcd.c:69
no_os_gpio_get_optional
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:75