1 /* 2 * Copyright (c) 2020 O.S.Systems 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef __UPDATEHUB_TIMER_H__ 8 #define __UPDATEHUB_TIMER_H__ 9 10 enum updatehub_blk_vars { 11 UPDATEHUB_BLK_ATTEMPT, 12 UPDATEHUB_BLK_INDEX, 13 UPDATEHUB_BLK_TX_AVAILABLE, 14 15 UPDATEHUB_BLK_MAX_VARS, 16 }; 17 18 int updatehub_blk_get(enum updatehub_blk_vars var); 19 void updatehub_blk_inc(enum updatehub_blk_vars var); 20 void updatehub_blk_set(enum updatehub_blk_vars var, int val); 21 22 void updatehub_tmr_start(void); 23 void updatehub_tmr_stop(void); 24 25 #endif /* __UPDATEHUB_TIMER_H__ */ 26