BLE: Add count function to phy_set_t

pull/8738/head
Vincent Coubard 2018-11-07 09:36:42 +00:00
parent ca68323930
commit 8fa62ec719
1 changed files with 4 additions and 0 deletions

View File

@ -816,6 +816,10 @@ public:
return _value;
}
uint8_t count() const {
return (get_1m() ? 1 : 0) + (get_2m() ? 1 : 0) + (get_coded() ? 1 : 0);
}
private:
uint8_t _value;
};