
Public Member Functions | |
| def | __init__ |
| def | set_input_index |
| def | set_output_index |
Public Attributes | |
| input_terminators | |
| output_terminators | |
| copy | |
| item_size | |
| input_index | |
| output_index | |
| num_inputs | |
| num_outputs | |
Private Member Functions | |
| def | _indexes_valid |
| def | _connect_current |
| def | _disconnect_current |
A hier2 block with N inputs and M outputs, where data is only forwarded through input n to output m.
Definition at line 25 of file selector.py.
| def grc_gnuradio.blks2.selector.selector.__init__ | ( | self, | ||
| item_size, | ||||
| num_inputs, | ||||
| num_outputs, | ||||
| input_index, | ||||
| output_index | ||||
| ) |
SelectorHelper constructor.
| item_size | the size of the gr data stream in bytes | |
| num_inputs | the number of inputs (integer) | |
| num_outputs | the number of outputs (integer) | |
| input_index | the index for the source data | |
| output_index | the index for the destination data |
Definition at line 27 of file selector.py.
| def grc_gnuradio.blks2.selector.selector._indexes_valid | ( | self | ) | [private] |
Are the input and output indexes within range of the number of inputs and outputs?
Definition at line 55 of file selector.py.
| def grc_gnuradio.blks2.selector.selector._connect_current | ( | self | ) | [private] |
If the input and output indexes are valid: disconnect the blocks at the input and output index from their terminators, and connect them to one another. Then connect the terminators to one another.
Definition at line 62 of file selector.py.
| def grc_gnuradio.blks2.selector.selector._disconnect_current | ( | self | ) | [private] |
If the input and output indexes are valid: disconnect the blocks at the input and output index from one another, and the terminators at the input and output index from one another. Reconnect the blocks to the terminators.
Definition at line 74 of file selector.py.
| def grc_gnuradio.blks2.selector.selector.set_input_index | ( | self, | ||
| input_index | ||||
| ) |
Change the block to the new input index if the index changed.
| input_index | the new input index |
Definition at line 88 of file selector.py.
| def grc_gnuradio.blks2.selector.selector.set_output_index | ( | self, | ||
| output_index | ||||
| ) |
Change the block to the new output index if the index changed.
| output_index | the new output index |
Definition at line 100 of file selector.py.
Definition at line 42 of file selector.py.
Definition at line 43 of file selector.py.
Definition at line 44 of file selector.py.
Definition at line 48 of file selector.py.
Definition at line 49 of file selector.py.
Definition at line 50 of file selector.py.
Definition at line 51 of file selector.py.
Definition at line 52 of file selector.py.
1.5.4