[$group] 数值转换类.$pname$ [$last_ver_update_time] 2021-04-03 [$min_need_ver] 1.23 [$p_list] [$short_show_UIname] [$code_area_type] codes,exe_per_1ms,init_code [$blocks_type] [$name] 123 [$cs] [$init_code_for_init_val] [$toolbox_block_code] [$replace_map] [$init_code_for_define_area] @@file=convert1.c [$init_code_for_define_area_once] @@file=convert1.c long get_long_from_3bytes(u8 inn1,u8 inn2,u8 inn3){ // return inn1+(inn2*256) +(inn3*256*256); return (long)((long)inn1+((long)inn2*(long)256) +((long)inn3*(long)256*(long)256)); } u8 convert_to_3byte_and_get_one_byte(long inn,u8 index){ if(index==0){ return (inn&0xff); } if(index==1){ return ((inn>>8)&0xff); } if(index==2){ return ((inn>>16)&0xff); } return 0; } [$function_ref_define_in_headfile] @@file=convert1.h long get_long_from_3bytes(u8 inn1,u8 inn2,u8 inn3); u8 convert_to_3byte_and_get_one_byte(long inn,u8 index); [$thread_do] [$timer0_100us_code] [$timer0_1ms_code]