Lines Matching refs:hci
37 void SetScanType(hci::PageScanType type);
50 hci::PageScanType scan_type_;
53 void OnCommandComplete(hci::CommandCompleteView status);
55 hci::HciLayer* hci_layer_;
63 void neighbor::PageModule::impl::OnCommandComplete(hci::CommandCompleteView view) { in OnCommandComplete()
65 case hci::OpCode::WRITE_PAGE_SCAN_ACTIVITY: { in OnCommandComplete()
66 auto packet = hci::WritePageScanActivityCompleteView::Create(view); in OnCommandComplete()
68 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
71 case hci::OpCode::READ_PAGE_SCAN_ACTIVITY: { in OnCommandComplete()
72 auto packet = hci::ReadPageScanActivityCompleteView::Create(view); in OnCommandComplete()
74 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
79 case hci::OpCode::WRITE_PAGE_SCAN_TYPE: { in OnCommandComplete()
80 auto packet = hci::WritePageScanTypeCompleteView::Create(view); in OnCommandComplete()
82 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
85 case hci::OpCode::READ_PAGE_SCAN_TYPE: { in OnCommandComplete()
86 auto packet = hci::ReadPageScanTypeCompleteView::Create(view); in OnCommandComplete()
88 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
92 case hci::OpCode::WRITE_PAGE_TIMEOUT: { in OnCommandComplete()
93 auto packet = hci::WritePageTimeoutCompleteView::Create(view); in OnCommandComplete()
95 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
98 case hci::OpCode::READ_PAGE_TIMEOUT: { in OnCommandComplete()
99 auto packet = hci::ReadPageTimeoutCompleteView::Create(view); in OnCommandComplete()
101 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
106 LOG_ERROR("Unhandled command %s", hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnCommandComplete()
112 hci_layer_ = module_.GetDependency<hci::HciLayer>(); in Start()
116 … hci::ReadPageScanActivityBuilder::Create(), handler_->BindOnceOn(this, &impl::OnCommandComplete)); in Start()
119 hci::ReadPageScanTypeBuilder::Create(), handler_->BindOnceOn(this, &impl::OnCommandComplete)); in Start()
122 hci::ReadPageTimeoutBuilder::Create(), handler_->BindOnceOn(this, &impl::OnCommandComplete)); in Start()
127 LOG_INFO("Page scan_type:%s", hci::PageScanTypeText(scan_type_).c_str()); in Stop()
132 hci::WritePageScanActivityBuilder::Create(params.interval, params.window), in SetScanActivity()
136 … hci::ReadPageScanActivityBuilder::Create(), handler_->BindOnceOn(this, &impl::OnCommandComplete)); in SetScanActivity()
149 void neighbor::PageModule::impl::SetScanType(hci::PageScanType scan_type) { in SetScanType()
151 …hci::WritePageScanTypeBuilder::Create(scan_type), handler_->BindOnceOn(this, &impl::OnCommandCompl… in SetScanType()
154 hci::ReadPageScanTypeBuilder::Create(), handler_->BindOnceOn(this, &impl::OnCommandComplete)); in SetScanType()
155 LOG_INFO("Set page scan type:%s", hci::PageScanTypeText(scan_type).c_str()); in SetScanType()
160 …hci::WritePageTimeoutBuilder::Create(timeout), handler_->BindOnceOn(this, &impl::OnCommandComplete… in SetTimeout()
163 hci::ReadPageTimeoutBuilder::Create(), handler_->BindOnceOn(this, &impl::OnCommandComplete)); in SetTimeout()
185 pimpl_->SetScanType(hci::PageScanType::INTERLACED); in SetInterlacedScan()
189 pimpl_->SetScanType(hci::PageScanType::STANDARD); in SetStandardScan()
200 list->add<hci::HciLayer>(); in ListDependencies()