pr_debug("write direction is: %d (should be 0)\n",membridge_direction);
switch(x393cmd){
switch(x393cmd){
caseASAP:
caseASAP:
frame16=0;
frame16=0;
// no break
// no break
caseRELATIVE:
caseRELATIVE:
/**
* Possible future implementation (no need)
*/
/*
/*
seqr_x393_membridge_scanline_startaddr (frame16, window_frame_sa, num_sensor); // Set frame start address
seqr_x393_membridge_scanline_startaddr (frame16, window_frame_sa, num_sensor); // Set frame start address
seqr_x393_membridge_scanline_frame_size (frame16, window_frame_sa_inc, num_sensor); // Set frame size (address increment)
seqr_x393_membridge_scanline_frame_size (frame16, window_frame_sa_inc, num_sensor); // Set frame size (address increment)
...
@@ -170,6 +180,9 @@ int setup_membridge_memory(
...
@@ -170,6 +180,9 @@ int setup_membridge_memory(
*/
*/
break;
break;
caseABSOLUTE:
caseABSOLUTE:
/**
* Possible future implementation (no need)
*/
/*
/*
seqa_x393_membridge_scanline_startaddr (frame16, window_frame_sa, num_sensor); // Set frame start address
seqa_x393_membridge_scanline_startaddr (frame16, window_frame_sa, num_sensor); // Set frame start address
seqa_x393_membridge_scanline_frame_size (frame16, window_frame_sa_inc, num_sensor); // Set frame size (address increment)
seqa_x393_membridge_scanline_frame_size (frame16, window_frame_sa_inc, num_sensor); // Set frame size (address increment)
...
@@ -204,20 +217,24 @@ int control_membridge_memory (int num_sensor, ///< sensor port number (0..3)
...
@@ -204,20 +217,24 @@ int control_membridge_memory (int num_sensor, ///< sensor port number (0..3)
x393_mcntrl_mode_scan_tmembridge_mode={.enable=1,// [ 0] (1) enable requests from this channel ( 0 will let current to finish, but not raise want/need)
x393_mcntrl_mode_scan_tmembridge_mode={.enable=1,// [ 0] (1) enable requests from this channel ( 0 will let current to finish, but not raise want/need)
.chn_nreset=1,// [ 1] (1) 0: immediately reset all the internal circuitry
.chn_nreset=1,// [ 1] (1) 0: immediately reset all the internal circuitry
.write_mem=1,// [ 2] (0) 0 - read from memory, 1 - write to memory
.write_mem=0,// [ 2] (0) 0 - read from memory, 1 - write to memory
.extra_pages=0,// [ 4: 3] (0) 2-bit number of extra pages that need to stay (not to be overwritten) in the buffer
.extra_pages=1,// [ 4: 3] (0) 2-bit number of extra pages that need to stay (not to be overwritten) in the buffer
.keep_open=0,// [ 5] (0) (NA in linescan) for 8 or less rows - do not close page between accesses (not used in scanline mode)
.keep_open=0,// [ 5] (0) (NA in linescan) for 8 or less rows - do not close page between accesses (not used in scanline mode)
.byte32=0,// [ 6] (1) (NA in linescan) 32-byte columns (0 - 16-byte), not used in scanline mode
.byte32=1,// [ 6] (1) (NA in linescan) 32-byte columns (0 - 16-byte), not used in scanline mode