timerasync.nc

来自「Zigbee的nesc源码」· NC 代码 · 共 79 行

NC
79
字号
/*
 * @author IPP HURRAY http://www.hurray.isep.ipp.pt/art-wise
 * @author Andre Cunha
 *
 */

interface TimerAsync
{
	//CHECK Note 1 tick equals to 2 symbols
	
	async command result_t start();
	
	async command result_t stop();
	
	command result_t init();
	
	async command uint32_t get_current_ticks();
	
	//async command result_t set_sd_symbols(uint32_t symbols);
	
	async command uint32_t get_sd_ticks();
	
	//async command result_t set_bi_symbols(uint32_t symbols);
	
	async command uint32_t get_bi_ticks();
	
	async command result_t reset();
	
	async command uint8_t reset_start(uint32_t start_ticks);
	
	async event result_t sd_fired();
	
	async event result_t bi_fired();
	
	//backoff boundary fired
	async event result_t time_slot_fired();
	
	async event result_t before_time_slot_fired();
	
	
	//backoff fired
	async event result_t backoff_fired();
	
	//time before BI
	async event result_t before_bi_fired();
	
	
	async command uint32_t get_time_slot_ticks();
	
	async command result_t set_backoff_symbols(uint8_t symbols);
	
	async command uint32_t get_backoff_ticks();
	
	async command result_t set_enable_backoffs(bool enable_backoffs);
		
	async command uint32_t get_current_number_backoff();
	
	async command uint32_t get_time_slot_backoff_periods();
	
	async command uint32_t get_current_time_slot();

	async command uint32_t get_current_number_backoff_on_time_slot();
	
	async command result_t set_bi_sd(uint32_t bi_symbols,uint32_t sd_symbols);

	async command result_t reset_process_frame_tick_counter();
	
	async command uint32_t get_process_frame_tick_counter();
	
	async event result_t sfd_fired();
	
	async command uint32_t get_total_tick_counter();
	
	async command result_t set_timers_enable(uint8_t timer);
	
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?