/***************************************************************************/
/*                             Druckersoftware                             */
/*                    Copyright (C) Carl Valentin GmbH                     */
/***************************************************************************/

/*
 * fpgaRamKmAddresses.h
 *
 *  Created on: 04.04.2022
 *      Author: preitinger
 */

#ifndef FPGASERIAL_FPGARAMKMADDRESSES_H_
#define FPGASERIAL_FPGARAMKMADDRESSES_H_

// Die hier definierten Adressen muessen exakt zu denen in ram_km_addresses.vhd im FPGA passen!
// Sollten generiert werden mit: gen_ram.vhd

#define FRKM_RX_SRC_A_DATA                      0x000
#define FRKM_RX_SRC_A_FLAGS                     0x100
#define FRKM_RX_SRC_B_DATA                      0x200
#define FRKM_RX_SRC_B_FLAGS                     0x300
#define FRKM_RX_PS_DATA                         0x400
#define FRKM_RX_PS_FLAGS                        0x420
#define FRKM_TX_DST_BEGIN_0                     0x440
#define FRKM_TX_DST_BEGIN_1                     0x540
#define FRKM_TX_SIZE_FIFO_BEGIN                 0x640
#define FRKM_INIT_RX_DMA_DST_BASE               0x648
#define FRKM_TEST1                              0x64A
#define FRKM_TEST2                              0x64C
#define FRKM_DMA_LINK_ADDR                      0x64E
#define FRKM_RESPONSE_TYPE                      0x64F
#define FRKM_INIT_KM_TCC                        0x650
#define FRKM_INIT_JUST_RESP_TYPE_AND_ISR_LINK   0x651
#define FRKM_INIT_RX_CHUNK_LINK                 0x652
#define FRKM_INIT_RX_COUNT_LINK                 0x653
#define FRKM_INIT_RX_DST_DATA_0                 0x654
#define FRKM_INIT_RX_DST_DATA_1                 0x655
#define FRKM_INIT_RX_DST_FLAGS_0                0x656
#define FRKM_INIT_RX_DST_FLAGS_1                0x657
#define FRKM_RX_DST_COUNT                       0x658
#define FRKM_INIT_TX_TCC_0                      0x659
#define FRKM_INIT_TX_TCC_1                      0x65A
#define FRKM_UART_PARAMS_0                      0x65B
#define FRKM_UART_PARAMS_1                      0x65C
#define FRKM_UART_PARAMS_2                      0x65D
#define FRKM_UART_PARAMS_3                      0x65E

#endif /* FPGASERIAL_FPGARAMKMADDRESSES_H_ */
