X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.c;h=0a6dfb547d259d59098f673b50edf581856783a5;hp=ad9e20e453eda60cb5fbaf7f3c865bee659b43c0;hb=347d87e5ed745614c05e784facb449a9e3615cde;hpb=a1b2db22abd6fbc134238952c84122ea8b11b856 diff --git a/src/ftdi.c b/src/ftdi.c index ad9e20e..0a6dfb5 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -3065,7 +3065,7 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) { output[0x1a + j] = eeprom->cbus_function[j]; } - output[0x0b] = eeprom->rs232_inversion; + output[0x0b] = eeprom->invert; break; } @@ -3391,7 +3391,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int verbose) 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) @@ -3515,7 +3515,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int 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; @@ -3535,7 +3535,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int verbose) 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); } @@ -3764,9 +3764,6 @@ int ftdi_get_eeprom_value(struct ftdi_context *ftdi, enum ftdi_eeprom_value valu 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"); } @@ -3957,9 +3954,6 @@ int ftdi_set_eeprom_value(struct ftdi_context *ftdi, enum ftdi_eeprom_value valu 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");