Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading the current counter value #62

Open
wizwik opened this issue Mar 9, 2018 · 0 comments
Open

Reading the current counter value #62

wizwik opened this issue Mar 9, 2018 · 0 comments

Comments

@wizwik
Copy link

wizwik commented Mar 9, 2018

I had an application where I needed to read the current counter value. I added this function to the class.
uint32_t DueTimer::getCV(void) const{
uint32_t result;
// Get current timer configuration
Timer t = Timers[timer];
result=TC_ReadCV(t.tc,t.channel);
return result;
}

The addition to the Header file in the public area is
uint32_t getCV(void) const;

It seems to work ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant