I/O Space Read Or Write - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

The
parameter can also be any 8-bit value used to represent a sys-
sysreg
tem control register, since each variant of the ADSP-219x DSPs may have
a differing System Control Register set. The compiler does not validate
the
parameter, instead it relies on the assembler to fault erroneous
sysreg
values.
An example use of
#include <sysreg.h>
int read_imask(){
int value = sysreg_read(sysreg_IMASK);
return value;
}
An example use of s
#include <sysreg.h>
void write_imask(int val8bit) {
sysreg_write(sysreg_IMASK, val8bit);
}

I/O Space Read or Write

The inclusion of
efficient inline instructions to implement read and write of values from
and to I/O space addresses.
The prototypes for these functions are, as defined in
void io_space_write(const unsigned int, const unsigned int);
int io_space_read(const unsigned int addr);
These functions are described in
"io_space_write" on page
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
to get the value of
sysreg_read
to set the value of
ysreg_write
allows the use of functions that will generate
sysreg.h
"io_space_read" on page 3-67
3-69, respectively.
Compiler
might be:
IMASK
might be:
IMASK
:
sysreg.h
and
1-97

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents