x393_afimux_status_tx393_afimux0_status(intafi_port){x393_afimux_status_td;d.d32=readl((void*)(0x40002060+0x4*afi_port));returnd;}// Status of the AFI MUX 0 (including image pointer)
x393_afimux_status_tx393_afimux1_status(intafi_port){x393_afimux_status_td;d.d32=readl((void*)(0x40002070+0x4*afi_port));returnd;}// Status of the AFI MUX 1 (including image pointer)
//
//
// GPIO contol. Each of the 10 pins can be controlled by the software - individually or simultaneously or from any of the 3 masters (other FPGA modules)
// Currently these modules are;
// A - camsync (intercamera synchronization), uses up to 4 pins
// B - reserved (not yet used) and
// A - camsync (intercamera synchronization), uses up to 4 pins
// B - reserved (not yet used) and
// C - logger (IMU, GPS, images), uses 6 pins, including separate i2c available on extension boards
// If several enabled ports try to contol the same bit, highest priority has port C, lowest - software controlled
voidx393_gpio_set_pins(x393_gpio_set_pins_td){writel(d.d32,(void*)0x40001c00);}// State of the GPIO pins and seq. number