{
output[0x1a + j] = eeprom->cbus_function[j];
}
- output[0x0b] = eeprom->rs232_inversion;
+ output[0x0b] = eeprom->invert;
break;
}
eeprom->group1_schmitt = (buf[0x0c] >> 4) & IS_SCHMITT;
eeprom->group1_slew = (buf[0x0c] >> 4) & SLOW_SLEW;
- eeprom->rs232_inversion = buf[0xb];
+ eeprom->invert = buf[0xb];
}
if (verbose)
if (eeprom->cbus_function[i]<= CBUSH_AWAKE)
fprintf(stdout,"CBUS%d Function: %s\n", i, cbush_mux[eeprom->cbus_function[i]]);
}
- if(eeprom->rs232_inversion ) {
+ if(eeprom->invert ) {
struct bitnames {
int mask;
char *name;
int n = 0;
printf("Inversion on ");
for (i=0; invbitlist[i].mask;i++) {
- if(eeprom->rs232_inversion & invbitlist[i].mask) {
+ if(eeprom->invert & invbitlist[i].mask) {
if (n++) printf (",");
printf (" %s", invbitlist[i].name);
}
case CHIP_SIZE:
*value = ftdi->eeprom->size;
break;
- case RS232_INVERSION:
- *value = ftdi->eeprom->rs232_inversion;
- break;
default:
ftdi_error_return(-1, "Request for unknown EEPROM value");
}
case CHIP_SIZE:
ftdi_error_return(-2, "EEPROM Value can't be changed");
break;
- case RS232_INVERSION:
- ftdi->eeprom->rs232_inversion = value;
- break;
default :
ftdi_error_return(-1, "Request to unknown EEPROM value");
int data_order;
int flow_control;
- /* FT-X Device and Peripheral control
- * Fixme: Decode byte[0xa]
- */
- int rs232_inversion;
-
/** eeprom size in bytes. This doesn't get stored in the eeprom
but is the only way to pass it to ftdi_eeprom_build. */
int size;