no-OS
Loading...
Searching...
No Matches
inter.c File Reference

Interrupt on port 2 implementation file. More...

#include "no_os_print_log.h"
#include "common_data.h"
#include "inter.h"
Include dependency graph for inter.c:

Functions

int get_gpio_flag_state (void)
 Get GPIO flag value.
 
void reset_gpio_low_flag_state (void)
 Reset GPIO low flag value.
 
int get_gpio_opto_out1_flag_state (void)
 Get GPIO Opto_out1 flag value.
 
void reset_gpio_opto_out1_flag_state (void)
 Reset GPIO Opto_out1 flag value.
 
int get_gpio_opto_out2_flag_state (void)
 Get GPIO Opto_out2 flag value.
 
void reset_gpio_opto_out2_flag_state (void)
 Reset GPIO Opto_out2 low flag value.
 
int inter_init (struct stout *stout)
 Initialize inter phase.
 

Variables

struct no_os_irq_ctrl_desc * stout_nvic_desc
 

Detailed Description

Interrupt on port 2 implementation file.

External interrupt implementation file.

Data ready interrupt implementation file.

Author
GMois (georg.nosp@m.e.mo.nosp@m.is@an.nosp@m.alog.nosp@m..com), REtz (radu..nosp@m.etz@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright (c) 2024 Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Author
REtz (radu..nosp@m.etz@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright (c) 2024 Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ get_gpio_flag_state()

int get_gpio_flag_state ( void )

Get GPIO flag value.

Returns
flag value

◆ get_gpio_opto_out1_flag_state()

int get_gpio_opto_out1_flag_state ( void )

Get GPIO Opto_out1 flag value.

Returns
flag value

◆ get_gpio_opto_out2_flag_state()

int get_gpio_opto_out2_flag_state ( void )

Get GPIO Opto_out2 flag value.

Returns
flag value

◆ inter_init()

int inter_init ( struct stout * stout)

Initialize inter phase.

Returns
0 in case of success, error code otherwise

Callback to be called when the event occurs.

Parameter to be passed when the callback is called

Event that triggers the calling of the callback.

Interrupt source peripheral specifier.

Not used in the case of a GPIO IRQ controller

Callback to be called when the event occurs.

Parameter to be passed when the callback is called

Event that triggers the calling of the callback.

Interrupt source peripheral specifier.

Not used in the case of a GPIO IRQ controller

Callback to be called when the event occurs.

Parameter to be passed when the callback is called

Event that triggers the calling of the callback.

Interrupt source peripheral specifier.

Not used in the case of a GPIO IRQ controller

◆ reset_gpio_low_flag_state()

void reset_gpio_low_flag_state ( void )

Reset GPIO low flag value.

Reset GPIO flag value.

◆ reset_gpio_opto_out1_flag_state()

void reset_gpio_opto_out1_flag_state ( void )

Reset GPIO Opto_out1 flag value.

◆ reset_gpio_opto_out2_flag_state()

void reset_gpio_opto_out2_flag_state ( void )

Reset GPIO Opto_out2 low flag value.

Variable Documentation

◆ stout_nvic_desc

struct no_os_irq_ctrl_desc* stout_nvic_desc
extern