Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351c1a86 authored by Chris Manton's avatar Chris Manton
Browse files

enum-ify stack/include/hcidefs::tHCI_MODE

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ia1b8e41a463b57fb8b76624f1739a5c47fbb0cfd
parent 1fb3594a
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -714,10 +714,12 @@ inline std::string RoleText(hci_role_t role) {
}

/* HCI mode defenitions */
#define HCI_MODE_ACTIVE 0x00
#define HCI_MODE_HOLD 0x01
#define HCI_MODE_SNIFF 0x02
#define HCI_MODE_PARK 0x03
typedef enum : uint8_t {
  HCI_MODE_ACTIVE = 0x00,
  HCI_MODE_HOLD = 0x01,
  HCI_MODE_SNIFF = 0x02,
  HCI_MODE_PARK = 0x03,
} tHCI_MODE;

/* Page scan period modes */
#define HCI_PAGE_SCAN_REP_MODE_R1 0x01