Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

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 }
    },