grlib_regs.h
74 lines
| 2.3 KiB
| text/x-c
|
CLexer
/ header / grlib_regs.h
paul@pc-solar1.lab-lpp.local
|
r5 | #ifndef GRLIBREGS_H_INCLUDED | ||
#define GRLIBREGS_H_INCLUDED | ||||
#define NB_GPTIMER 3 | ||||
paul@pc-solar1.lab-lpp.local
|
r25 | struct apbuart_regs_str{ | ||
volatile unsigned int data; | ||||
volatile unsigned int status; | ||||
volatile unsigned int ctrl; | ||||
volatile unsigned int scaler; | ||||
volatile unsigned int fifoDebug; | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | }; | ||
paul@pc-solar1.lab-lpp.local
|
r25 | struct ahbuart_regs_str{ | ||
volatile unsigned int unused; | ||||
volatile unsigned int status; | ||||
volatile unsigned int ctrl; | ||||
volatile unsigned int scaler; | ||||
}; | ||||
struct timer_regs_str | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | { | ||
volatile unsigned int counter; | ||||
volatile unsigned int reload; | ||||
volatile unsigned int ctrl; | ||||
paul@pc-solar1.lab-lpp.local
|
r25 | volatile unsigned int unused; | ||
}; | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | typedef struct timer_regs_str timer_regs_t; | ||
paul@pc-solar1.lab-lpp.local
|
r25 | struct gptimer_regs_str | ||
{ | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | volatile unsigned int scaler_value; | ||
volatile unsigned int scaler_reload; | ||||
volatile unsigned int conf; | ||||
volatile unsigned int unused0; | ||||
paul@pc-solar1.lab-lpp.local
|
r25 | timer_regs_t timer[NB_GPTIMER]; | ||
}; | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | typedef struct gptimer_regs_str gptimer_regs_t; | ||
paul@pc-solar1.lab-lpp.local
|
r25 | struct time_management_regs_str{ | ||
volatile int ctrl; // bit 0 forces the load of the coarse_time_load value and resets the fine_time | ||||
volatile int coarse_time_load; | ||||
paul@pc-solar1.lab-lpp.local
|
r11 | volatile int coarse_time; | ||
paul@pc-solar1.lab-lpp.local
|
r25 | volatile int fine_time; | ||
}; | ||||
paul@pc-solar1.lab-lpp.local
|
r11 | typedef struct time_management_regs_str time_management_regs_t; | ||
paul@pc-solar1.lab-lpp.local
|
r18 | struct waveform_picker_regs_str{ | ||
volatile int data_shaping; // 0x00 00 *** R1 R0 SP1 SP0 BW | ||||
volatile int burst_enable; // 0x04 01 *** burst f2, f1, f0 enable f3, f2, f1, f0 | ||||
volatile int addr_data_f0; // 0x08 10 *** | ||||
volatile int addr_data_f1; // 0x0c 11 *** | ||||
volatile int addr_data_f2; // 0x10 100 *** | ||||
volatile int addr_data_f3; // 0x14 101 *** | ||||
volatile int status; // 0x18 110 *** | ||||
volatile int delta_snapshot; // 0x1c 111 *** | ||||
volatile int delta_f2_f1; // 0x20 0000 *** | ||||
volatile int delta_f2_f0; // 0x24 0001 *** | ||||
volatile int nb_burst_available;// 0x28 0010 *** | ||||
volatile int nb_snapshot_param; // 0x2c 0011 *** | ||||
}; | ||||
typedef struct waveform_picker_regs_str waveform_picker_regs_t; | ||||
paul
|
r31 | struct spectral_matrix_regs_str{ | ||
volatile int config; | ||||
volatile int status; | ||||
volatile int matrixF0_Address0; | ||||
volatile int matrixFO_Address1; | ||||
volatile int matrixF1_Address; | ||||
volatile int matrixF2_Address; | ||||
}; | ||||
typedef struct spectral_matrix_regs_str spectral_matrix_regs_t; | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | #endif // GRLIBREGS_H_INCLUDED | ||