⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gio_defs.h

📁 Axis 221 camera embedded programing interface
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef __gio_defs_h#define __gio_defs_h/* * This file is autogenerated from *   file:           gio.r *  *   by ../../../tools/rdesc/bin/rdes2c -outfile gio_defs.h gio.r * Any changes here will be lost. * * -*- buffer-read-only: t -*- *//* Main access macros */#ifndef REG_RD#define REG_RD( scope, inst, reg ) \  REG_READ( reg_##scope##_##reg, \            (inst) + REG_RD_ADDR_##scope##_##reg )#endif#ifndef REG_WR#define REG_WR( scope, inst, reg, val ) \  REG_WRITE( reg_##scope##_##reg, \             (inst) + REG_WR_ADDR_##scope##_##reg, (val) )#endif#ifndef REG_RD_VECT#define REG_RD_VECT( scope, inst, reg, index ) \  REG_READ( reg_##scope##_##reg, \            (inst) + REG_RD_ADDR_##scope##_##reg + \	    (index) * STRIDE_##scope##_##reg )#endif#ifndef REG_WR_VECT#define REG_WR_VECT( scope, inst, reg, index, val ) \  REG_WRITE( reg_##scope##_##reg, \             (inst) + REG_WR_ADDR_##scope##_##reg + \	     (index) * STRIDE_##scope##_##reg, (val) )#endif#ifndef REG_RD_INT#define REG_RD_INT( scope, inst, reg ) \  REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )#endif#ifndef REG_WR_INT#define REG_WR_INT( scope, inst, reg, val ) \  REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )#endif#ifndef REG_RD_INT_VECT#define REG_RD_INT_VECT( scope, inst, reg, index ) \  REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \	    (index) * STRIDE_##scope##_##reg )#endif#ifndef REG_WR_INT_VECT#define REG_WR_INT_VECT( scope, inst, reg, index, val ) \  REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \	     (index) * STRIDE_##scope##_##reg, (val) )#endif#ifndef REG_TYPE_CONV#define REG_TYPE_CONV( type, orgtype, val ) \  ( { union { orgtype o; type n; } r; r.o = val; r.n; } )#endif#ifndef reg_page_size#define reg_page_size 8192#endif#ifndef REG_ADDR#define REG_ADDR( scope, inst, reg ) \  ( (inst) + REG_RD_ADDR_##scope##_##reg )#endif#ifndef REG_ADDR_VECT#define REG_ADDR_VECT( scope, inst, reg, index ) \  ( (inst) + REG_RD_ADDR_##scope##_##reg + \    (index) * STRIDE_##scope##_##reg )#endif/* C-code for register scope gio *//* Register r_pa_din, scope gio, type r */typedef struct {  unsigned int data : 32;} reg_gio_r_pa_din;#define REG_RD_ADDR_gio_r_pa_din 0/* Register rw_pa_dout, scope gio, type rw */typedef struct {  unsigned int data : 32;} reg_gio_rw_pa_dout;#define REG_RD_ADDR_gio_rw_pa_dout 4#define REG_WR_ADDR_gio_rw_pa_dout 4/* Register rw_pa_oe, scope gio, type rw */typedef struct {  unsigned int oe : 32;} reg_gio_rw_pa_oe;#define REG_RD_ADDR_gio_rw_pa_oe 8#define REG_WR_ADDR_gio_rw_pa_oe 8/* Register rw_pa_byte0_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte0_dout;#define REG_RD_ADDR_gio_rw_pa_byte0_dout 12#define REG_WR_ADDR_gio_rw_pa_byte0_dout 12/* Register rw_pa_byte0_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte0_oe;#define REG_RD_ADDR_gio_rw_pa_byte0_oe 16#define REG_WR_ADDR_gio_rw_pa_byte0_oe 16/* Register rw_pa_byte1_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte1_dout;#define REG_RD_ADDR_gio_rw_pa_byte1_dout 20#define REG_WR_ADDR_gio_rw_pa_byte1_dout 20/* Register rw_pa_byte1_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte1_oe;#define REG_RD_ADDR_gio_rw_pa_byte1_oe 24#define REG_WR_ADDR_gio_rw_pa_byte1_oe 24/* Register rw_pa_byte2_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte2_dout;#define REG_RD_ADDR_gio_rw_pa_byte2_dout 28#define REG_WR_ADDR_gio_rw_pa_byte2_dout 28/* Register rw_pa_byte2_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte2_oe;#define REG_RD_ADDR_gio_rw_pa_byte2_oe 32#define REG_WR_ADDR_gio_rw_pa_byte2_oe 32/* Register rw_pa_byte3_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte3_dout;#define REG_RD_ADDR_gio_rw_pa_byte3_dout 36#define REG_WR_ADDR_gio_rw_pa_byte3_dout 36/* Register rw_pa_byte3_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pa_byte3_oe;#define REG_RD_ADDR_gio_rw_pa_byte3_oe 40#define REG_WR_ADDR_gio_rw_pa_byte3_oe 40/* Register r_pb_din, scope gio, type r */typedef struct {  unsigned int data : 32;} reg_gio_r_pb_din;#define REG_RD_ADDR_gio_r_pb_din 44/* Register rw_pb_dout, scope gio, type rw */typedef struct {  unsigned int data : 32;} reg_gio_rw_pb_dout;#define REG_RD_ADDR_gio_rw_pb_dout 48#define REG_WR_ADDR_gio_rw_pb_dout 48/* Register rw_pb_oe, scope gio, type rw */typedef struct {  unsigned int oe : 32;} reg_gio_rw_pb_oe;#define REG_RD_ADDR_gio_rw_pb_oe 52#define REG_WR_ADDR_gio_rw_pb_oe 52/* Register rw_pb_byte0_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte0_dout;#define REG_RD_ADDR_gio_rw_pb_byte0_dout 56#define REG_WR_ADDR_gio_rw_pb_byte0_dout 56/* Register rw_pb_byte0_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte0_oe;#define REG_RD_ADDR_gio_rw_pb_byte0_oe 60#define REG_WR_ADDR_gio_rw_pb_byte0_oe 60/* Register rw_pb_byte1_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte1_dout;#define REG_RD_ADDR_gio_rw_pb_byte1_dout 64#define REG_WR_ADDR_gio_rw_pb_byte1_dout 64/* Register rw_pb_byte1_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte1_oe;#define REG_RD_ADDR_gio_rw_pb_byte1_oe 68#define REG_WR_ADDR_gio_rw_pb_byte1_oe 68/* Register rw_pb_byte2_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte2_dout;#define REG_RD_ADDR_gio_rw_pb_byte2_dout 72#define REG_WR_ADDR_gio_rw_pb_byte2_dout 72/* Register rw_pb_byte2_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte2_oe;#define REG_RD_ADDR_gio_rw_pb_byte2_oe 76#define REG_WR_ADDR_gio_rw_pb_byte2_oe 76/* Register rw_pb_byte3_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte3_dout;#define REG_RD_ADDR_gio_rw_pb_byte3_dout 80#define REG_WR_ADDR_gio_rw_pb_byte3_dout 80/* Register rw_pb_byte3_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pb_byte3_oe;#define REG_RD_ADDR_gio_rw_pb_byte3_oe 84#define REG_WR_ADDR_gio_rw_pb_byte3_oe 84/* Register r_pc_din, scope gio, type r */typedef struct {  unsigned int data : 16;  unsigned int dummy1 : 16;} reg_gio_r_pc_din;#define REG_RD_ADDR_gio_r_pc_din 88/* Register rw_pc_dout, scope gio, type rw */typedef struct {  unsigned int data : 16;  unsigned int dummy1 : 16;} reg_gio_rw_pc_dout;#define REG_RD_ADDR_gio_rw_pc_dout 92#define REG_WR_ADDR_gio_rw_pc_dout 92/* Register rw_pc_oe, scope gio, type rw */typedef struct {  unsigned int oe : 16;  unsigned int dummy1 : 16;} reg_gio_rw_pc_oe;#define REG_RD_ADDR_gio_rw_pc_oe 96#define REG_WR_ADDR_gio_rw_pc_oe 96/* Register rw_pc_byte0_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pc_byte0_dout;#define REG_RD_ADDR_gio_rw_pc_byte0_dout 100#define REG_WR_ADDR_gio_rw_pc_byte0_dout 100/* Register rw_pc_byte0_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pc_byte0_oe;#define REG_RD_ADDR_gio_rw_pc_byte0_oe 104#define REG_WR_ADDR_gio_rw_pc_byte0_oe 104/* Register rw_pc_byte1_dout, scope gio, type rw */typedef struct {  unsigned int data : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pc_byte1_dout;#define REG_RD_ADDR_gio_rw_pc_byte1_dout 108#define REG_WR_ADDR_gio_rw_pc_byte1_dout 108/* Register rw_pc_byte1_oe, scope gio, type rw */typedef struct {  unsigned int oe : 8;  unsigned int dummy1 : 24;} reg_gio_rw_pc_byte1_oe;#define REG_RD_ADDR_gio_rw_pc_byte1_oe 112#define REG_WR_ADDR_gio_rw_pc_byte1_oe 112/* Register r_pd_din, scope gio, type r */typedef struct {  unsigned int data : 32;} reg_gio_r_pd_din;#define REG_RD_ADDR_gio_r_pd_din 116/* Register rw_intr_cfg, scope gio, type rw */typedef struct {  unsigned int intr0 : 3;  unsigned int intr1 : 3;  unsigned int intr2 : 3;  unsigned int intr3 : 3;  unsigned int intr4 : 3;  unsigned int intr5 : 3;  unsigned int intr6 : 3;  unsigned int intr7 : 3;  unsigned int dummy1 : 8;} reg_gio_rw_intr_cfg;#define REG_RD_ADDR_gio_rw_intr_cfg 120#define REG_WR_ADDR_gio_rw_intr_cfg 120/* Register rw_intr_pins, scope gio, type rw */typedef struct {  unsigned int intr0 : 4;  unsigned int intr1 : 4;  unsigned int intr2 : 4;  unsigned int intr3 : 4;  unsigned int intr4 : 4;  unsigned int intr5 : 4;  unsigned int intr6 : 4;  unsigned int intr7 : 4;} reg_gio_rw_intr_pins;#define REG_RD_ADDR_gio_rw_intr_pins 124#define REG_WR_ADDR_gio_rw_intr_pins 124/* Register rw_intr_mask, scope gio, type rw */typedef struct {  unsigned int intr0     : 1;  unsigned int intr1     : 1;  unsigned int intr2     : 1;  unsigned int intr3     : 1;  unsigned int intr4     : 1;  unsigned int intr5     : 1;  unsigned int intr6     : 1;  unsigned int intr7     : 1;  unsigned int i2c0_done : 1;  unsigned int i2c1_done : 1;  unsigned int dummy1    : 22;} reg_gio_rw_intr_mask;#define REG_RD_ADDR_gio_rw_intr_mask 128#define REG_WR_ADDR_gio_rw_intr_mask 128/* Register rw_ack_intr, scope gio, type rw */typedef struct {  unsigned int intr0     : 1;  unsigned int intr1     : 1;  unsigned int intr2     : 1;  unsigned int intr3     : 1;  unsigned int intr4     : 1;  unsigned int intr5     : 1;  unsigned int intr6     : 1;  unsigned int intr7     : 1;  unsigned int i2c0_done : 1;  unsigned int i2c1_done : 1;  unsigned int dummy1    : 22;} reg_gio_rw_ack_intr;#define REG_RD_ADDR_gio_rw_ack_intr 132#define REG_WR_ADDR_gio_rw_ack_intr 132/* Register r_intr, scope gio, type r */typedef struct {  unsigned int intr0     : 1;  unsigned int intr1     : 1;  unsigned int intr2     : 1;  unsigned int intr3     : 1;  unsigned int intr4     : 1;  unsigned int intr5     : 1;  unsigned int intr6     : 1;  unsigned int intr7     : 1;  unsigned int i2c0_done : 1;  unsigned int i2c1_done : 1;  unsigned int dummy1    : 22;} reg_gio_r_intr;#define REG_RD_ADDR_gio_r_intr 136/* Register r_masked_intr, scope gio, type r */typedef struct {  unsigned int intr0     : 1;  unsigned int intr1     : 1;  unsigned int intr2     : 1;  unsigned int intr3     : 1;  unsigned int intr4     : 1;  unsigned int intr5     : 1;  unsigned int intr6     : 1;  unsigned int intr7     : 1;  unsigned int i2c0_done : 1;  unsigned int i2c1_done : 1;  unsigned int dummy1    : 22;} reg_gio_r_masked_intr;#define REG_RD_ADDR_gio_r_masked_intr 140/* Register rw_i2c0_start, scope gio, type rw */typedef struct {  unsigned int run : 1;  unsigned int dummy1 : 31;} reg_gio_rw_i2c0_start;#define REG_RD_ADDR_gio_rw_i2c0_start 144#define REG_WR_ADDR_gio_rw_i2c0_start 144/* Register rw_i2c0_cfg, scope gio, type rw */typedef struct {  unsigned int en        : 1;  unsigned int bit_order : 1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -