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.
17 lines
612 B
17 lines
612 B
#pragma once
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "znordic.h"
|
|
|
|
typedef void (*app_event_listener_t)(void* p_event_data, uint16_t event_size);
|
|
|
|
typedef struct {
|
|
uint32_t mark;
|
|
app_timer_timeout_handler_t timeout_handler;
|
|
void* usrcontext;
|
|
} zapp_timer_context;
|
|
|
|
ret_code_t zapp_timer_create(zapp_timer_context* context, //
|
|
app_timer_id_t const* p_timer_id, app_timer_mode_t mode, app_timer_timeout_handler_t timeout_handler);
|
|
ret_code_t zapp_timer_start(app_timer_id_t timer_id, uint32_t timeout_ticks, void* p_context);
|