Map

From GNU Radio
Jump to navigation Jump to search

This block maps an incoming signal to the value in the map. The block expects that the incoming signal has a maximum value of len(map)-1.

output[i] = map[input[i]]

This block only takes byte input, and only produces byte output.

Parameters[edit]

Map
A vector of integers that maps x to map[x].

Example Flowgraph[edit]

This flowgraph can be found at [1].

Stage6 grc.png

Source Files[edit]

C++ files
map_bb_impl.cc
Header files
map_bb_impl.h
Public header files
map_bb.h
Block definition
digital_map_bb.block.yml