no-OS
inter.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 "state_machine.h"
40 #include "parameters.h"
41 #include "no_os_irq.h"
42 
43 /******************************************************************************/
44 /************************* Functions Declarations *****************************/
45 /******************************************************************************/
46 
48 int get_gpio_flag_state(void);
49 
51 void reset_gpio_low_flag_state(void);
52 
55 
58 
61 
64 
66 int inter_init(struct stout *stout);
67 
68 #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
reset_gpio_low_flag_state
void reset_gpio_low_flag_state(void)
Reset GPIO low flag value.
Definition: inter.c:114
reset_gpio_opto_out2_flag_state
void reset_gpio_opto_out2_flag_state(void)
Reset GPIO Opto_out2 low flag value.
Definition: inter.c:154
pr_err
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
stout
Structure for Stout machine.
Definition: state_machine.h:185
get_gpio_opto1_flag_state
int get_gpio_opto1_flag_state(void)
no_os_print_log.h
Print messages helpers.
get_gpio_opto2_flag_state
int get_gpio_opto2_flag_state(void)
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
stout_nvic_desc
struct no_os_irq_ctrl_desc * stout_nvic_desc
Definition: main.c:45
inter.h
GPIO interrupt phase interface file.
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:146
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
reset_gpio_opto1_flag_state
void reset_gpio_opto1_flag_state(void)
get_gpio_opto_out2_flag_state
int get_gpio_opto_out2_flag_state(void)
Get GPIO Opto_out2 flag value.
Definition: inter.c:144
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
reset_gpio_opto_out1_flag_state
void reset_gpio_opto_out1_flag_state(void)
Reset GPIO Opto_out1 flag value.
Definition: inter.c:134
state_machine.h
STOUT state machine header file.
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_ip
struct no_os_gpio_init_param gpio_ip
Definition: common_data.c:46
reset_gpio_low_flag_state
void reset_gpio_low_flag_state(void)
Reset GPIO low flag value.
Definition: inter.c:114
get_gpio_flag_state
int get_gpio_flag_state(void)
Get GPIO flag value.
Definition: inter.c:104
NULL
#define NULL
Definition: wrapper.h:64
inter_init
int inter_init(struct stout *stout)
Initialize inter phase.
Definition: inter.c:164
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
reset_gpio_opto2_flag_state
void reset_gpio_opto2_flag_state(void)
inter_init
int inter_init(struct stout *stout)
Initialize inter phase.
Definition: inter.c:164
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
NO_OS_GPIO_IRQ
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:85
get_gpio_flag_state
int get_gpio_flag_state(void)
Get GPIO flag value.
Definition: inter.c:104
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
get_gpio_opto_out1_flag_state
int get_gpio_opto_out1_flag_state(void)
Get GPIO Opto_out1 flag value.
Definition: inter.c:124