Home
last modified time | relevance | path

Searched refs:PhyDevice (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dphy_device.cc25 PhyDevice::PhyDevice(std::string type, std::shared_ptr<Device> device) in PhyDevice() function in rootcanal::PhyDevice
30 std::bind(&PhyDevice::Send, this, _1, _2, _3)); in PhyDevice()
33 void PhyDevice::Register(PhyLayer* phy) { phy_layers_.insert(phy); } in Register()
35 void PhyDevice::Unregister(PhyLayer* phy) { phy_layers_.erase(phy); } in Unregister()
37 void PhyDevice::Tick() { device_->Tick(); } in Tick()
39 bluetooth::hci::Address PhyDevice::GetAddress() const { in GetAddress()
43 std::shared_ptr<Device> PhyDevice::GetDevice() const { in GetDevice()
47 void PhyDevice::SetAddress(bluetooth::hci::Address address) { in SetAddress()
51 void PhyDevice::Receive(std::vector<uint8_t> const& packet, Phy::Type type, in Receive()
65 void PhyDevice::Send(std::vector<uint8_t> const& packet, Phy::Type type, in Send()
[all …]
Dtest_model.h70 virtual std::shared_ptr<PhyDevice> CreatePhyDevice(
75 PhyDevice::Identifier AddDevice(std::shared_ptr<Device> device);
76 void RemoveDevice(PhyDevice::Identifier id);
79 void AddDeviceToPhy(PhyDevice::Identifier device_id,
81 void RemoveDeviceFromPhy(PhyDevice::Identifier device_id,
89 PhyDevice::Identifier AddHciConnection(std::shared_ptr<HciDevice> dev,
92 void OnConnectionClosed(PhyDevice::Identifier device_id, AsyncUserId user_id);
98 void SetDeviceAddress(PhyDevice::Identifier device_id,
101 void SetDeviceConfiguration(PhyDevice::Identifier device_id,
120 std::map<PhyDevice::Identifier, std::shared_ptr<PhyDevice>> phy_devices_;
Dphy_layer.h28 using rootcanal::PhyDevice;
39 PhyDevice::Identifier sender_id);
43 virtual int8_t ComputeRssi(PhyDevice::Identifier sender_id,
44 PhyDevice::Identifier receiver_id,
47 void Register(std::shared_ptr<PhyDevice> device);
48 void Unregister(PhyDevice::Identifier device_id);
59 std::list<std::shared_ptr<rootcanal::PhyDevice>> phy_devices_;
Dtest_model.cc94 std::shared_ptr<PhyDevice> TestModel::CreatePhyDevice( in CreatePhyDevice()
96 return std::make_shared<PhyDevice>(std::move(type), std::move(device)); in CreatePhyDevice()
127 PhyDevice::Identifier TestModel::AddDevice(std::shared_ptr<Device> device) { in AddDevice()
129 std::shared_ptr<PhyDevice> phy_device = in AddDevice()
136 void TestModel::RemoveDevice(PhyDevice::Identifier device_id) { in RemoveDevice()
160 void TestModel::AddDeviceToPhy(PhyDevice::Identifier device_id, in AddDeviceToPhy()
169 void TestModel::RemoveDeviceFromPhy(PhyDevice::Identifier device_id, in RemoveDeviceFromPhy()
181 PhyDevice::Identifier device_id = AddDevice(device); in AddLinkLayerConnection()
206 PhyDevice::Identifier TestModel::AddHciConnection( in AddHciConnection()
218 PhyDevice::Identifier device_id = device->id_; in AddHciConnection()
[all …]
Dphy_device.h30 class PhyDevice {
34 PhyDevice(std::string type, std::shared_ptr<Device> device);
35 PhyDevice(PhyDevice &&) = delete;
36 ~PhyDevice() = default;
Dphy_layer.cc25 void PhyLayer::Register(std::shared_ptr<PhyDevice> device) { in Register()
30 void PhyLayer::Unregister(PhyDevice::Identifier id) { in Unregister()
47 int8_t PhyLayer::ComputeRssi(PhyDevice::Identifier /*sender_id*/, in ComputeRssi()
48 PhyDevice::Identifier /*receiver_id*/, in ComputeRssi()
59 PhyDevice::Identifier sender_id) { in Send()