Struct eeprom24x::Eeprom24x

source ·
pub struct Eeprom24x<I2C, PS> { /* private fields */ }
Expand description

EEPROM24X driver

Implementations

Common methods

Destroy driver instance, return I²C bus instance.

Write a single byte in an address.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Read a single byte from an address.

Read starting in an address as many bytes as necessary to fill the data array provided.

Specialization for platforms which implement embedded_hal::blocking::i2c::Read

Read the contents of the last address accessed during the last read or write operation, incremented by one.

Note: This may not be available on your platform.

Specialization for devices without page access (e.g. 24C00)

Create a new instance of a 24x00 device (e.g. 24C00)

Specialization for devices with a page size of 8 bytes.

Create a new instance of a 24x01 device (e.g. AT24C01)

Create a new instance of a 24x02 device (e.g. AT24C02)

Write up to a page starting in an address.

The maximum amount of data that can be written depends on the page size of the device. If too much data is passed, the error Error::TooMuchData will be returned.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Specialization for devices with a page size of 16 bytes.

Create a new instance of a 24x04 device (e.g. AT24C04)

Create a new instance of a 24x08 device (e.g. AT24C08)

Create a new instance of a 24x16 device (e.g. AT24C16)

Write up to a page starting in an address.

The maximum amount of data that can be written depends on the page size of the device. If too much data is passed, the error Error::TooMuchData will be returned.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Specialization for devices with a page size of 32 bytes.

Create a new instance of a 24x32 device (e.g. AT24C32)

Create a new instance of a 24x64 device (e.g. AT24C64)

Write up to a page starting in an address.

The maximum amount of data that can be written depends on the page size of the device. If too much data is passed, the error Error::TooMuchData will be returned.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Specialization for devices with a page size of 64 bytes.

Create a new instance of a 24x128 device (e.g. AT24C128)

Create a new instance of a 24x256 device (e.g. AT24C256)

Write up to a page starting in an address.

The maximum amount of data that can be written depends on the page size of the device. If too much data is passed, the error Error::TooMuchData will be returned.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Specialization for devices with a page size of 128 bytes.

Create a new instance of a 24x512 device (e.g. AT24C512)

Write up to a page starting in an address.

The maximum amount of data that can be written depends on the page size of the device. If too much data is passed, the error Error::TooMuchData will be returned.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Specialization for devices with a page size of 256 bytes.

Create a new instance of a 24xM01 device (e.g. AT24CM01)

Create a new instance of a 24xM02 device (e.g. AT24CM02)

Write up to a page starting in an address.

The maximum amount of data that can be written depends on the page size of the device. If too much data is passed, the error Error::TooMuchData will be returned.

After writing a byte, the EEPROM enters an internally-timed write cycle to the nonvolatile memory. During this time all inputs are disabled and the EEPROM will not respond until the write is complete.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.