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

Implementation of generic AXI IO. More...

#include <stdint.h>
#include "no_os_error.h"
#include "no_os_util.h"
Include dependency graph for generic_axi_io.c:

Functions

int32_t no_os_axi_io_read (uint32_t base, uint32_t offset, uint32_t *data)
 AXI IO generic read function.
 
int32_t no_os_axi_io_write (uint32_t base, uint32_t offset, uint32_t data)
 AXI IO generic write function.
 

Detailed Description

Implementation of generic AXI IO.

Author
Dragos Bogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2021(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ no_os_axi_io_read()

int32_t no_os_axi_io_read ( uint32_t base,
uint32_t offset,
uint32_t * data )

AXI IO generic read function.

AXI IO Altera specific read function.

Parameters
base- Base address
offset- Address offset
data- variable where returned data is stored
Returns
0 in case of success, -1 otherwise.

◆ no_os_axi_io_write()

int32_t no_os_axi_io_write ( uint32_t base,
uint32_t offset,
uint32_t data )

AXI IO generic write function.

AXI IO Altera specific write function.

Parameters
base- Base address
offset- Address offset
data- data to be written.
Returns
0 in case of success, -1 otherwise.