By necessity, I'm translating a code to Python. But I encountered a structure which I do not know how to build in Python. Follows an example of the code:
typedef enum
{
HCI_CMD = 1,
ACI_CMD = 2
} hci_cmd_et;
By necessity, I'm translating a code to Python. But I encountered a structure which I do not know how to build in Python. Follows an example of the code:
typedef enum
{
HCI_CMD = 1,
ACI_CMD = 2
} hci_cmd_et;
You can see for enums in python
from enum import Enum
class hci_cmd_et(Enum):
HCI_CMD = 1
ACI_CMD = 2