Loading tools/rootcanal/model/controller/controller_properties.h +2 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,8 @@ struct ControllerProperties { ControllerProperties(ControllerProperties&&) = default; ~ControllerProperties() = default; ControllerProperties& operator=(ControllerProperties const&) = default; // Perform a bitwise and operation on the supported commands mask; // the default bit setting is either loaded from the configuration // file or all 1s. Loading tools/rootcanal/model/controller/dual_mode_controller.cc +5 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,11 @@ constexpr uint16_t kLeMaximumDataLength = 64; constexpr uint16_t kLeMaximumDataTime = 0x148; constexpr uint8_t kTransmitPowerLevel = -20; void DualModeController::SetProperties(ControllerProperties properties) { WARNING(id_, "updating the device properties!"); properties_ = std::move(properties); } // Device methods. std::string DualModeController::GetTypeString() const { return "Simulated Bluetooth Controller"; Loading tools/rootcanal/model/controller/dual_mode_controller.h +3 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ class DualModeController : public Device { DualModeController& operator=(const DualModeController&) = delete; // Overwrite the configuration. void SetProperties(ControllerProperties properties); // Device methods. std::string GetTypeString() const override; Loading tools/rootcanal/model/setup/phy_device.cc +4 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,10 @@ bluetooth::hci::Address PhyDevice::GetAddress() const { return device_->GetAddress(); } std::shared_ptr<Device> PhyDevice::GetDevice() const { return device_; } void PhyDevice::SetAddress(bluetooth::hci::Address address) { device_->SetAddress(std::move(address)); } Loading tools/rootcanal/model/setup/phy_device.h +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ class PhyDevice { int8_t tx_power); bluetooth::hci::Address GetAddress() const; std::shared_ptr<Device> GetDevice() const; void SetAddress(bluetooth::hci::Address address); std::string ToString(); Loading Loading
tools/rootcanal/model/controller/controller_properties.h +2 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,8 @@ struct ControllerProperties { ControllerProperties(ControllerProperties&&) = default; ~ControllerProperties() = default; ControllerProperties& operator=(ControllerProperties const&) = default; // Perform a bitwise and operation on the supported commands mask; // the default bit setting is either loaded from the configuration // file or all 1s. Loading
tools/rootcanal/model/controller/dual_mode_controller.cc +5 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,11 @@ constexpr uint16_t kLeMaximumDataLength = 64; constexpr uint16_t kLeMaximumDataTime = 0x148; constexpr uint8_t kTransmitPowerLevel = -20; void DualModeController::SetProperties(ControllerProperties properties) { WARNING(id_, "updating the device properties!"); properties_ = std::move(properties); } // Device methods. std::string DualModeController::GetTypeString() const { return "Simulated Bluetooth Controller"; Loading
tools/rootcanal/model/controller/dual_mode_controller.h +3 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ class DualModeController : public Device { DualModeController& operator=(const DualModeController&) = delete; // Overwrite the configuration. void SetProperties(ControllerProperties properties); // Device methods. std::string GetTypeString() const override; Loading
tools/rootcanal/model/setup/phy_device.cc +4 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,10 @@ bluetooth::hci::Address PhyDevice::GetAddress() const { return device_->GetAddress(); } std::shared_ptr<Device> PhyDevice::GetDevice() const { return device_; } void PhyDevice::SetAddress(bluetooth::hci::Address address) { device_->SetAddress(std::move(address)); } Loading
tools/rootcanal/model/setup/phy_device.h +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ class PhyDevice { int8_t tx_power); bluetooth::hci::Address GetAddress() const; std::shared_ptr<Device> GetDevice() const; void SetAddress(bluetooth::hci::Address address); std::string ToString(); Loading