KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dev_mboot.h File Reference

This structure describes the multiboot device. More...

#include "dev_defs.h"

Go to the source code of this file.

Data Structures

struct  MBOOT_Device
 Structure defines ICAPE2 registers (historically named 'Multiboot') More...
 

Macros

#define MBOOT_CMD_NULL   0x00
 
#define MBOOT_CMD_IPROG   0x0F
 Trigger reconfiguration.
 
#define MBOOT_CMD_LTIMER   0x11
 Reload watchdog.
 
#define MBOOT_WATCHDOG_FREQ   340000
 Worse case watchdog speed. More...
 
#define MBOOT_WATCHDOG_MAX   0x3FFFFFFF
 
#define MBOOT_WBSTAR_32BIT_ADDR_SHIFT   8
 Bit-shift required for 32-bit addresses.
 
#define MBOOT_BOOTSTS_VALID_0   BIT(0)
 Status 0 valid (current boot)
 
#define MBOOT_BOOTSTS_FALLBACK_0   BIT(1)
 Fallback used.
 
#define MBOOT_BOOTSTS_IPROG_0   BIT(2)
 IProg issued.
 
#define MBOOT_BOOTSTS_WTO_ERRO_0   BIT(3)
 Watchdog Time Out error.
 
#define MBOOT_BOOTSTS_ID_ERROR_0   BIT(4)
 ID error.
 
#define MBOOT_BOOTSTS_CRC_ERROR_0   BIT(5)
 CRC error.
 
#define MBOOT_BOOTSTS_WRAP_ERROR_0   BIT(6)
 WRAP error.
 
#define MBOOT_BOOTSTS_VALID_1   BIT(0)
 Status 1 valid (previous boot)
 
#define MBOOT_BOOTSTS_FALLBACK_1   BIT(1)
 Fallback used.
 
#define MBOOT_BOOTSTS_IPROG_1   BIT(2)
 IProg issued.
 
#define MBOOT_BOOTSTS_WTO_ERRO_1   BIT(3)
 Watchdog Time Out error.
 
#define MBOOT_BOOTSTS_ID_ERROR_1   BIT(4)
 ID error.
 
#define MBOOT_BOOTSTS_CRC_ERROR_1   BIT(5)
 CRC error.
 
#define MBOOT_BOOTSTS_WRAP_ERROR_1   BIT(6)
 WRAP error.
 
#define MBOOT_TIMER_VALUE_MASK   0x3FFFFFFF
 Mask for timer.
 
#define MBOOT_TIMER_USR_MON   BIT(31)
 User watchdog.
 
#define MBOOT_TIMER_CFG_MON   BIT(30)
 Configuration watchdog. More...
 
#define MBOOT_BSPI_SPI_OPCODE_MASK   0x000000FF
 
#define MBOOT_BSPI_SPI_OPCODE_SHIFT   0
 
#define MBOOT_BSPI_SPI_BUSWIDTH_MASK   0x00000300
 
#define MBOOT_BSPI_SPI_BUSWIDTH_SHIFT   8
 
#define MBOOT_BSPI_SPI_24BIT_MASK   0x00000001
 If set, its a 24 bit read command.
 

Detailed Description

This structure describes the multiboot device.

Multiboot is now actually an interface to the ICAPE2 device.

Definition in file dev_mboot.h.

Macro Definition Documentation

#define MBOOT_TIMER_CFG_MON   BIT(30)

Configuration watchdog.

Definition at line 58 of file dev_mboot.h.

#define MBOOT_WATCHDOG_FREQ   340000

Worse case watchdog speed.

Definition at line 35 of file dev_mboot.h.