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

Interrupt configuration for eval-ublox-gnss project. More...

#include "interrupt.h"
#include "platform.h"
#include "no_os_irq.h"
#include "no_os_error.h"
Include dependency graph for interrupt.c:

Functions

int get_irq_flag_state (void)
 Get irqn flag value.
 
void reset_irq_flag_state (void)
 Reset irqn flag value.
 
int interrupt_init (struct gnss_dev *gnss_dev)
 Initialize interrupt handling for the GNSS device.
 
int interrupt_remove (struct gnss_dev *gnss_dev)
 Remove interrupts for GNSS device.
 

Detailed Description

Interrupt configuration for eval-ublox-gnss project.

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

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ get_irq_flag_state()

int get_irq_flag_state ( void )

Get irqn flag value.

Returns
flag value

◆ interrupt_init()

int interrupt_init ( struct gnss_dev * gnss_dev)

Initialize interrupt handling for the GNSS device.

Parameters
gnss_dev- GNSS device structure.
Returns
ret - Result of the initialization - 0 in case of success, negative 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

◆ interrupt_remove()

int interrupt_remove ( struct gnss_dev * gnss_dev)

Remove interrupts for GNSS device.

Parameters
gnss_dev- GNSS device structure
Returns
0 in case of success, negative error code otherwise

◆ reset_irq_flag_state()

void reset_irq_flag_state ( void )

Reset irqn flag value.

Reset IRQN flag value.