Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07246ac authored by Chris Manton's avatar Chris Manton
Browse files

Add Page Write commands

Bug: 142060811
Test: bluetooth_test_gd

Change-Id: I270715f9b8d8872f303aea76d70d25cef407b965
parent 8efb1f5a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1449,7 +1449,11 @@ packet ReadPageTimeoutComplete : CommandComplete (command_op_code = READ_PAGE_TI
}

packet WritePageTimeout : DiscoveryCommand (op_code = WRITE_PAGE_TIMEOUT) {
  _payload_,  // placeholder (unimplemented)
  page_timeout : 16,
}

packet WritePageTimeoutComplete : CommandComplete (command_op_code = WRITE_PAGE_TIMEOUT) {
  status : ErrorCode,
}

enum ScanEnable : 8 {
+6 −0
Original line number Diff line number Diff line
@@ -164,6 +164,12 @@ DEFINE_AND_INSTANTIATE_ReadPageTimeoutReflectionTest(read_page_timeout);
std::vector<uint8_t> read_page_timeout_complete = {0x0e, 0x06, 0x01, 0x17, 0x0c, 0x00, 0x11, 0x22};
DEFINE_AND_INSTANTIATE_ReadPageTimeoutCompleteReflectionTest(read_page_timeout_complete);

std::vector<uint8_t> write_page_timeout = {0x18, 0x0c, 0x02, 0x00, 0x20};
DEFINE_AND_INSTANTIATE_WritePageTimeoutReflectionTest(write_page_timeout);

std::vector<uint8_t> write_page_timeout_complete = {0x0e, 0x04, 0x01, 0x18, 0x0c, 0x00};
DEFINE_AND_INSTANTIATE_WritePageTimeoutCompleteReflectionTest(write_page_timeout_complete);

std::vector<uint8_t> inquiry = {0x01, 0x04, 0x05, 0x33, 0x8b, 0x9e, 0xaa, 0xbb};
DEFINE_AND_INSTANTIATE_InquiryReflectionTest(inquiry);