minipix_uart_interface
A library and examples for the MiniPIX UART interface
pixel_decoder.c File Reference
#include <pixel_decoder.h>
+ Include dependency graph for pixel_decoder.c:

Functions

void decodePixelData (uint8_t *data, const uint8_t col_shift_num, const TPX3PixelMode_t pixel_mode)
 decodes pixel data from the RAW form recorded by the timepix More...
 

Variables

const int16_t LUT_EVENT [16] = {0, 4, 5, 8, 6, 12, 9, 14, 3, 7, 11, 13, 2, 10, 1, 0}
 
const uint16_t LUT_ITOT [16384]
 
const uint16_t LUT_TOA [16384]
 
const uint16_t LUT_TOT [1024]
 
const uint8_t LUT_COLSHIFTS [1280]
 

Function Documentation

◆ decodePixelData()

void decodePixelData ( uint8_t *  data,
const uint8_t  col_shift_num,
const TPX3PixelMode_t  pixel_mode 
)

decodes pixel data from the RAW form recorded by the timepix

Parameters
datapointer to 6 x uint8_t of data
col_shift_num= 4
pixel_modepixel mode out of the TPX3PixelMode_t enum

Variable Documentation

◆ LUT_COLSHIFTS

const uint8_t LUT_COLSHIFTS[1280]

◆ LUT_EVENT

const int16_t LUT_EVENT[16] = {0, 4, 5, 8, 6, 12, 9, 14, 3, 7, 11, 13, 2, 10, 1, 0}

◆ LUT_ITOT

const uint16_t LUT_ITOT[16384]

◆ LUT_TOA

const uint16_t LUT_TOA[16384]

◆ LUT_TOT

const uint16_t LUT_TOT[1024]