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

GPIO interrupt phase interface file. More...

#include "state_machine.h"
#include "parameters.h"
#include "no_os_irq.h"
Include dependency graph for inter.h:

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_opto1_flag_state (void)
 
void reset_gpio_opto1_flag_state (void)
 
int get_gpio_opto2_flag_state (void)
 
void reset_gpio_opto2_flag_state (void)
 
int inter_init (struct stout *stout)
 Initialize inter phase.
 

Detailed Description

GPIO interrupt phase interface file.

Data ready interrupt 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.

Get GPIO flag value.

Returns
flag value

◆ get_gpio_opto1_flag_state()

int get_gpio_opto1_flag_state ( void )

Get GPIO opto1 flag value.

◆ get_gpio_opto2_flag_state()

int get_gpio_opto2_flag_state ( void )

Get GPIO opto2 flag value.

◆ inter_init()

int inter_init ( struct stout * stout)

Initialize inter phase.

Initialize interrupt 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_opto1_flag_state()

void reset_gpio_opto1_flag_state ( void )

Reset GPIO opto1 flag value.

◆ reset_gpio_opto2_flag_state()

void reset_gpio_opto2_flag_state ( void )

Reset GPIO opto2 flag value.