blob: bcce542bf9ce3a003b71adaed3ea2b61f9b084e6 [file] [log] [blame]
syntax = "proto3";
package bluetooth.hci;
import "google/protobuf/empty.proto";
service HciLayerFacade {
rpc EnqueueCommandWithComplete(CommandMsg) returns (google.protobuf.Empty) {}
rpc EnqueueCommandWithStatus(CommandMsg) returns (google.protobuf.Empty) {}
rpc RegisterEventHandler(EventCodeMsg) returns (google.protobuf.Empty) {}
rpc RegisterLeEventHandler(LeSubeventCodeMsg) returns (google.protobuf.Empty) {}
rpc SendAclData(AclMsg) returns (google.protobuf.Empty) {}
rpc FetchEvents(google.protobuf.Empty) returns (stream EventMsg) {}
rpc FetchLeSubevents(google.protobuf.Empty) returns (stream LeSubeventMsg) {}
rpc FetchAclPackets(google.protobuf.Empty) returns (stream AclMsg) {}
}
message CommandMsg {
bytes command = 1;
}
message EventMsg {
bytes event = 1;
}
message LeSubeventMsg {
bytes event = 1;
}
message AclMsg {
uint32 handle = 1;
uint32 packet_boundary_flag = 2;
uint32 broadcast_flag = 3;
bytes data = 4;
}
message EventCodeMsg {
uint32 code = 1;
}
message LeSubeventCodeMsg {
uint32 code = 1;
}