19 #ifndef INCLUDED_UHD_TRANSPORT_NIRIO_NIRIO_RESOURCE_MANAGER_H 20 #define INCLUDED_UHD_TRANSPORT_NIRIO_NIRIO_RESOURCE_MANAGER_H 29 namespace uhd {
namespace niusrprio
65 nirio_status initialize(
const nirio_register_info_vtr& reg_info_vtr,
const nirio_fifo_info_vtr& fifo_info_vtr);
70 template<
typename data_t>
77 return NiRio_Status_ResourceNotFound;
80 if (fifo->get_channel() != fifo_info_ptr->
channel)
return NiRio_Status_InvalidParameter;
81 if (fifo->get_scalar_type() != fifo_info_ptr->
scalar_type)
return NiRio_Status_InvalidParameter;
83 return NiRio_Status_Success;
86 template<
typename data_t>
93 return NiRio_Status_ResourceNotFound;
96 if (fifo->get_channel() != fifo_info_ptr->
channel)
return NiRio_Status_InvalidParameter;
97 if (fifo->get_scalar_type() != fifo_info_ptr->
scalar_type)
return NiRio_Status_InvalidParameter;
99 return NiRio_Status_Success;
106 typedef std::map<const std::string, nirio_fifo_info_t> fifo_info_map_t;
107 typedef std::map<const std::string, nirio_register_info_t> register_info_map_t;
114 fifo_info_map_t _fifo_info_map;
115 register_info_map_t _reg_info_map;
Definition: nirio_resource_manager.h:58
register_direction_t direction
Definition: nirio_resource_manager.h:48
Definition: niriok_proxy.h:109
std::vector< nirio_register_info_t > nirio_register_info_vtr
Definition: nirio_resource_manager.h:51
boost::shared_ptr< niriok_proxy > sptr
Definition: niriok_proxy.h:168
Definition: nirio_resource_manager.h:36
Definition: nirio_resource_manager.h:33
std::vector< nirio_fifo_info_t > nirio_fifo_info_vtr
Definition: nirio_resource_manager.h:55
std::string name
Definition: nirio_resource_manager.h:47
std::string name
Definition: niriok_proxy.h:136
uint32_t offset
Definition: nirio_resource_manager.h:46
Definition: niriok_proxy.h:113
register_direction_t
Definition: nirio_resource_manager.h:31
Definition: convert.hpp:28
int32_t nirio_status
Definition: status.h:30
nirio_status create_rx_fifo(const char *fifo_name, boost::shared_ptr< nirio_fifo< data_t > > &fifo)
Definition: nirio_resource_manager.h:87
uint32_t channel
Definition: niriok_proxy.h:135
Definition: nirio_resource_manager.h:32
Definition: nirio_fifo.h:41
Definition: niriok_proxy.h:110
nirio_scalar_type_t scalar_type
Definition: niriok_proxy.h:140
nirio_status create_tx_fifo(const char *fifo_name, boost::shared_ptr< nirio_fifo< data_t > > &fifo)
Definition: nirio_resource_manager.h:71
nirio_register_info_t(uint32_t arg_offset, const char *arg_name, register_direction_t arg_direction)
Definition: nirio_resource_manager.h:37