📄 timerasync.nc
字号:
/*
* @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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -