123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- #ifndef ZEPHYR_INCLUDE_DRIVERS_TIMER_NRF_RTC_TIMER_H
- #define ZEPHYR_INCLUDE_DRIVERS_TIMER_NRF_RTC_TIMER_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef void (*z_nrf_rtc_timer_compare_handler_t)(int32_t id,
- uint32_t cc_value,
- void *user_data);
- int32_t z_nrf_rtc_timer_chan_alloc(void);
- void z_nrf_rtc_timer_chan_free(int32_t chan);
- uint32_t z_nrf_rtc_timer_read(void);
- uint32_t z_nrf_rtc_timer_compare_evt_address_get(int32_t chan);
- bool z_nrf_rtc_timer_compare_int_lock(int32_t chan);
- void z_nrf_rtc_timer_compare_int_unlock(int32_t chan, bool key);
- uint32_t z_nrf_rtc_timer_compare_read(int32_t chan);
- void z_nrf_rtc_timer_compare_set(int32_t chan, uint32_t cc_value,
- z_nrf_rtc_timer_compare_handler_t handler,
- void *user_data);
- int z_nrf_rtc_timer_get_ticks(k_timeout_t t);
- #ifdef __cplusplus
- }
- #endif
- #endif
|