Go to the source code of this file.
◆ UHD_RFNOC_BLOCK_CONSTRUCTOR
| #define UHD_RFNOC_BLOCK_CONSTRUCTOR |
( |
| CLASS_NAME | ) |
|
Value: CLASS_NAME##_impl(const make_args_t& make_args) : block_ctrl_base(make_args)
Shorthand for block constructor.
◆ UHD_RFNOC_BLOCK_OBJECT
| #define UHD_RFNOC_BLOCK_OBJECT |
( |
| class_name | ) |
|
Value:typedef boost::shared_ptr<class_name> sptr;
This macro must be put in the public section of an RFNoC.
◆ UHD_RFNOC_BLOCK_REGISTER
| #define UHD_RFNOC_BLOCK_REGISTER |
( |
| CLASS_NAME, |
|
|
| BLOCK_NAME ) |
Value: block_ctrl_base::sptr CLASS_NAME##_make(const make_args_t& make_args) \
{ \
return block_ctrl_base::sptr(new CLASS_NAME##_impl(make_args)); \
} \
UHD_STATIC_BLOCK(register_rfnoc_##CLASS_NAME) \
{ \
uhd::rfnoc::block_ctrl_base::register_block(&CLASS_NAME##_make, BLOCK_NAME); \
}
This macro must be placed inside a block implementation file.