mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
// stuff from Carlos
|
|
#pragma once
|
|
|
|
/* Definitions for FPGA*/
|
|
#define MEM_MAP_SHIFT 1
|
|
|
|
|
|
/* Status register */
|
|
#define STATUS_REG (0x01 << MEM_MAP_SHIFT)
|
|
|
|
#define RUN_BUSY_OFST (0)
|
|
#define RUN_BUSY_MSK (0x00000001 << RUN_BUSY_OFST)
|
|
|
|
/* Set Cycles 64 bit register */
|
|
#define SET_CYCLES_LSB_REG (0x02 << MEM_MAP_SHIFT)
|
|
#define SET_CYCLES_MSB_REG (0x03 << MEM_MAP_SHIFT)
|
|
|
|
/* Set Frames 64 bit register */
|
|
#define SET_FRAMES_LSB_REG (0x04 << MEM_MAP_SHIFT)
|
|
#define SET_FRAMES_MSB_REG (0x05 << MEM_MAP_SHIFT)
|
|
|
|
/* Set Period 64 bit register tT = T x 50 ns */
|
|
#define SET_PERIOD_LSB_REG (0x06 << MEM_MAP_SHIFT)
|
|
#define SET_PERIOD_MSB_REG (0x07 << MEM_MAP_SHIFT)
|
|
|
|
/* Set Exptime 64 bit register eEXP = Exp x 25 ns */
|
|
#define SET_EXPTIME_LSB_REG (0x08 << MEM_MAP_SHIFT)
|
|
#define SET_EXPTIME_MSB_REG (0x09 << MEM_MAP_SHIFT)
|
|
|
|
/* Get Cycles 64 bit register */
|
|
#define GET_CYCLES_LSB_REG (0x0A << MEM_MAP_SHIFT)
|
|
#define GET_CYCLES_MSB_REG (0x0B << MEM_MAP_SHIFT)
|
|
|
|
/* Get Frames 64 bit register */
|
|
#define GET_FRAMES_LSB_REG (0x0C << MEM_MAP_SHIFT)
|
|
#define GET_FRAMES_MSB_REG (0x0D << MEM_MAP_SHIFT)
|