def enumToCDefine (e):
    """
    Transform Python Enum into a bunch of #define statements
    """
    prefix = e.__name__.upper ()
    ret = [f'/* {e.__name__} */']
    for name, member in e.__members__.items ():
        ret.append (f'#define {member.cdefName} (0x{member:X}u)')
    ret.append ('')
    return '\n'.join (ret)