Orion
high-rate readout
Variables
cmdluts.hpp File Reference

ITkPix Commander look up tables. More...

#include <cinttypes>
Include dependency graph for cmdluts.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr uint16_t itk::itkpix::cmd::none = 0xFFFF
 
constexpr uint16_t itk::itkpix::cmd::dec_symb [256]
 Decode encoded symbol. More...
 
constexpr uint8_t itk::itkpix::cmd::bitflip [256]
 Bit-flips for encoded symbol: 0x00 - no bitflip 0x1 << i - bitflip in i-th position 0xFF - more then one bitflip. More...
 

Detailed Description

ITkPix Commander look up tables.

Author
Orion

Variable Documentation

◆ bitflip

constexpr uint8_t itk::itkpix::cmd::bitflip[256]
constexpr
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x40, 0xff, 0x40, 0x40, 0xff,
0xff, 0xff, 0xff, 0x40, 0xff, 0x40, 0x40, 0xff, 0xff, 0x20, 0x20, 0xff, 0x20, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0x10, 0xff, 0x10, 0x40, 0xff, 0xff, 0x10, 0x10, 0x00, 0x10, 0x00, 0x00, 0x01,
0xff, 0x08, 0x08, 0x00, 0x08, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x01, 0x00, 0x01, 0x02, 0xff,
0xff, 0xff, 0xff, 0x10, 0xff, 0x10, 0x20, 0xff, 0xff, 0x04, 0x04, 0x00, 0x02, 0x00, 0x00, 0x01,
0xff, 0x04, 0x04, 0x00, 0x02, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x08, 0x00, 0x08, 0x08, 0xff,
0xff, 0x08, 0x04, 0x00, 0x02, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x20, 0x00, 0x20, 0x08, 0xff,
0x04, 0x00, 0x00, 0x20, 0x00, 0x20, 0x10, 0xff, 0xff, 0x40, 0x40, 0xff, 0x40, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0x40, 0xff, 0x40, 0x40, 0xff, 0xff, 0x40, 0x20, 0x00, 0x40, 0x00, 0x00, 0x01,
0xff, 0x40, 0x40, 0x00, 0x40, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x01, 0x00, 0x01, 0x02, 0xff,
0xff, 0x10, 0x08, 0x00, 0x10, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0xff,
0x04, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0xff, 0xff, 0x80, 0x80, 0xff, 0x80, 0xff, 0xff, 0xff,
0xff, 0x10, 0x10, 0x00, 0x10, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0xff,
0x04, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0xff, 0xff, 0x08, 0x80, 0xff, 0x80, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0x80, 0xff, 0x80, 0x80, 0xff, 0xff, 0x80, 0x40, 0xff, 0x20, 0xff, 0xff, 0xff,
0xff, 0x20, 0x20, 0xff, 0x20, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
}

Bit-flips for encoded symbol: 0x00 - no bitflip 0x1 << i - bitflip in i-th position 0xFF - more then one bitflip.

◆ dec_symb

constexpr uint16_t itk::itkpix::cmd::dec_symb[256]
constexpr
Initial value:
= {
none, none, none, none, none, none, none, none, none, none, none, 0x2f, none, 0x30, 0x31, none,
none, none, none, 0x32, none, 0x33, 0x34, none, none, 0x2c, 0x2d, none, 0x2e, none, none, none,
none, none, none, 0x29, none, 0x2a, 0x35, none, none, 0x2c, 0x2d, 0x26, 0x2e, 0x27, 0x28, 0x28,
none, 0x2c, 0x2d, 0x29, 0x2e, 0x2a, 0x2b, 0x2b, 0x2e, 0x2c, 0x2d, 0x2d, 0x2e, 0x2e, 0x2e, none,
none, none, none, 0x32, none, 0x33, 0x35, none, none, 0x30, 0x31, 0x2f, 0x31, 0x30, 0x31, 0x31,
none, 0x33, 0x34, 0x32, 0x34, 0x33, 0x34, 0x34, 0x22, 0x12, 0x21, 0x32, 0x22, 0x33, 0x34, none,
none, 0x25, 0x35, 0x20, 0x35, 0x24, 0x35, 0x35, 0x25, 0x25, 0x00, 0x2f, 0x01, 0x30, 0x35, none,
0x04, 0x02, 0x03, 0x32, 0x04, 0x33, 0x35, none, none, 0x2c, 0x2d, none, 0x2e, none, none, none,
none, none, none, 0x17, none, 0x18, 0x19, none, none, 0x1a, 0x23, 0x05, 0x1c, 0x06, 0x07, 0x07,
none, 0x1d, 0x1e, 0x08, 0x1f, 0x09, 0x0a, 0x0a, 0x0d, 0x0b, 0x0c, 0x0c, 0x0d, 0x0d, 0x0d, none,
none, 0x14, 0x23, 0x0e, 0x16, 0x0f, 0x10, 0x10, 0x23, 0x11, 0x23, 0x26, 0x13, 0x27, 0x28, none,
0x16, 0x14, 0x15, 0x29, 0x16, 0x2a, 0x2b, none, none, 0x2c, 0x2d, none, 0x2e, none, none, none,
none, 0x1d, 0x1e, 0x17, 0x1f, 0x18, 0x19, 0x19, 0x1c, 0x1a, 0x1b, 0x2f, 0x1c, 0x30, 0x31, none,
0x1f, 0x1d, 0x1e, 0x32, 0x1f, 0x33, 0x34, none, none, 0x1d, 0x21, none, 0x22, none, none, none,
none, none, none, 0x20, none, 0x24, 0x35, none, none, 0x25, 0x23, none, 0x1c, none, none, none,
none, 0x1d, 0x1e, none, 0x1f, none, none, none, none, none, none, none, none, none, none, none,
}

Decode encoded symbol.