1// Copyright 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package casimircontrolserver; 18 19import "google/protobuf/empty.proto"; 20 21service CasimirControlService { 22 rpc SendApdu (SendApduRequest) returns (SendApduReply) {} 23 rpc PollA (Void) returns (SenderId) {} 24 rpc SetRadioState(RadioState) returns (Void) {} 25 rpc SetPowerLevel(PowerLevel) returns (Void) {} 26 rpc Init(Void) returns (Void) {} 27 rpc Close(Void) returns (Void) {} 28} 29 30message SendApduRequest { 31 repeated string apdu_hex_strings = 1; 32 optional uint32 sender_id = 2; 33} 34 35message SendApduReply { 36 repeated string response_hex_strings = 1; 37} 38 39message SenderId { 40 uint32 sender_id = 1; 41} 42 43message Void { 44} 45 46message RadioState { 47 bool radio_on = 1; 48} 49 50message PowerLevel { 51 uint32 power_level = 1; 52}