diff options
Diffstat (limited to 'host/lib/transport/nirio')
-rw-r--r-- | host/lib/transport/nirio/nirio_driver_iface_linux.cpp | 19 | ||||
-rw-r--r-- | host/lib/transport/nirio/niriok_proxy_impl_v2.cpp | 6 |
2 files changed, 12 insertions, 13 deletions
diff --git a/host/lib/transport/nirio/nirio_driver_iface_linux.cpp b/host/lib/transport/nirio/nirio_driver_iface_linux.cpp index cccf4f8f9..4afc1579f 100644 --- a/host/lib/transport/nirio/nirio_driver_iface_linux.cpp +++ b/host/lib/transport/nirio/nirio_driver_iface_linux.cpp @@ -27,15 +27,14 @@ namespace nirio_driver_iface { struct nirio_ioctl_block_t { - uint64_t inBuf; - uint64_t outBuf; - uint32_t inBufLength; - uint32_t outBufLength; - uint32_t bytesReturned; + uint64_t in_buf; + uint64_t out_buf; + uint32_t in_buf_len; + uint32_t out_buf_len; + uint32_t bytes_returned; uint32_t padding; }; - nirio_status rio_open( const std::string& device_path, rio_dev_handle_t& device_handle) @@ -66,10 +65,10 @@ nirio_status rio_ioctl( nirio_ioctl_block_t ioctl_block = {0,0,0,0,0,0}; // two-casts necessary to prevent pointer sign-extension - ioctl_block.inBuf = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(write_buf)); - ioctl_block.inBufLength = write_buf_len; - ioctl_block.outBuf = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(read_buf)); - ioctl_block.outBufLength = read_buf_len; + ioctl_block.in_buf = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(write_buf)); + ioctl_block.in_buf_len = write_buf_len; + ioctl_block.out_buf = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(read_buf)); + ioctl_block.out_buf_len = read_buf_len; int status = ::ioctl(device_handle, ioctl_code, &ioctl_block); if (status == -1) { diff --git a/host/lib/transport/nirio/niriok_proxy_impl_v2.cpp b/host/lib/transport/nirio/niriok_proxy_impl_v2.cpp index 09daa7862..8fb82708e 100644 --- a/host/lib/transport/nirio/niriok_proxy_impl_v2.cpp +++ b/host/lib/transport/nirio/niriok_proxy_impl_v2.cpp @@ -458,7 +458,7 @@ namespace uhd { namespace niusrprio nirio_status niriok_proxy_impl_v2::configure_fifo( uint32_t channel, uint32_t requested_depth, - uint8_t requires_actuals, + uint8_t /*requires_actuals*/, //Unused uint32_t& actual_depth, uint32_t& actual_size) { @@ -564,7 +564,7 @@ namespace uhd { namespace niusrprio uint32_t channel, uint32_t elements_to_read, void* buffer, - uint32_t buffer_datatype_width, + uint32_t /*buffer_datatype_width*/, //Unused uint32_t scalar_type, uint32_t bit_width, uint32_t timeout, @@ -605,7 +605,7 @@ namespace uhd { namespace niusrprio uint32_t channel, uint32_t elements_to_write, void* buffer, - uint32_t buffer_datatype_width, + uint32_t /*buffer_datatype_width*/, //Unused uint32_t scalar_type, uint32_t bit_width, uint32_t timeout, |