NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_sysiomapread.nxc
This is an example of how to use the
SysIOMapRead
function along with the
IOMapReadType
structure.
task main()
{
IOMapReadType
args;
args.
ModuleName
=
CommandModuleName
;
args.
Offset
=
CommandOffsetTick
;
args.
Count
= 4;
// this value happens to be 4 bytes long
SysIOMapRead
(args);
if
(args.
Result
==
NO_ERR
) {
/* do something with data */
}
}
Generated by
1.8.2