C Run-Time Library Reference
sysreg_read
read from non-memory-mapped register
Synopsis
#include <sysreg.h>
int sysreg_read(const int)
Description
The
sysreg_read
the non-memory-mapped register passed as a parameter and set the value
read from that register as a return value.
The input parameter for
constants of the enumerated data type
valid 8-bit value used to represent a system control register.
The symbolic definitions in
General Register set:
sysreg_ASTAT
sysreg_SSTAT
sysreg_MSTAT
sysreg_ICNTL
sysreg_IMASK
sysreg_IRPTL
sysreg_DMPG1
sysreg_DMPG2
sysreg_IOPG
System Control Register set:
sysreg_B0
sysreg_B1
sysreg_B2
3-148
function causes the compiler to emit instructions to read
sysreg_read
sysreg.h
arithmetic status
shifter status
multiplier status
interrupt control
interrupts enabled mask
Interrupt Latch
high address register
DMPG1
high address register
DMPG2
I/O page register
IOPG
base register
B0
base register
B1
base register
B2
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
can be one of the symbolic variable
defined in
SysReg
are listed below.
register
for ADSP-219x DSPs
or any
sysreg.h
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?