DNR-X-1G Series RACKtangle and HalfRACK Systems
Chapter 4 63
Installation and Configuration
October 2018 www.ueidaq.com
508.921.4600
© Copyright 2018
United Electronic Industries, Inc.
The fourth word contains the status of the firmware. A board operating normally
does not have any flags set except STS_FW_CONFIG_DONE, which means the
board was properly configured before entering operating mode (it is cleared
upon re-entering configuration mode) and STS_FW_OPER_MODE, which means
that the board switched into operating mode without any errors.
/* fw status flags */
#define STS_FW_CLK_OOR (1UL<<0) // Clock out of range (IOM
// also)
#define STS_FW_SYNC_ERR (1UL<<1) // Synchronization interface
// error (IOM also)
#define STS_FW_CHNL_ERR (1UL<<2) // Channel list is incorrect
#define STS_FW_BUF_SCANS_PER_INT
(1UL<<3) // Buf setting error:
// scans/packet
#define STS_FW_BUF_SAMPS_PER_PKT
(1UL<<4) // Buf setting error:
// samples/packet
#define STS_FW_BUF_RING_SZ (1UL<<5) // Buf setting error: FW
// buffer ring size
#define STS_FW_BUF_PREBUF_SZ (1UL<<6) // Buf setting error: Pre-
// buffering size
#define STS_FW_BAD_CONFIG (1UL<<7) // Board cannot operate in
// current config
#define STS_FW_BUF_OVER (1UL<<8) // Firmware buffer overrun
#define STS_FW_BUF_UNDER (1UL<<9) // Firmware buffer underrun
#define STS_FW_LYR_FIFO_OVER (1UL<<10) // Board FIFO overrun
#define STS_FW_LYR_FIFO_UNDER(1UL<<11) // Board FIFO underrun
#define STS_FW_EEPROM_FAIL (1UL<<12) // Board EEPROM failed
#define STS_FW_GENERAL_FAIL (1UL<<13) // Board general failure
#define STS_FW_ISO_TIMEOUT (1UL<<14) // Isolated part reply timeout
#define STS_FW_FIR_GAIN_ERR (1UL<<15) // Sum of fir coeffs is not correct
#define STS_FW_OUT_FAIL (1UL<<16) // Output CB tripped or over-
// current
#define STS_FW_IO_FAIL (1UL<<17) // Messaging I/O failed (5xx
// boards)
#define STS_FW_NO_MEMORY (1UL<<18 //Error with memory allocation
#define STS_FW_BAD_OPER (1UL<<19) // Operation was not performed
// properly
#define STS_FW_LAYER_ERR (1UL<<20) // Board entered operation
// successfully
#define STS_FW_CONFIG_DONE (1UL<<30) //Configuration is completed
// (no error)
#define STS_FW_OPER_MODE (1UL<<31) // Board entered operation
// mode successfully
/* status helper macros/defines */
#define STS_FW_STICKY (STS_FW_EEPROM_FAIL|STS_FW_GENERAL_FAIL)
Status bits are divided into “conditional” and “sticky”. Conditional bits are set
when a condition arises; they are cleared when the error condition expires.
Sticky bits are persistent once set and are cleared by reading their status.