12-05-2009 06:43 AM
there r a lot of expression like the follow in the GPCT example 1:
"
board_tTIO_gpct->G0_Mode_Register.setG0_Output_Mode(tTIO::tG0_Mode_Register::kG0_Output_ModePulse);
board_tTIO_gpct->G0_Mode_Register.setG0_Loading_On_Gate(tTIO::tG0_Mode_Register::kG0_Loading_On_GateNo_Reload);
board_tTIO_gpct->G0_Mode_Register.setG0_Loading_On_TC(tTIO::tG0_Mode_Register::kG0_Loading_On_TCRollover_On_TC);
"
but in my program i cannt find the defination of :"tTIO::tG0_Mode_Register::kG0_Output_ModePulse" and "tTIO::tG0_Mode_Register::kG0_Loading_On_GateNo_Reload". a lot of the defination is not found in my program can any body tell me why?
I had explored the tTIO.h ,but i still didn't found any defination of them.
thank u
12-05-2009 04:17 PM
Both constants should be defined in tTIO.h. The definitions are as follows.
tTIO.h, line 910
kG0_Output_ModePulse = 1
tTIO.h, line 953
kG0_Loading_On_GateNo_Reload = 0
Let us know if you still have problems.
Thanks,
Ed
12-07-2009 07:12 AM
thank u so much Ed-W
can u give me the tTIO.h u used.i really cannt find the defination of them and a lot another like them.
i am waiting for ur reply.
thank u again for ur kindly help.
12-07-2009 10:45 AM
The tTIO.h file that I'm using comes from the nimseries/ChipObjects folder. You can download the M Series register maps and examples from the Register Level Programming website.
12-08-2009 09:41 AM