#ifndef SONOADDRESS_H #define SONOADDRESS_H #define BAR 2 #define SW_BUFFER_NUM 100 #define HW_BUFFER_NUM 16 #define BUFFER_SIZE 4 * 1024 * 1024 #define COUNTER_REG 0x00002020 //#define RAM_OFFSET_REG 0x00002024 //#define XFER_OPT_REG 0x00002028 //#define XFER_RATE_REG 0x0000202C //#define CONTROL_REG 0x00000800 #define START_COMMAND 0x00000001 #define STOP_COMMAND 0x00000000 #define COUNTER_MASK 0x0000001F //#define RAM_OFFSET_MASK 0x00FFFFFF //#define XFER_LEN_MASK 0x007FFFFF //#define AUTO_INC_COMMAND 0x40000000 //#define PERF_MODE_COMMAND 0x80000000 //#define XFER_RATE_MASK 0x003FFFFF #endif //SONOADDRESS_H