minipix_uart_interface
A library and examples for the MiniPIX UART interface
pixel_encoder.h
Go to the documentation of this file.
1 #ifndef PIXEL_ENCODER_H
2 #define PIXEL_ENCODER_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdint.h>
9 
10 #include <llcp_minipix_messages.h>
11 
12 #define MAX_LUT_EVENT 16
13 #define MAX_LUT_TOT 1024
14 #define MAX_LUT_ITOT 16384
15 #define MAX_LUT_TOA 16384
16 
17 #define WRONG_LUT_EVENT 15
18 #define WRONG_LUT_TOT 1023
19 #define WRONG_LUT_ITOT 16383
20 #define WRONG_LUT_TOA 16383
21 
22 typedef enum {
27 
28 void encodePixelData(uint8_t* data, const uint8_t col_shift_num, const TPX3PixelMode_t pixel_mode);
29 
30 extern const int16_t LUT_EVENT[16];
31 
32 extern const uint16_t LUT_ITOT[16384];
33 
34 extern const uint16_t LUT_TOA[16384];
35 
36 extern const uint16_t LUT_TOT[1024];
37 
38 extern const uint16_t LUT_COLSHIFTS[1280];
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif // PIXEL_ENCODER_H
LUT_COLSHIFTS
const uint16_t LUT_COLSHIFTS[1280]
Definition: tpx3_luts.py:1788
LUT_TOA
const uint16_t LUT_TOA[16384]
Definition: tpx3_luts.py:840
LUT_TOT
const uint16_t LUT_TOT[1024]
Definition: tpx3_luts.py:1663
LUT_ITOT
const uint16_t LUT_ITOT[16384]
Definition: tpx3_luts.py:17
TPX3_TOA_TOT
@ TPX3_TOA_TOT
Definition: pixel_encoder.h:23
TPX3PixelMode_t
TPX3PixelMode_t
Definition: pixel_encoder.h:22
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
Definition: pixel_encoder.c:1602
LUT_EVENT
const int16_t LUT_EVENT[16]
Definition: tpx3_luts.py:13
TPX3_TOA
@ TPX3_TOA
Definition: pixel_encoder.h:24
TPX3_MPX_ITOT
@ TPX3_MPX_ITOT
Definition: pixel_encoder.h:25