ports as opposed to being always 16 or 32 bit swaps.
/* Doing a combined 32 and 16 bit byteswap gets the 16 bit samples into the fifo in the right order.
Tested doing 32 bit memory to 16 bit device transfers to the analog out of a pxi-6281,
which has mite version = 1, type = 4*/
- chcr |= CHCR_BYTE_SWAP16 | CHCR_BYTE_SWAP32;
+ chcr |= CHCR_BYTE_SWAP_DEVICE | CHCR_BYTE_SWAP_MEMORY;
}
if(mite_chan->dir == COMEDI_INPUT){
chcr |= CHCR_DEV_TO_MEM;
CHCR_FIFO_ON = 0,
CHCR_BURSTEN = (1<<14),
CHCR_NO_BURSTEN = 0,
- CHCR_BYTE_SWAP16 = (1 << 6),
- CHCR_BYTE_SWAP32 = (1 << 4),
+ CHCR_BYTE_SWAP_DEVICE = (1 << 6),
+ CHCR_BYTE_SWAP_MEMORY = (1 << 4),
CHCR_DIR = (1<<3),
CHCR_DEV_TO_MEM = CHCR_DIR,
CHCR_MEM_TO_DEV = 0,