mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Add count function to phy_set_t
parent
ca68323930
commit
8fa62ec719
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue