def SetBmaskName(enum_id, bmask, name):
    if bmask < 0:
        bmask &= BADADDR
    return idaapi.set_bmask_name(enum_id, bmask, name)
Set bitmask name (only for bitfields)
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetBmaskName