hf_register_info question

asked 2023-10-06 14:59:57 +0000

chuanlu66 gravatar image

updated 2023-10-06 17:34:27 +0000

Jaap gravatar image


how can we use this bit mask? does bit mask will mask sf19_func_vals?

for example, initially sf19_func_vals = 0xff, I set bitmask to 0x03 below, then final sf19_func_vals will be 0x03?

static hf_register_info hf[] = { 
    { &hf_sf19_Func_Code, 
        { "Function", "sf19.func", 
          FT_UINT8, BASE_DEC, VALS(sf19_func_vals), 0x0,
          "Message Function Code Identifier", HFILL }
    { &hf_sf19_Length,
        { "Length", "sf19.len",
          FT_UINT16, BASE_DEC, NULL, 0x0,
          "Message Length", HFILL }
edit retag flag offensive close merge delete