AlcapDAQ
1
|
Go to the source code of this file.
Data Structures | |
struct | DataCorrection_t |
Macros | |
#define | MAX_X742_CHANNELS 0x08 |
#define | MAX_X742_CHANNEL_SIZE 9 |
#define | FLASH(n) (0x10D0 | ( n << 8)) |
#define | SEL_FLASH(n) (0x10CC | ( n << 8)) |
#define | STATUS(n) (0x1088 | ( n << 8)) |
#define | MAIN_MEM_PAGE_READ 0x00D2 |
#define | MAIN_MEM_PAGE_PROG_TH_BUF1 0x0082 |
Functions | |
int32_t | LoadCorrectionTables (int handle, DataCorrection_t *Table, uint8_t group, uint32_t frequency) |
void | ApplyDataCorrection (DataCorrection_t *CTable, CAEN_DGTZ_DRS4Frequency_t frequency, int CorrectionLevelMask, CAEN_DGTZ_X742_GROUP_t *data) |
#define FLASH | ( | n) | (0x10D0 | ( n << 8)) |
Definition at line 6 of file X742CorrectionRoutines.h.
Referenced by read_flash_page().
#define MAIN_MEM_PAGE_PROG_TH_BUF1 0x0082 |
Definition at line 10 of file X742CorrectionRoutines.h.
#define MAIN_MEM_PAGE_READ 0x00D2 |
Definition at line 9 of file X742CorrectionRoutines.h.
Referenced by read_flash_page().
#define MAX_X742_CHANNEL_SIZE 9 |
Definition at line 5 of file X742CorrectionRoutines.h.
#define MAX_X742_CHANNELS 0x08 |
Definition at line 4 of file X742CorrectionRoutines.h.
Referenced by LoadCorrectionTables().
#define SEL_FLASH | ( | n) | (0x10CC | ( n << 8)) |
Definition at line 7 of file X742CorrectionRoutines.h.
Referenced by read_flash_page().
#define STATUS | ( | n) | (0x1088 | ( n << 8)) |
Definition at line 8 of file X742CorrectionRoutines.h.
Referenced by read_flash_page().
void ApplyDataCorrection | ( | DataCorrection_t * | CTable, |
CAEN_DGTZ_DRS4Frequency_t | frequency, | ||
int | CorrectionLevelMask, | ||
CAEN_DGTZ_X742_GROUP_t * | data | ||
) |
Definition at line 198 of file X742CorrectionRoutines.c.
References CAEN_DGTZ_DRS4_1GHz, CAEN_DGTZ_DRS4_2_5GHz, DataCorrection_t::cell, CAEN_DGTZ_X742_GROUP_t::ChSize, CAEN_DGTZ_X742_GROUP_t::DataChannel, i, MAX_X742_CHANNEL_SIZE, DataCorrection_t::nsample, PeakCorrection(), samples, CAEN_DGTZ_X742_GROUP_t::StartIndexCell, and DataCorrection_t::time.
int32_t LoadCorrectionTables | ( | int | handle, |
DataCorrection_t * | Table, | ||
uint8_t | group, | ||
uint32_t | frequency | ||
) |
Definition at line 126 of file X742CorrectionRoutines.c.
References DataCorrection_t::cell, i, MAX_X742_CHANNELS, DataCorrection_t::nsample, read_flash_page(), and DataCorrection_t::time.