Map
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
- Map
- A vector of integers that maps x to map[x].
Example Flowgraph
This flowgraph can be found at [1].
Source Files
- 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