- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay so I keep seeing all these capital letter definitions or whatever they are called and I don't know how to use them..
things like STATUS_RUNNING and ADC_WAIT_FOR_RESULT
For my project I want to check if the timer is running, I can see from the documentation that the "readStatus" function returns the following parameters.. STATUS_DOWN and STATUS_RUNNING
I was thinking I could use them like so... if(Timer_ReadStatus() == STATUS_RUNNING) but PSoC creator is not happy with that..
any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think it needs to be
if (Timer_ReadStatus()==Timer_STATUS_RUNNING)
but I did not test it... Otherwise: what is the error message you get from the compiler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HLI is right, I tested it.
As a hint: Open the Timer.h file (if your component is named "Timer") and have a look (search) at STATUS_RUNNING.
As an agreement in C-language only, all names spelled in capital letters are #defined constants.
Bob