📄 flags.inc
字号:
;---------------------------------------------------------------------
; defines
;---------------------------------------------------------------------
; flags definition
flag1a equ 1ah:byte; 00h-07h
autosendf equ 01h ; indicate the auto sending permit or not
flag1b equ 1bh:byte; 08h-0fh
ui_data_ok equ 08h ; if all voltage and current data is ready
prt_data_ok equ 09h ; if protect data ready
angle_ok equ 0ah ; if an angle meter finished
savesetf equ 0bh ; if save setting is doing
brdcastf equ 0dh ; for broadcast command
yxchgf equ 0eh ; yx change bit flag
selferrorf equ 0fh ; device check itself and find fault flag
flag1c equ 1ch:byte; 10h-17h
minusf equ 10h ; current saved sign flag, temporarily use
tmpflag equ 11h ; maybe some program need set some flag, use this!
tmpflag1 equ 12h ; maybe some program need set some flag, use this!
check_yxf equ 13h ; time over, need judge yx again
check_prtf equ 14h ; time over, need judge protect status again
sendf equ 16h ; 485 or CAN communication sending
lcdsndf equ 17h ; if device is sending data to LCD
flag1d equ 1dh:byte; 18h-1fh
judge_ykf equ 18h ; count in soft timer interrupt for remote control flag
avg_fpf_f equ 19h ;
check_sucf equ 1ah ; check the csboot0 or csboot1 data normal flag
crcpassf equ 1bh ; data from outcomm pass crc check flag
saveflashf equ 1ch ; save data from ram to csboot0 flag
savecsbkf equ 1dh ; save csboot1 from csboot0 flag
flash_restoref equ 1eh ; restore csboot0 from csboot1 flag
cycle_savef equ 1fh ; save energy per hour flag
flag1e equ 1eh:byte; 20h-27h
applyaskf equ 20h
updateledf equ 21h
lcdmodif equ 22h
rec_readyf equ 23h
sendendf equ 24h
illegal_timef equ 25h ; may difine as tempflag
yc_forbidf equ 26h ; yc dead zone is zero,then forbid yc autosending
autosendycf equ 27h ; yc judge autosend per second
flag1f equ 1fh:byte; 28h-2fh
angle_flags equ flag1f:byte
u_firstf equ 28h
i_ready equ 29h
u_judgef equ 2ah
i_judgef equ 2bh
u_avoidf equ 2ch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -