Class that stores state and functions for interacting with I2C FRAM chips.
More...
#include <Adafruit_FRAM_I2C.h>
|
| 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...
|
|
| 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...
|
|
Class that stores state and functions for interacting with I2C FRAM chips.
◆ Adafruit_FRAM_I2C()
Adafruit_FRAM_I2C::Adafruit_FRAM_I2C |
( |
void |
| ) |
|
◆ begin()
Sets up the hardware and initializes I2C.
- Parameters
-
addr | The I2C address to be used. |
theWire | The 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] | manufacturerID | The 12-bit manufacturer ID (Fujitsu = 0x00A) |
[out] | productID | The 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: