1syntax = "proto3"; 2 3package blueberry.facade.iso; 4 5import "google/protobuf/empty.proto"; 6 7service IsoModuleFacade { 8 rpc LeSetCigParameters(LeSetCigParametersRequest) returns (google.protobuf.Empty) {} 9 rpc LeSetCigParametersTest(LeSetCigParametersTestRequest) returns (google.protobuf.Empty) {} 10 rpc LeCreateCis(LeCreateCisRequest) returns (google.protobuf.Empty) {} 11 rpc FetchIsoData(LeCisHandleMsg) returns (stream IsoPacket) {} 12 rpc FetchIsoEvents(google.protobuf.Empty) returns (stream LeIsoEventsMsg) {} 13 rpc SendIsoPacket(IsoPacket) returns (google.protobuf.Empty) {} 14} 15 16message IsoPacket { 17 uint32 handle = 1; 18 bytes payload = 3; 19} 20 21message LeSetCigParametersRequest { 22 uint32 cig_id = 1; 23 uint32 sdu_interval_m_to_s = 2; 24 uint32 sdu_interval_s_to_m = 3; 25 uint32 peripherals_clock_accuracy = 4; 26 uint32 packing = 5; 27 uint32 framing = 6; 28 uint32 max_transport_latency_m_to_s = 7; 29 uint32 max_transport_latency_s_to_m = 8; 30 uint32 cis_id = 9; 31 uint32 max_sdu_m_to_s = 10; 32 uint32 max_sdu_s_to_m = 11; 33 uint32 phy_m_to_s = 12; 34 uint32 phy_s_to_m = 13; 35 uint32 rtn_m_to_s = 14; 36 uint32 rtn_s_to_m = 15; 37} 38 39message LeSetCigParametersTestRequest { 40 uint32 cig_id = 1; 41 uint32 sdu_interval_m_to_s = 2; 42 uint32 sdu_interval_s_to_m = 3; 43 uint32 ft_m_to_s = 4; 44 uint32 ft_s_to_m = 5; 45 uint32 iso_interval = 6; 46 uint32 peripherals_clock_accuracy = 7; 47 uint32 packing = 8; 48 uint32 framing = 9; 49 uint32 max_transport_latency_m_to_s = 10; 50 uint32 max_transport_latency_s_to_m = 11; 51 52 message LeCisParametersTestConfig { 53 uint32 cis_id = 1; 54 uint32 nse = 2; 55 uint32 max_sdu_m_to_s = 3; 56 uint32 max_sdu_s_to_m = 4; 57 uint32 max_pdu_m_to_s = 5; 58 uint32 max_pdu_s_to_m = 6; 59 uint32 phy_m_to_s = 7; 60 uint32 phy_s_to_m = 8; 61 uint32 bn_m_to_s = 9; 62 uint32 bn_s_to_m = 10; 63 } 64 65 repeated LeCisParametersTestConfig cis_configs = 12; 66} 67 68message LeCreateCisRequest { 69 message HandlePair { 70 uint32 cis_handle = 1; 71 uint32 acl_handle = 2; 72 } 73 74 repeated HandlePair handle_pair = 1; 75} 76 77enum IsoMsgType { 78 ISO_PARAMETERS_SET_COMPLETE = 0; 79 ISO_CIS_ESTABLISHED = 1; 80} 81 82message LeIsoEventsMsg { 83 IsoMsgType message_type = 1; 84 repeated uint32 cis_handle = 2; 85} 86 87message LeCisHandleMsg { 88 uint32 handle = 1; 89} 90