Adafruit ILI9341 Display Library
Public Member Functions | List of all members
Adafruit_FRAM_I2C Class Reference

Class that stores state and functions for interacting with I2C FRAM chips. More...

#include <Adafruit_FRAM_I2C.h>

Inheritance diagram for Adafruit_FRAM_I2C:
Adafruit_EEPROM_I2C

Public Member Functions

 Adafruit_FRAM_I2C (void)
 
bool begin (uint8_t addr=MB85RC_DEFAULT_ADDRESS, TwoWire *theWire=&Wire)
 Sets up the hardware and initializes I2C. More...
 
void getDeviceID (uint16_t *manufacturerID, uint16_t *productID)
 Reads the Manufacturer ID and the Product ID frm the IC. More...
 
- Public Member Functions inherited from Adafruit_EEPROM_I2C
 Adafruit_EEPROM_I2C (void)
 
bool begin (uint8_t addr=EEPROM_DEFAULT_ADDRESS, TwoWire *theWire=&Wire)
 Sets up the hardware and initializes I2C. More...
 
bool write (uint16_t addr, uint8_t value)
 Writes a byte at the specific EEPROM address. More...
 
uint8_t read (uint16_t addr)
 Reads an 8 bit value from the specified EEPROM address. More...
 
bool write (uint16_t addr, uint8_t *buffer, uint16_t num)
 Writes multiple bytes at the specific EEPROM address. More...
 
bool read (uint16_t addr, uint8_t *buffer, uint16_t num)
 Reads multiple bytes from the specified EEPROM address. More...
 
template<class T >
uint16_t writeObject (uint16_t addr, const T &value)
 Write any object to memory. More...
 
template<class T >
uint16_t readObject (uint16_t addr, T &value)
 Read any object from memory. More...
 

Additional Inherited Members

- Protected Attributes inherited from Adafruit_EEPROM_I2C
Adafruit_I2CDevice * i2c_dev = NULL
 
uint8_t _addr = 0
 

Detailed Description

Class that stores state and functions for interacting with I2C FRAM chips.

Constructor & Destructor Documentation

◆ Adafruit_FRAM_I2C()

Adafruit_FRAM_I2C::Adafruit_FRAM_I2C ( void  )

Constructor

Member Function Documentation

◆ begin()

bool Adafruit_FRAM_I2C::begin ( uint8_t  addr = MB85RC_DEFAULT_ADDRESS,
TwoWire *  theWire = &Wire 
)

Sets up the hardware and initializes I2C.

Parameters
addrThe I2C address to be used.
theWireThe Wire object to be used for I2C connections.
Returns
True if initialization was successful, otherwise false.

◆ getDeviceID()

void Adafruit_FRAM_I2C::getDeviceID ( uint16_t *  manufacturerID,
uint16_t *  productID 
)

Reads the Manufacturer ID and the Product ID frm the IC.

Parameters
[out]manufacturerIDThe 12-bit manufacturer ID (Fujitsu = 0x00A)
[out]productIDThe memory density (bytes 11..8) and proprietary Product ID fields (bytes 7..0). Should be 0x510 for the MB85RC256V.

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