You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
612 B

1 year ago
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. #include "znordic.h"
  5. typedef void (*app_event_listener_t)(void* p_event_data, uint16_t event_size);
  6. typedef struct {
  7. uint32_t mark;
  8. app_timer_timeout_handler_t timeout_handler;
  9. void* usrcontext;
  10. } zapp_timer_context;
  11. ret_code_t zapp_timer_create(zapp_timer_context* context, //
  12. app_timer_id_t const* p_timer_id, app_timer_mode_t mode, app_timer_timeout_handler_t timeout_handler);
  13. ret_code_t zapp_timer_start(app_timer_id_t timer_id, uint32_t timeout_ticks, void* p_context);