From 0bb02043a3d197b3fc3282bb1b0826dcbbaffe8a Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Mon, 25 Oct 2021 15:51:51 -0500 Subject: host: Add RPC calls for GPIO voltage --- host/lib/include/uhdlib/usrp/common/rpc.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host/lib/include/uhdlib/usrp/common/rpc.py') diff --git a/host/lib/include/uhdlib/usrp/common/rpc.py b/host/lib/include/uhdlib/usrp/common/rpc.py index bef658921..b33ec773b 100644 --- a/host/lib/include/uhdlib/usrp/common/rpc.py +++ b/host/lib/include/uhdlib/usrp/common/rpc.py @@ -93,6 +93,15 @@ IFACES = [ fn_from_string("void dio_set_port_mapping(const std::string& mapping)"), fn_from_string("void dio_set_pin_directions(const std::string& port, uint32_t values)"), ]), + Interface("dio_rpc", [ + fn_from_string("std::vector dio_get_supported_voltage_levels(const std::string& port)"), + fn_from_string("void dio_set_voltage_level(const std::string& port, const std::string& level)"), + fn_from_string("std::string dio_get_voltage_level(const std::string& port)"), + fn_from_string("void dio_set_port_mapping(const std::string& mapping)"), + fn_from_string("void dio_set_pin_directions(const std::string& port, uint32_t values)"), + fn_from_string("void dio_set_external_power(const std::string& port, bool enable)"), + fn_from_string("std::string dio_get_external_power_state(const std::string& port)"), + ]), Interface("dboard_base_rpc", [ fn_from_string("std::vector get_sensors(const std::string& trx)"), fn_from_string("sensor_value_t::sensor_map_t get_sensor(const std::string& trx, const std::string& sensor, size_t chan)"), -- cgit v1.2.3