Hi,
How can i get time stamp from RTC1 timer? While i am using app_timer + Softdevice? Or any other way Thanks and Regards,just to get timestamps from timer? Faizan.
Hi,
How can i get time stamp from RTC1 timer? While i am using app_timer + Softdevice? Or any other way Thanks and Regards,just to get timestamps from timer? Faizan.
When using app_timer you can read the counter value of RTC1 using app_timer_cnt_get()
. This simply gives you the register value, as it returns NRF_RTC1->COUNTER
.
If you are using SDK version 10 or greater you have to use APP_TIMER_DEF()
. If you look at the definition you will see that it creates two variables, not only one. The "hidden" variable is internal and you need not think about it when using the application timer API.
If you are using SDK version 10 or greater you have to use APP_TIMER_DEF()
. If you look at the definition you will see that it creates two variables, not only one. The "hidden" variable is internal and you need not think about it when using the application timer API.