58 std::shared_ptr<t_message>
call(
59 const google::protobuf::Message & req,
60 const boost::optional<messages::MessageType> &resp_type = boost::none,
63 BOOST_STATIC_ASSERT(boost::is_base_of<google::protobuf::Message, t_message>::value);
65 m_transport->write(req);
71 std::shared_ptr<google::protobuf::Message> msg_resp;
72 hw::trezor::messages::MessageType msg_resp_type;
73 m_transport->read(msg_resp, &msg_resp_type);
76 if (msg_resp_type == required_type) {
78 }
else if (msg_resp_type == messages::MessageType_Failure){