19 #include "libpruio/pruio.h"
22 int main(
int argc,
char **argv)
27 printf(
"config failed (%s)\n",
io->Errr);}
31 for(
n = 1;
n <= 13;
n++) {
32 for(
i = 1;
i < 9;
i++)
33 printf(
" %4X",
io->Adc->Value[
i]);
VAR io
create new driver UDT
int main(int argc, char **argv)
The main function.
char * pruio_config(pruIo *Io, uint32 Samp, uint32 Mask, uint32 Tmr, uint16 Mds)
Wrapper function for PruIo::config().
pruIo * pruio_new(uint16 Act, uint8 Av, uint32 OpD, uint8 SaD)
Wrapper function for the constructor PruIo::PruIo().
void pruio_destroy(pruIo *Io)
Wrapper function for the destructor PruIo::~PruIo().
@ PRUIO_DEF_ACTIVE
Activate all subsystems.
Wrapper structure for PruIo.