18 #ifndef INCLUDED_USRPRIO_RPC_COMMON_HPP 19 #define INCLUDED_USRPRIO_RPC_COMMON_HPP 23 namespace uhd {
namespace usrprio_rpc {
27 static const func_id_t NIUSRPRIO_FUNC_BASE = 0x100;
29 static const func_id_t NIUSRPRIO_ENUMERATE = NIUSRPRIO_FUNC_BASE + 0;
30 static const func_id_t NIUSRPRIO_OPEN_SESSION = NIUSRPRIO_FUNC_BASE + 1;
31 static const func_id_t NIUSRPRIO_CLOSE_SESSION = NIUSRPRIO_FUNC_BASE + 2;
32 static const func_id_t NIUSRPRIO_RESET_SESSION = NIUSRPRIO_FUNC_BASE + 3;
33 static const func_id_t NIUSRPRIO_DOWNLOAD_BITSTREAM_TO_FPGA = NIUSRPRIO_FUNC_BASE + 4;
34 static const func_id_t NIUSRPRIO_GET_INTERFACE_PATH = NIUSRPRIO_FUNC_BASE + 5;
35 static const func_id_t NIUSRPRIO_DOWNLOAD_FPGA_TO_FLASH = NIUSRPRIO_FUNC_BASE + 6;
45 template <
typename Archive>
46 void serialize(Archive& ar,
const unsigned int version)
48 if (version || !version) {
58 #define NIUSRPRIO_ENUMERATE_ARGS \ 59 usrprio_device_info_vtr& device_info_vtr 61 #define NIUSRPRIO_OPEN_SESSION_ARGS \ 62 const std::string& resource, \ 63 const std::string& path, \ 64 const std::string& signature, \ 65 const boost::uint16_t& download_fpga 67 #define NIUSRPRIO_CLOSE_SESSION_ARGS \ 68 const std::string& resource 70 #define NIUSRPRIO_RESET_SESSION_ARGS \ 71 const std::string& resource 73 #define NIUSRPRIO_DOWNLOAD_BITSTREAM_TO_FPGA_ARGS \ 74 const std::string& resource 76 #define NIUSRPRIO_GET_INTERFACE_PATH_ARGS \ 77 const std::string& resource, \ 78 std::string& interface_path 80 #define NIUSRPRIO_DOWNLOAD_FPGA_TO_FLASH_ARGS \ 81 const std::string& resource, \ 82 const std::string& bitstream_path Definition: usrprio_rpc_common.hpp:39
boost::uint32_t interface_num
Definition: usrprio_rpc_common.hpp:40
void serialize(Archive &ar, const unsigned int version)
Definition: usrprio_rpc_common.hpp:46
Definition: convert.hpp:28
std::string pcie_serial_num
Definition: usrprio_rpc_common.hpp:42
boost::int32_t func_id_t
Definition: rpc_common.hpp:38
std::vector< usrprio_device_info > usrprio_device_info_vtr
Definition: usrprio_rpc_common.hpp:56
std::string resource_name
Definition: usrprio_rpc_common.hpp:41
std::string interface_path
Definition: usrprio_rpc_common.hpp:43