minipix_uart_interface
A library and examples for the MiniPIX UART interface
pixel_encoder.h File Reference
#include <stdint.h>
#include <llcp_minipix_messages.h>
+ Include dependency graph for pixel_encoder.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_LUT_EVENT   16
 
#define MAX_LUT_TOT   1024
 
#define MAX_LUT_ITOT   16384
 
#define MAX_LUT_TOA   16384
 
#define WRONG_LUT_EVENT   15
 
#define WRONG_LUT_TOT   1023
 
#define WRONG_LUT_ITOT   16383
 
#define WRONG_LUT_TOA   16383
 

Enumerations

enum  TPX3PixelMode_t {
  TPX3_TOA_TOT, TPX3_TOA, TPX3_MPX_ITOT, TPX3_TOA_TOT,
  TPX3_TOA, TPX3_MPX_ITOT, TPX3_TOA_TOT, TPX3_TOA,
  TPX3_MPX_ITOT, TPX3_TOA_TOT, TPX3_TOA, TPX3_MPX_ITOT
}
 

Functions

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

Variables

const int16_t LUT_EVENT [16]
 
const uint16_t LUT_ITOT [16384]
 
const uint16_t LUT_TOA [16384]
 
const uint16_t LUT_TOT [1024]
 
const uint16_t LUT_COLSHIFTS [1280]
 

Macro Definition Documentation

◆ MAX_LUT_EVENT

#define MAX_LUT_EVENT   16

◆ MAX_LUT_ITOT

#define MAX_LUT_ITOT   16384

◆ MAX_LUT_TOA

#define MAX_LUT_TOA   16384

◆ MAX_LUT_TOT

#define MAX_LUT_TOT   1024

◆ WRONG_LUT_EVENT

#define WRONG_LUT_EVENT   15

◆ WRONG_LUT_ITOT

#define WRONG_LUT_ITOT   16383

◆ WRONG_LUT_TOA

#define WRONG_LUT_TOA   16383

◆ WRONG_LUT_TOT

#define WRONG_LUT_TOT   1023

Enumeration Type Documentation

◆ TPX3PixelMode_t

Enumerator
TPX3_TOA_TOT 
TPX3_TOA 
TPX3_MPX_ITOT 
TPX3_TOA_TOT 
TPX3_TOA 
TPX3_MPX_ITOT 
TPX3_TOA_TOT 
TPX3_TOA 
TPX3_MPX_ITOT 
TPX3_TOA_TOT 
TPX3_TOA 
TPX3_MPX_ITOT 

Function Documentation

◆ encodePixelData()

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

encoders pixel data from the RAW form recorded by the timepix

Parameters
datapointer to 6 x uint8_t of data
col_shift_num= 4
itot= false

Variable Documentation

◆ LUT_COLSHIFTS

const uint16_t LUT_COLSHIFTS[1280]

◆ LUT_EVENT

const int16_t LUT_EVENT[16]

◆ LUT_ITOT

const uint16_t LUT_ITOT[16384]

◆ LUT_TOA

const uint16_t LUT_TOA[16384]

◆ LUT_TOT

const uint16_t LUT_TOT[1024]