libftdi1 1.5
Classes | Public Member Functions | List of all members
Ftdi::Eeprom Class Reference

Device EEPROM. More...

#include <ftdi.hpp>

Classes

class  Private
 

Public Member Functions

 Eeprom (Context *parent)
 
 ~Eeprom ()
 
int init_defaults (char *manufacturer, char *product, char *serial)
 
int chip_id (unsigned int *chipid)
 
int build (unsigned char *output)
 
int read (unsigned char *eeprom)
 
int write (unsigned char *eeprom)
 
int read_location (int eeprom_addr, unsigned short *eeprom_val)
 
int write_location (int eeprom_addr, unsigned short eeprom_val)
 
int erase ()
 

Detailed Description

Device EEPROM.

Definition at line 153 of file ftdi.hpp.

Constructor & Destructor Documentation

◆ Eeprom()

Ftdi::Eeprom::Eeprom ( Context parent)

Definition at line 461 of file ftdi.cpp.

References Ftdi::Context::context().

◆ ~Eeprom()

Ftdi::Eeprom::~Eeprom ( )

Definition at line 467 of file ftdi.cpp.

Member Function Documentation

◆ init_defaults()

int Ftdi::Eeprom::init_defaults ( char *  manufacturer,
char *  product,
char *  serial 
)

Definition at line 471 of file ftdi.cpp.

References ftdi_eeprom_initdefaults().

◆ chip_id()

int Ftdi::Eeprom::chip_id ( unsigned int *  chipid)

Definition at line 476 of file ftdi.cpp.

References ftdi_read_chipid().

◆ build()

int Ftdi::Eeprom::build ( unsigned char *  output)

Definition at line 481 of file ftdi.cpp.

References ftdi_eeprom_build().

◆ read()

int Ftdi::Eeprom::read ( unsigned char *  eeprom)

Definition at line 486 of file ftdi.cpp.

References ftdi_read_eeprom().

◆ write()

int Ftdi::Eeprom::write ( unsigned char *  eeprom)

Definition at line 491 of file ftdi.cpp.

References ftdi_write_eeprom().

◆ read_location()

int Ftdi::Eeprom::read_location ( int  eeprom_addr,
unsigned short *  eeprom_val 
)

Definition at line 496 of file ftdi.cpp.

References ftdi_read_eeprom_location().

◆ write_location()

int Ftdi::Eeprom::write_location ( int  eeprom_addr,
unsigned short  eeprom_val 
)

Definition at line 501 of file ftdi.cpp.

References ftdi_write_eeprom_location().

◆ erase()

int Ftdi::Eeprom::erase ( )

Definition at line 506 of file ftdi.cpp.

References ftdi_erase_eeprom().


The documentation for this class was generated from the following files: