io_space_write
write I/O space
Synopsis
#include <sysreg.h>
void io_space_write(const int address, const unsigned int value)
Description
The
io_space_write
eter to I/O memory space at the address passed as the first parameter.
This function is implemented as a compiler built-in. If the address param-
eter is a constant literal value the compiler will emit a Type 34 instruction
that will be inlined at the point of
addresses, the compiler will call a library compiler support routine to per-
form the required write.
The inclusion of the
io_space_write
Error Conditions
The
io_space_write
conditions.
Example
#include <sysreg.h>
int addr = 0xA;
int val = 0xA;
main(){
int v1 = io_space_write(0xA, val);
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
function stores the value passed as the second param-
include file is mandatory when using
sysreg.h
.
function does not return, raise or set any error
C/C++ Run-Time Library
use. For non-literal
io_space_write
/* inline instruction
will be generated
*/
3-69
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers